@keystrokehq/simplekpi 0.1.0

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 (442) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-user-group-item.cjs +26 -0
  7. package/dist/actions/add-user-group-item.cjs.map +1 -0
  8. package/dist/actions/add-user-group-item.d.cts +9 -0
  9. package/dist/actions/add-user-group-item.d.cts.map +1 -0
  10. package/dist/actions/add-user-group-item.d.mts +9 -0
  11. package/dist/actions/add-user-group-item.d.mts.map +1 -0
  12. package/dist/actions/add-user-group-item.mjs +23 -0
  13. package/dist/actions/add-user-group-item.mjs.map +1 -0
  14. package/dist/actions/add-user-kpi.cjs +28 -0
  15. package/dist/actions/add-user-kpi.cjs.map +1 -0
  16. package/dist/actions/add-user-kpi.d.cts +9 -0
  17. package/dist/actions/add-user-kpi.d.cts.map +1 -0
  18. package/dist/actions/add-user-kpi.d.mts +9 -0
  19. package/dist/actions/add-user-kpi.d.mts.map +1 -0
  20. package/dist/actions/add-user-kpi.mjs +25 -0
  21. package/dist/actions/add-user-kpi.mjs.map +1 -0
  22. package/dist/actions/create-category-kpi.cjs +41 -0
  23. package/dist/actions/create-category-kpi.cjs.map +1 -0
  24. package/dist/actions/create-category-kpi.d.cts +9 -0
  25. package/dist/actions/create-category-kpi.d.cts.map +1 -0
  26. package/dist/actions/create-category-kpi.d.mts +9 -0
  27. package/dist/actions/create-category-kpi.d.mts.map +1 -0
  28. package/dist/actions/create-category-kpi.mjs +38 -0
  29. package/dist/actions/create-category-kpi.mjs.map +1 -0
  30. package/dist/actions/create-group-item.cjs +27 -0
  31. package/dist/actions/create-group-item.cjs.map +1 -0
  32. package/dist/actions/create-group-item.d.cts +9 -0
  33. package/dist/actions/create-group-item.d.cts.map +1 -0
  34. package/dist/actions/create-group-item.d.mts +9 -0
  35. package/dist/actions/create-group-item.d.mts.map +1 -0
  36. package/dist/actions/create-group-item.mjs +24 -0
  37. package/dist/actions/create-group-item.mjs.map +1 -0
  38. package/dist/actions/create-group.cjs +25 -0
  39. package/dist/actions/create-group.cjs.map +1 -0
  40. package/dist/actions/create-group.d.cts +9 -0
  41. package/dist/actions/create-group.d.cts.map +1 -0
  42. package/dist/actions/create-group.d.mts +9 -0
  43. package/dist/actions/create-group.d.mts.map +1 -0
  44. package/dist/actions/create-group.mjs +22 -0
  45. package/dist/actions/create-group.mjs.map +1 -0
  46. package/dist/actions/create-kpi-category.cjs +25 -0
  47. package/dist/actions/create-kpi-category.cjs.map +1 -0
  48. package/dist/actions/create-kpi-category.d.cts +9 -0
  49. package/dist/actions/create-kpi-category.d.cts.map +1 -0
  50. package/dist/actions/create-kpi-category.d.mts +9 -0
  51. package/dist/actions/create-kpi-category.d.mts.map +1 -0
  52. package/dist/actions/create-kpi-category.mjs +22 -0
  53. package/dist/actions/create-kpi-category.mjs.map +1 -0
  54. package/dist/actions/create-kpi-unit.cjs +29 -0
  55. package/dist/actions/create-kpi-unit.cjs.map +1 -0
  56. package/dist/actions/create-kpi-unit.d.cts +9 -0
  57. package/dist/actions/create-kpi-unit.d.cts.map +1 -0
  58. package/dist/actions/create-kpi-unit.d.mts +9 -0
  59. package/dist/actions/create-kpi-unit.d.mts.map +1 -0
  60. package/dist/actions/create-kpi-unit.mjs +26 -0
  61. package/dist/actions/create-kpi-unit.mjs.map +1 -0
  62. package/dist/actions/create-kpi.cjs +46 -0
  63. package/dist/actions/create-kpi.cjs.map +1 -0
  64. package/dist/actions/create-kpi.d.cts +9 -0
  65. package/dist/actions/create-kpi.d.cts.map +1 -0
  66. package/dist/actions/create-kpi.d.mts +9 -0
  67. package/dist/actions/create-kpi.d.mts.map +1 -0
  68. package/dist/actions/create-kpi.mjs +43 -0
  69. package/dist/actions/create-kpi.mjs.map +1 -0
  70. package/dist/actions/create-or-update-kpi-entries.cjs +33 -0
  71. package/dist/actions/create-or-update-kpi-entries.cjs.map +1 -0
  72. package/dist/actions/create-or-update-kpi-entries.d.cts +9 -0
  73. package/dist/actions/create-or-update-kpi-entries.d.cts.map +1 -0
  74. package/dist/actions/create-or-update-kpi-entries.d.mts +9 -0
  75. package/dist/actions/create-or-update-kpi-entries.d.mts.map +1 -0
  76. package/dist/actions/create-or-update-kpi-entries.mjs +30 -0
  77. package/dist/actions/create-or-update-kpi-entries.mjs.map +1 -0
  78. package/dist/actions/create-user.cjs +41 -0
  79. package/dist/actions/create-user.cjs.map +1 -0
  80. package/dist/actions/create-user.d.cts +9 -0
  81. package/dist/actions/create-user.d.cts.map +1 -0
  82. package/dist/actions/create-user.d.mts +9 -0
  83. package/dist/actions/create-user.d.mts.map +1 -0
  84. package/dist/actions/create-user.mjs +38 -0
  85. package/dist/actions/create-user.mjs.map +1 -0
  86. package/dist/actions/delete-category-kpi.cjs +19 -0
  87. package/dist/actions/delete-category-kpi.cjs.map +1 -0
  88. package/dist/actions/delete-category-kpi.d.cts +9 -0
  89. package/dist/actions/delete-category-kpi.d.cts.map +1 -0
  90. package/dist/actions/delete-category-kpi.d.mts +9 -0
  91. package/dist/actions/delete-category-kpi.d.mts.map +1 -0
  92. package/dist/actions/delete-category-kpi.mjs +16 -0
  93. package/dist/actions/delete-category-kpi.mjs.map +1 -0
  94. package/dist/actions/delete-group-item.cjs +22 -0
  95. package/dist/actions/delete-group-item.cjs.map +1 -0
  96. package/dist/actions/delete-group-item.d.cts +9 -0
  97. package/dist/actions/delete-group-item.d.cts.map +1 -0
  98. package/dist/actions/delete-group-item.d.mts +9 -0
  99. package/dist/actions/delete-group-item.d.mts.map +1 -0
  100. package/dist/actions/delete-group-item.mjs +19 -0
  101. package/dist/actions/delete-group-item.mjs.map +1 -0
  102. package/dist/actions/delete-group.cjs +19 -0
  103. package/dist/actions/delete-group.cjs.map +1 -0
  104. package/dist/actions/delete-group.d.cts +9 -0
  105. package/dist/actions/delete-group.d.cts.map +1 -0
  106. package/dist/actions/delete-group.d.mts +9 -0
  107. package/dist/actions/delete-group.d.mts.map +1 -0
  108. package/dist/actions/delete-group.mjs +16 -0
  109. package/dist/actions/delete-group.mjs.map +1 -0
  110. package/dist/actions/delete-kpi-category.cjs +20 -0
  111. package/dist/actions/delete-kpi-category.cjs.map +1 -0
  112. package/dist/actions/delete-kpi-category.d.cts +9 -0
  113. package/dist/actions/delete-kpi-category.d.cts.map +1 -0
  114. package/dist/actions/delete-kpi-category.d.mts +9 -0
  115. package/dist/actions/delete-kpi-category.d.mts.map +1 -0
  116. package/dist/actions/delete-kpi-category.mjs +17 -0
  117. package/dist/actions/delete-kpi-category.mjs.map +1 -0
  118. package/dist/actions/delete-kpi-entry.cjs +16 -0
  119. package/dist/actions/delete-kpi-entry.cjs.map +1 -0
  120. package/dist/actions/delete-kpi-entry.d.cts +9 -0
  121. package/dist/actions/delete-kpi-entry.d.cts.map +1 -0
  122. package/dist/actions/delete-kpi-entry.d.mts +9 -0
  123. package/dist/actions/delete-kpi-entry.d.mts.map +1 -0
  124. package/dist/actions/delete-kpi-entry.mjs +13 -0
  125. package/dist/actions/delete-kpi-entry.mjs.map +1 -0
  126. package/dist/actions/delete-kpi-unit.cjs +20 -0
  127. package/dist/actions/delete-kpi-unit.cjs.map +1 -0
  128. package/dist/actions/delete-kpi-unit.d.cts +9 -0
  129. package/dist/actions/delete-kpi-unit.d.cts.map +1 -0
  130. package/dist/actions/delete-kpi-unit.d.mts +9 -0
  131. package/dist/actions/delete-kpi-unit.d.mts.map +1 -0
  132. package/dist/actions/delete-kpi-unit.mjs +17 -0
  133. package/dist/actions/delete-kpi-unit.mjs.map +1 -0
  134. package/dist/actions/delete-kpi.cjs +19 -0
  135. package/dist/actions/delete-kpi.cjs.map +1 -0
  136. package/dist/actions/delete-kpi.d.cts +9 -0
  137. package/dist/actions/delete-kpi.d.cts.map +1 -0
  138. package/dist/actions/delete-kpi.d.mts +9 -0
  139. package/dist/actions/delete-kpi.d.mts.map +1 -0
  140. package/dist/actions/delete-kpi.mjs +16 -0
  141. package/dist/actions/delete-kpi.mjs.map +1 -0
  142. package/dist/actions/delete-user-group-item.cjs +19 -0
  143. package/dist/actions/delete-user-group-item.cjs.map +1 -0
  144. package/dist/actions/delete-user-group-item.d.cts +9 -0
  145. package/dist/actions/delete-user-group-item.d.cts.map +1 -0
  146. package/dist/actions/delete-user-group-item.d.mts +9 -0
  147. package/dist/actions/delete-user-group-item.d.mts.map +1 -0
  148. package/dist/actions/delete-user-group-item.mjs +16 -0
  149. package/dist/actions/delete-user-group-item.mjs.map +1 -0
  150. package/dist/actions/delete-user-kpi.cjs +22 -0
  151. package/dist/actions/delete-user-kpi.cjs.map +1 -0
  152. package/dist/actions/delete-user-kpi.d.cts +9 -0
  153. package/dist/actions/delete-user-kpi.d.cts.map +1 -0
  154. package/dist/actions/delete-user-kpi.d.mts +9 -0
  155. package/dist/actions/delete-user-kpi.d.mts.map +1 -0
  156. package/dist/actions/delete-user-kpi.mjs +19 -0
  157. package/dist/actions/delete-user-kpi.mjs.map +1 -0
  158. package/dist/actions/delete-user.cjs +19 -0
  159. package/dist/actions/delete-user.cjs.map +1 -0
  160. package/dist/actions/delete-user.d.cts +9 -0
  161. package/dist/actions/delete-user.d.cts.map +1 -0
  162. package/dist/actions/delete-user.d.mts +9 -0
  163. package/dist/actions/delete-user.d.mts.map +1 -0
  164. package/dist/actions/delete-user.mjs +16 -0
  165. package/dist/actions/delete-user.mjs.map +1 -0
  166. package/dist/actions/get-all-data-entries.cjs +40 -0
  167. package/dist/actions/get-all-data-entries.cjs.map +1 -0
  168. package/dist/actions/get-all-data-entries.d.cts +9 -0
  169. package/dist/actions/get-all-data-entries.d.cts.map +1 -0
  170. package/dist/actions/get-all-data-entries.d.mts +9 -0
  171. package/dist/actions/get-all-data-entries.d.mts.map +1 -0
  172. package/dist/actions/get-all-data-entries.mjs +39 -0
  173. package/dist/actions/get-all-data-entries.mjs.map +1 -0
  174. package/dist/actions/get-category-kpi.cjs +35 -0
  175. package/dist/actions/get-category-kpi.cjs.map +1 -0
  176. package/dist/actions/get-category-kpi.d.cts +9 -0
  177. package/dist/actions/get-category-kpi.d.cts.map +1 -0
  178. package/dist/actions/get-category-kpi.d.mts +9 -0
  179. package/dist/actions/get-category-kpi.d.mts.map +1 -0
  180. package/dist/actions/get-category-kpi.mjs +32 -0
  181. package/dist/actions/get-category-kpi.mjs.map +1 -0
  182. package/dist/actions/get-group-item.cjs +26 -0
  183. package/dist/actions/get-group-item.cjs.map +1 -0
  184. package/dist/actions/get-group-item.d.cts +9 -0
  185. package/dist/actions/get-group-item.d.cts.map +1 -0
  186. package/dist/actions/get-group-item.d.mts +9 -0
  187. package/dist/actions/get-group-item.d.mts.map +1 -0
  188. package/dist/actions/get-group-item.mjs +23 -0
  189. package/dist/actions/get-group-item.mjs.map +1 -0
  190. package/dist/actions/get-group.cjs +22 -0
  191. package/dist/actions/get-group.cjs.map +1 -0
  192. package/dist/actions/get-group.d.cts +9 -0
  193. package/dist/actions/get-group.d.cts.map +1 -0
  194. package/dist/actions/get-group.d.mts +9 -0
  195. package/dist/actions/get-group.d.mts.map +1 -0
  196. package/dist/actions/get-group.mjs +19 -0
  197. package/dist/actions/get-group.mjs.map +1 -0
  198. package/dist/actions/get-kpi-category.cjs +22 -0
  199. package/dist/actions/get-kpi-category.cjs.map +1 -0
  200. package/dist/actions/get-kpi-category.d.cts +9 -0
  201. package/dist/actions/get-kpi-category.d.cts.map +1 -0
  202. package/dist/actions/get-kpi-category.d.mts +9 -0
  203. package/dist/actions/get-kpi-category.d.mts.map +1 -0
  204. package/dist/actions/get-kpi-category.mjs +19 -0
  205. package/dist/actions/get-kpi-category.mjs.map +1 -0
  206. package/dist/actions/get-kpi-entry.cjs +26 -0
  207. package/dist/actions/get-kpi-entry.cjs.map +1 -0
  208. package/dist/actions/get-kpi-entry.d.cts +9 -0
  209. package/dist/actions/get-kpi-entry.d.cts.map +1 -0
  210. package/dist/actions/get-kpi-entry.d.mts +9 -0
  211. package/dist/actions/get-kpi-entry.d.mts.map +1 -0
  212. package/dist/actions/get-kpi-entry.mjs +23 -0
  213. package/dist/actions/get-kpi-entry.mjs.map +1 -0
  214. package/dist/actions/get-kpi-frequency.cjs +19 -0
  215. package/dist/actions/get-kpi-frequency.cjs.map +1 -0
  216. package/dist/actions/get-kpi-frequency.d.cts +9 -0
  217. package/dist/actions/get-kpi-frequency.d.cts.map +1 -0
  218. package/dist/actions/get-kpi-frequency.d.mts +9 -0
  219. package/dist/actions/get-kpi-frequency.d.mts.map +1 -0
  220. package/dist/actions/get-kpi-frequency.mjs +16 -0
  221. package/dist/actions/get-kpi-frequency.mjs.map +1 -0
  222. package/dist/actions/get-kpi-icon.cjs +19 -0
  223. package/dist/actions/get-kpi-icon.cjs.map +1 -0
  224. package/dist/actions/get-kpi-icon.d.cts +9 -0
  225. package/dist/actions/get-kpi-icon.d.cts.map +1 -0
  226. package/dist/actions/get-kpi-icon.d.mts +9 -0
  227. package/dist/actions/get-kpi-icon.d.mts.map +1 -0
  228. package/dist/actions/get-kpi-icon.mjs +16 -0
  229. package/dist/actions/get-kpi-icon.mjs.map +1 -0
  230. package/dist/actions/get-kpi-unit.cjs +24 -0
  231. package/dist/actions/get-kpi-unit.cjs.map +1 -0
  232. package/dist/actions/get-kpi-unit.d.cts +9 -0
  233. package/dist/actions/get-kpi-unit.d.cts.map +1 -0
  234. package/dist/actions/get-kpi-unit.d.mts +9 -0
  235. package/dist/actions/get-kpi-unit.d.mts.map +1 -0
  236. package/dist/actions/get-kpi-unit.mjs +21 -0
  237. package/dist/actions/get-kpi-unit.mjs.map +1 -0
  238. package/dist/actions/get-kpi.cjs +32 -0
  239. package/dist/actions/get-kpi.cjs.map +1 -0
  240. package/dist/actions/get-kpi.d.cts +9 -0
  241. package/dist/actions/get-kpi.d.cts.map +1 -0
  242. package/dist/actions/get-kpi.d.mts +9 -0
  243. package/dist/actions/get-kpi.d.mts.map +1 -0
  244. package/dist/actions/get-kpi.mjs +29 -0
  245. package/dist/actions/get-kpi.mjs.map +1 -0
  246. package/dist/actions/get-user-group-item.cjs +26 -0
  247. package/dist/actions/get-user-group-item.cjs.map +1 -0
  248. package/dist/actions/get-user-group-item.d.cts +9 -0
  249. package/dist/actions/get-user-group-item.d.cts.map +1 -0
  250. package/dist/actions/get-user-group-item.d.mts +9 -0
  251. package/dist/actions/get-user-group-item.d.mts.map +1 -0
  252. package/dist/actions/get-user-group-item.mjs +23 -0
  253. package/dist/actions/get-user-group-item.mjs.map +1 -0
  254. package/dist/actions/get-user-kpi.cjs +26 -0
  255. package/dist/actions/get-user-kpi.cjs.map +1 -0
  256. package/dist/actions/get-user-kpi.d.cts +9 -0
  257. package/dist/actions/get-user-kpi.d.cts.map +1 -0
  258. package/dist/actions/get-user-kpi.d.mts +9 -0
  259. package/dist/actions/get-user-kpi.d.mts.map +1 -0
  260. package/dist/actions/get-user-kpi.mjs +23 -0
  261. package/dist/actions/get-user-kpi.mjs.map +1 -0
  262. package/dist/actions/get-user.cjs +30 -0
  263. package/dist/actions/get-user.cjs.map +1 -0
  264. package/dist/actions/get-user.d.cts +9 -0
  265. package/dist/actions/get-user.d.cts.map +1 -0
  266. package/dist/actions/get-user.d.mts +9 -0
  267. package/dist/actions/get-user.d.mts.map +1 -0
  268. package/dist/actions/get-user.mjs +27 -0
  269. package/dist/actions/get-user.mjs.map +1 -0
  270. package/dist/actions/index.cjs +103 -0
  271. package/dist/actions/index.d.cts +52 -0
  272. package/dist/actions/index.d.mts +52 -0
  273. package/dist/actions/index.mjs +52 -0
  274. package/dist/actions/list-category-kpis.cjs +33 -0
  275. package/dist/actions/list-category-kpis.cjs.map +1 -0
  276. package/dist/actions/list-category-kpis.d.cts +9 -0
  277. package/dist/actions/list-category-kpis.d.cts.map +1 -0
  278. package/dist/actions/list-category-kpis.d.mts +9 -0
  279. package/dist/actions/list-category-kpis.d.mts.map +1 -0
  280. package/dist/actions/list-category-kpis.mjs +32 -0
  281. package/dist/actions/list-category-kpis.mjs.map +1 -0
  282. package/dist/actions/list-group-items.cjs +24 -0
  283. package/dist/actions/list-group-items.cjs.map +1 -0
  284. package/dist/actions/list-group-items.d.cts +9 -0
  285. package/dist/actions/list-group-items.d.cts.map +1 -0
  286. package/dist/actions/list-group-items.d.mts +9 -0
  287. package/dist/actions/list-group-items.d.mts.map +1 -0
  288. package/dist/actions/list-group-items.mjs +23 -0
  289. package/dist/actions/list-group-items.mjs.map +1 -0
  290. package/dist/actions/list-groups.cjs +23 -0
  291. package/dist/actions/list-groups.cjs.map +1 -0
  292. package/dist/actions/list-groups.d.cts +9 -0
  293. package/dist/actions/list-groups.d.cts.map +1 -0
  294. package/dist/actions/list-groups.d.mts +9 -0
  295. package/dist/actions/list-groups.d.mts.map +1 -0
  296. package/dist/actions/list-groups.mjs +22 -0
  297. package/dist/actions/list-groups.mjs.map +1 -0
  298. package/dist/actions/list-kpi-categories.cjs +23 -0
  299. package/dist/actions/list-kpi-categories.cjs.map +1 -0
  300. package/dist/actions/list-kpi-categories.d.cts +9 -0
  301. package/dist/actions/list-kpi-categories.d.cts.map +1 -0
  302. package/dist/actions/list-kpi-categories.d.mts +9 -0
  303. package/dist/actions/list-kpi-categories.d.mts.map +1 -0
  304. package/dist/actions/list-kpi-categories.mjs +22 -0
  305. package/dist/actions/list-kpi-categories.mjs.map +1 -0
  306. package/dist/actions/list-kpi-entries.cjs +34 -0
  307. package/dist/actions/list-kpi-entries.cjs.map +1 -0
  308. package/dist/actions/list-kpi-entries.d.cts +9 -0
  309. package/dist/actions/list-kpi-entries.d.cts.map +1 -0
  310. package/dist/actions/list-kpi-entries.d.mts +9 -0
  311. package/dist/actions/list-kpi-entries.d.mts.map +1 -0
  312. package/dist/actions/list-kpi-entries.mjs +33 -0
  313. package/dist/actions/list-kpi-entries.mjs.map +1 -0
  314. package/dist/actions/list-kpi-frequencies.cjs +20 -0
  315. package/dist/actions/list-kpi-frequencies.cjs.map +1 -0
  316. package/dist/actions/list-kpi-frequencies.d.cts +9 -0
  317. package/dist/actions/list-kpi-frequencies.d.cts.map +1 -0
  318. package/dist/actions/list-kpi-frequencies.d.mts +9 -0
  319. package/dist/actions/list-kpi-frequencies.d.mts.map +1 -0
  320. package/dist/actions/list-kpi-frequencies.mjs +19 -0
  321. package/dist/actions/list-kpi-frequencies.mjs.map +1 -0
  322. package/dist/actions/list-kpi-icons.cjs +22 -0
  323. package/dist/actions/list-kpi-icons.cjs.map +1 -0
  324. package/dist/actions/list-kpi-icons.d.cts +9 -0
  325. package/dist/actions/list-kpi-icons.d.cts.map +1 -0
  326. package/dist/actions/list-kpi-icons.d.mts +9 -0
  327. package/dist/actions/list-kpi-icons.d.mts.map +1 -0
  328. package/dist/actions/list-kpi-icons.mjs +21 -0
  329. package/dist/actions/list-kpi-icons.mjs.map +1 -0
  330. package/dist/actions/list-kpi-units.cjs +25 -0
  331. package/dist/actions/list-kpi-units.cjs.map +1 -0
  332. package/dist/actions/list-kpi-units.d.cts +9 -0
  333. package/dist/actions/list-kpi-units.d.cts.map +1 -0
  334. package/dist/actions/list-kpi-units.d.mts +9 -0
  335. package/dist/actions/list-kpi-units.d.mts.map +1 -0
  336. package/dist/actions/list-kpi-units.mjs +24 -0
  337. package/dist/actions/list-kpi-units.mjs.map +1 -0
  338. package/dist/actions/list-kpis.cjs +33 -0
  339. package/dist/actions/list-kpis.cjs.map +1 -0
  340. package/dist/actions/list-kpis.d.cts +9 -0
  341. package/dist/actions/list-kpis.d.cts.map +1 -0
  342. package/dist/actions/list-kpis.d.mts +9 -0
  343. package/dist/actions/list-kpis.d.mts.map +1 -0
  344. package/dist/actions/list-kpis.mjs +32 -0
  345. package/dist/actions/list-kpis.mjs.map +1 -0
  346. package/dist/actions/list-user-group-items.cjs +24 -0
  347. package/dist/actions/list-user-group-items.cjs.map +1 -0
  348. package/dist/actions/list-user-group-items.d.cts +9 -0
  349. package/dist/actions/list-user-group-items.d.cts.map +1 -0
  350. package/dist/actions/list-user-group-items.d.mts +9 -0
  351. package/dist/actions/list-user-group-items.d.mts.map +1 -0
  352. package/dist/actions/list-user-group-items.mjs +23 -0
  353. package/dist/actions/list-user-group-items.mjs.map +1 -0
  354. package/dist/actions/list-user-kpis.cjs +24 -0
  355. package/dist/actions/list-user-kpis.cjs.map +1 -0
  356. package/dist/actions/list-user-kpis.d.cts +9 -0
  357. package/dist/actions/list-user-kpis.d.cts.map +1 -0
  358. package/dist/actions/list-user-kpis.d.mts +9 -0
  359. package/dist/actions/list-user-kpis.d.mts.map +1 -0
  360. package/dist/actions/list-user-kpis.mjs +23 -0
  361. package/dist/actions/list-user-kpis.mjs.map +1 -0
  362. package/dist/actions/update-category-kpi.cjs +54 -0
  363. package/dist/actions/update-category-kpi.cjs.map +1 -0
  364. package/dist/actions/update-category-kpi.d.cts +9 -0
  365. package/dist/actions/update-category-kpi.d.cts.map +1 -0
  366. package/dist/actions/update-category-kpi.d.mts +9 -0
  367. package/dist/actions/update-category-kpi.d.mts.map +1 -0
  368. package/dist/actions/update-category-kpi.mjs +51 -0
  369. package/dist/actions/update-category-kpi.mjs.map +1 -0
  370. package/dist/actions/update-group-item.cjs +26 -0
  371. package/dist/actions/update-group-item.cjs.map +1 -0
  372. package/dist/actions/update-group-item.d.cts +9 -0
  373. package/dist/actions/update-group-item.d.cts.map +1 -0
  374. package/dist/actions/update-group-item.d.mts +9 -0
  375. package/dist/actions/update-group-item.d.mts.map +1 -0
  376. package/dist/actions/update-group-item.mjs +23 -0
  377. package/dist/actions/update-group-item.mjs.map +1 -0
  378. package/dist/actions/update-group.cjs +24 -0
  379. package/dist/actions/update-group.cjs.map +1 -0
  380. package/dist/actions/update-group.d.cts +9 -0
  381. package/dist/actions/update-group.d.cts.map +1 -0
  382. package/dist/actions/update-group.d.mts +9 -0
  383. package/dist/actions/update-group.d.mts.map +1 -0
  384. package/dist/actions/update-group.mjs +21 -0
  385. package/dist/actions/update-group.mjs.map +1 -0
  386. package/dist/actions/update-kpi-entry.cjs +34 -0
  387. package/dist/actions/update-kpi-entry.cjs.map +1 -0
  388. package/dist/actions/update-kpi-entry.d.cts +9 -0
  389. package/dist/actions/update-kpi-entry.d.cts.map +1 -0
  390. package/dist/actions/update-kpi-entry.d.mts +9 -0
  391. package/dist/actions/update-kpi-entry.d.mts.map +1 -0
  392. package/dist/actions/update-kpi-entry.mjs +31 -0
  393. package/dist/actions/update-kpi-entry.mjs.map +1 -0
  394. package/dist/actions/update-kpi-unit.cjs +28 -0
  395. package/dist/actions/update-kpi-unit.cjs.map +1 -0
  396. package/dist/actions/update-kpi-unit.d.cts +9 -0
  397. package/dist/actions/update-kpi-unit.d.cts.map +1 -0
  398. package/dist/actions/update-kpi-unit.d.mts +9 -0
  399. package/dist/actions/update-kpi-unit.d.mts.map +1 -0
  400. package/dist/actions/update-kpi-unit.mjs +25 -0
  401. package/dist/actions/update-kpi-unit.mjs.map +1 -0
  402. package/dist/actions/update-kpi.cjs +52 -0
  403. package/dist/actions/update-kpi.cjs.map +1 -0
  404. package/dist/actions/update-kpi.d.cts +9 -0
  405. package/dist/actions/update-kpi.d.cts.map +1 -0
  406. package/dist/actions/update-kpi.d.mts +9 -0
  407. package/dist/actions/update-kpi.d.mts.map +1 -0
  408. package/dist/actions/update-kpi.mjs +49 -0
  409. package/dist/actions/update-kpi.mjs.map +1 -0
  410. package/dist/actions/update-user.cjs +34 -0
  411. package/dist/actions/update-user.cjs.map +1 -0
  412. package/dist/actions/update-user.d.cts +9 -0
  413. package/dist/actions/update-user.d.cts.map +1 -0
  414. package/dist/actions/update-user.d.mts +9 -0
  415. package/dist/actions/update-user.d.mts.map +1 -0
  416. package/dist/actions/update-user.mjs +31 -0
  417. package/dist/actions/update-user.mjs.map +1 -0
  418. package/dist/app.cjs +9 -0
  419. package/dist/app.cjs.map +1 -0
  420. package/dist/app.d.cts +5 -0
  421. package/dist/app.d.cts.map +1 -0
  422. package/dist/app.d.mts +5 -0
  423. package/dist/app.d.mts.map +1 -0
  424. package/dist/app.mjs +10 -0
  425. package/dist/app.mjs.map +1 -0
  426. package/dist/catalog.cjs +15 -0
  427. package/dist/catalog.cjs.map +1 -0
  428. package/dist/catalog.d.cts +14 -0
  429. package/dist/catalog.d.cts.map +1 -0
  430. package/dist/catalog.d.mts +14 -0
  431. package/dist/catalog.d.mts.map +1 -0
  432. package/dist/catalog.mjs +15 -0
  433. package/dist/catalog.mjs.map +1 -0
  434. package/dist/execute.cjs +18 -0
  435. package/dist/execute.cjs.map +1 -0
  436. package/dist/execute.mjs +18 -0
  437. package/dist/execute.mjs.map +1 -0
  438. package/dist/index.cjs +108 -0
  439. package/dist/index.d.cts +54 -0
  440. package/dist/index.d.mts +54 -0
  441. package/dist/index.mjs +55 -0
  442. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-group.mjs","names":[],"sources":["../../src/actions/create-group.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateGroupInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Group name. Must not exceed 50 characters.\"),\n sort_order: z.number().int().describe(\"Display order for the group. Lower values appear first in lists.\"),\n}).describe(\"Request parameters for creating a new group in SimpleKPI.\");\nexport const SimplekpiCreateGroupOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"System-assigned unique identifier for the group\"),\n name: z.string().describe(\"Group name (max 50 characters)\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the group was created\").nullable().optional(),\n sort_order: z.number().int().describe(\"Display ordering value for the group\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the group was last modified\").nullable().optional(),\n}).describe(\"Response containing the newly created group details.\");\n\nexport const simplekpiCreateGroup = action(\"SIMPLEKPI_CREATE_GROUP\", {\n slug: \"simplekpi-create-group\",\n name: \"Create Group\",\n description: \"Tool to create a new group in SimpleKPI. Use when you need to organize KPIs or users into logical groups for better organization and reporting.\",\n input: SimplekpiCreateGroupInput,\n output: SimplekpiCreateGroupOutput,\n});\n"],"mappings":";;AAgBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE;CAC1G,CAAC,CAAC,CAAC,SAAS,2DAaH;CACP,QAbsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD;EAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-kpi-category.ts
4
+ const SimplekpiCreateKpiCategoryInput = zod.z.object({
5
+ name: zod.z.string().describe("Category name (maximum 50 characters)"),
6
+ sort_order: zod.z.number().int().describe("Display order for the category (integer value)")
7
+ });
8
+ const SimplekpiCreateKpiCategoryOutput = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique identifier of the created KPI category"),
10
+ name: zod.z.string().describe("Name of the created KPI category"),
11
+ created_at: zod.z.string().describe("UTC datetime when the category was created (ISO 8601 format)").nullable().optional(),
12
+ sort_order: zod.z.number().int().describe("Display order of the created KPI category"),
13
+ updated_at: zod.z.string().describe("UTC datetime when the category was last updated (ISO 8601 format)").nullable().optional()
14
+ });
15
+ const simplekpiCreateKpiCategory = require_action.action("SIMPLEKPI_CREATE_KPI_CATEGORY", {
16
+ slug: "simplekpi-create-kpi-category",
17
+ name: "Create KPI Category",
18
+ description: "Tool to create a new KPI category in SimpleKPI. Use when you need to organize KPIs into logical groups or categories.",
19
+ input: SimplekpiCreateKpiCategoryInput,
20
+ output: SimplekpiCreateKpiCategoryOutput
21
+ });
22
+ //#endregion
23
+ exports.simplekpiCreateKpiCategory = simplekpiCreateKpiCategory;
24
+
25
+ //# sourceMappingURL=create-kpi-category.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-category.cjs","names":["z","action"],"sources":["../../src/actions/create-kpi-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiCategoryInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Category name (maximum 50 characters)\"),\n sort_order: z.number().int().describe(\"Display order for the category (integer value)\"),\n});\nexport const SimplekpiCreateKpiCategoryOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created KPI category\"),\n name: z.string().describe(\"Name of the created KPI category\"),\n created_at: z.string().describe(\"UTC datetime when the category was created (ISO 8601 format)\").nullable().optional(),\n sort_order: z.number().int().describe(\"Display order of the created KPI category\"),\n updated_at: z.string().describe(\"UTC datetime when the category was last updated (ISO 8601 format)\").nullable().optional(),\n});\n\nexport const simplekpiCreateKpiCategory = action(\"SIMPLEKPI_CREATE_KPI_CATEGORY\", {\n slug: \"simplekpi-create-kpi-category\",\n name: \"Create KPI Category\",\n description: \"Tool to create a new KPI category in SimpleKPI. Use when you need to organize KPIs into logical groups or categories.\",\n input: SimplekpiCreateKpiCategoryInput,\n output: SimplekpiCreateKpiCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AACxF,CAAC;AACD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi-category.d.ts
4
+ declare const SimplekpiCreateKpiCategoryInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiCategoryOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpiCategory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpiCategory };
9
+ //# sourceMappingURL=create-kpi-category.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-category.d.cts","names":[],"sources":["../../src/actions/create-kpi-category.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi-category.d.ts
4
+ declare const SimplekpiCreateKpiCategoryInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiCategoryOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpiCategory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpiCategory };
9
+ //# sourceMappingURL=create-kpi-category.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-category.d.mts","names":[],"sources":["../../src/actions/create-kpi-category.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAG9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,22 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const simplekpiCreateKpiCategory = action("SIMPLEKPI_CREATE_KPI_CATEGORY", {
4
+ slug: "simplekpi-create-kpi-category",
5
+ name: "Create KPI Category",
6
+ description: "Tool to create a new KPI category in SimpleKPI. Use when you need to organize KPIs into logical groups or categories.",
7
+ input: z.object({
8
+ name: z.string().describe("Category name (maximum 50 characters)"),
9
+ sort_order: z.number().int().describe("Display order for the category (integer value)")
10
+ }),
11
+ output: z.object({
12
+ id: z.number().int().describe("Unique identifier of the created KPI category"),
13
+ name: z.string().describe("Name of the created KPI category"),
14
+ created_at: z.string().describe("UTC datetime when the category was created (ISO 8601 format)").nullable().optional(),
15
+ sort_order: z.number().int().describe("Display order of the created KPI category"),
16
+ updated_at: z.string().describe("UTC datetime when the category was last updated (ISO 8601 format)").nullable().optional()
17
+ })
18
+ });
19
+ //#endregion
20
+ export { simplekpiCreateKpiCategory };
21
+
22
+ //# sourceMappingURL=create-kpi-category.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-category.mjs","names":[],"sources":["../../src/actions/create-kpi-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiCategoryInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Category name (maximum 50 characters)\"),\n sort_order: z.number().int().describe(\"Display order for the category (integer value)\"),\n});\nexport const SimplekpiCreateKpiCategoryOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created KPI category\"),\n name: z.string().describe(\"Name of the created KPI category\"),\n created_at: z.string().describe(\"UTC datetime when the category was created (ISO 8601 format)\").nullable().optional(),\n sort_order: z.number().int().describe(\"Display order of the created KPI category\"),\n updated_at: z.string().describe(\"UTC datetime when the category was last updated (ISO 8601 format)\").nullable().optional(),\n});\n\nexport const simplekpiCreateKpiCategory = action(\"SIMPLEKPI_CREATE_KPI_CATEGORY\", {\n slug: \"simplekpi-create-kpi-category\",\n name: \"Create KPI Category\",\n description: \"Tool to create a new KPI category in SimpleKPI. Use when you need to organize KPIs into logical groups or categories.\",\n input: SimplekpiCreateKpiCategoryInput,\n output: SimplekpiCreateKpiCategoryOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CACxF,CAaS;CACP,QAb4D,EAAE,OAAO;EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,CAOU;AACV,CAAC"}
@@ -0,0 +1,29 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-kpi-unit.ts
4
+ const SimplekpiCreateKpiUnitInput = zod.z.object({
5
+ name: zod.z.string().describe("Unit name (maximum 25 characters)"),
6
+ entry_format: zod.z.string().describe("Entry format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values"),
7
+ is_percentage: zod.z.boolean().describe("Whether the unit represents a percentage value"),
8
+ display_format: zod.z.string().describe("Display format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values")
9
+ }).describe("Request model for creating a new KPI unit.");
10
+ const SimplekpiCreateKpiUnitOutput = zod.z.object({
11
+ id: zod.z.number().int().describe("Unique identifier of the created KPI unit").nullable().optional(),
12
+ name: zod.z.string().describe("Name of the created KPI unit").nullable().optional(),
13
+ created_at: zod.z.string().describe("Timestamp when the unit was created").nullable().optional(),
14
+ updated_at: zod.z.string().describe("Timestamp when the unit was last updated").nullable().optional(),
15
+ entry_format: zod.z.string().describe("Entry format of the created KPI unit").nullable().optional(),
16
+ is_percentage: zod.z.boolean().describe("Whether the unit is a percentage").nullable().optional(),
17
+ display_format: zod.z.string().describe("Display format of the created KPI unit").nullable().optional()
18
+ }).describe("Response model for created KPI unit.");
19
+ const simplekpiCreateKpiUnit = require_action.action("SIMPLEKPI_CREATE_KPI_UNIT", {
20
+ slug: "simplekpi-create-kpi-unit",
21
+ name: "Create KPI Unit",
22
+ description: "Tool to create a new KPI unit in SimpleKPI. Use when you need to define a measurement unit for KPI tracking.",
23
+ input: SimplekpiCreateKpiUnitInput,
24
+ output: SimplekpiCreateKpiUnitOutput
25
+ });
26
+ //#endregion
27
+ exports.simplekpiCreateKpiUnit = simplekpiCreateKpiUnit;
28
+
29
+ //# sourceMappingURL=create-kpi-unit.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-unit.cjs","names":["z","action"],"sources":["../../src/actions/create-kpi-unit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiUnitInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unit name (maximum 25 characters)\"),\n entry_format: z.string().describe(\"Entry format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values\"),\n is_percentage: z.boolean().describe(\"Whether the unit represents a percentage value\"),\n display_format: z.string().describe(\"Display format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values\"),\n}).describe(\"Request model for creating a new KPI unit.\");\nexport const SimplekpiCreateKpiUnitOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created KPI unit\").nullable().optional(),\n name: z.string().describe(\"Name of the created KPI unit\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the unit was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the unit was last updated\").nullable().optional(),\n entry_format: z.string().describe(\"Entry format of the created KPI unit\").nullable().optional(),\n is_percentage: z.boolean().describe(\"Whether the unit is a percentage\").nullable().optional(),\n display_format: z.string().describe(\"Display format of the created KPI unit\").nullable().optional(),\n}).describe(\"Response model for created KPI unit.\");\n\nexport const simplekpiCreateKpiUnit = action(\"SIMPLEKPI_CREATE_KPI_UNIT\", {\n slug: \"simplekpi-create-kpi-unit\",\n name: \"Create KPI Unit\",\n description: \"Tool to create a new KPI unit in SimpleKPI. Use when you need to define a measurement unit for KPI tracking.\",\n input: SimplekpiCreateKpiUnitInput,\n output: SimplekpiCreateKpiUnitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAClI,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;AACxI,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi-unit.d.ts
4
+ declare const SimplekpiCreateKpiUnitInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiUnitOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpiUnit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpiUnit };
9
+ //# sourceMappingURL=create-kpi-unit.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-unit.d.cts","names":[],"sources":["../../src/actions/create-kpi-unit.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAC5C,4BAAA,EAA8B,CAAA,CAAE,UAQM;AAAA,cAEtC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi-unit.d.ts
4
+ declare const SimplekpiCreateKpiUnitInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiUnitOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpiUnit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpiUnit };
9
+ //# sourceMappingURL=create-kpi-unit.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-unit.d.mts","names":[],"sources":["../../src/actions/create-kpi-unit.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAC5C,4BAAA,EAA8B,CAAA,CAAE,UAQM;AAAA,cAEtC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,26 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const simplekpiCreateKpiUnit = action("SIMPLEKPI_CREATE_KPI_UNIT", {
4
+ slug: "simplekpi-create-kpi-unit",
5
+ name: "Create KPI Unit",
6
+ description: "Tool to create a new KPI unit in SimpleKPI. Use when you need to define a measurement unit for KPI tracking.",
7
+ input: z.object({
8
+ name: z.string().describe("Unit name (maximum 25 characters)"),
9
+ entry_format: z.string().describe("Entry format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values"),
10
+ is_percentage: z.boolean().describe("Whether the unit represents a percentage value"),
11
+ display_format: z.string().describe("Display format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values")
12
+ }).describe("Request model for creating a new KPI unit."),
13
+ output: z.object({
14
+ id: z.number().int().describe("Unique identifier of the created KPI unit").nullable().optional(),
15
+ name: z.string().describe("Name of the created KPI unit").nullable().optional(),
16
+ created_at: z.string().describe("Timestamp when the unit was created").nullable().optional(),
17
+ updated_at: z.string().describe("Timestamp when the unit was last updated").nullable().optional(),
18
+ entry_format: z.string().describe("Entry format of the created KPI unit").nullable().optional(),
19
+ is_percentage: z.boolean().describe("Whether the unit is a percentage").nullable().optional(),
20
+ display_format: z.string().describe("Display format of the created KPI unit").nullable().optional()
21
+ }).describe("Response model for created KPI unit.")
22
+ });
23
+ //#endregion
24
+ export { simplekpiCreateKpiUnit };
25
+
26
+ //# sourceMappingURL=create-kpi-unit.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi-unit.mjs","names":[],"sources":["../../src/actions/create-kpi-unit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiUnitInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unit name (maximum 25 characters)\"),\n entry_format: z.string().describe(\"Entry format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values\"),\n is_percentage: z.boolean().describe(\"Whether the unit represents a percentage value\"),\n display_format: z.string().describe(\"Display format for the unit (maximum 25 characters). Use '###' as placeholder for numeric values\"),\n}).describe(\"Request model for creating a new KPI unit.\");\nexport const SimplekpiCreateKpiUnitOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the created KPI unit\").nullable().optional(),\n name: z.string().describe(\"Name of the created KPI unit\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the unit was created\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the unit was last updated\").nullable().optional(),\n entry_format: z.string().describe(\"Entry format of the created KPI unit\").nullable().optional(),\n is_percentage: z.boolean().describe(\"Whether the unit is a percentage\").nullable().optional(),\n display_format: z.string().describe(\"Display format of the created KPI unit\").nullable().optional(),\n}).describe(\"Response model for created KPI unit.\");\n\nexport const simplekpiCreateKpiUnit = action(\"SIMPLEKPI_CREATE_KPI_UNIT\", {\n slug: \"simplekpi-create-kpi-unit\",\n name: \"Create KPI Unit\",\n description: \"Tool to create a new KPI unit in SimpleKPI. Use when you need to define a measurement unit for KPI tracking.\",\n input: SimplekpiCreateKpiUnitInput,\n output: SimplekpiCreateKpiUnitOutput,\n});\n"],"mappings":";;AAoBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAClI,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;EACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CACxI,CAAC,CAAC,CAAC,SAAS,4CAeH;CACP,QAfwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
@@ -0,0 +1,46 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-kpi.ts
4
+ const SimplekpiCreateKpiInput = zod.z.object({
5
+ name: zod.z.string().describe("Name of the KPI."),
6
+ icon_id: zod.z.number().int().describe("Icon ID for the KPI display."),
7
+ unit_id: zod.z.number().int().describe("Unit ID that defines the measurement unit for this KPI."),
8
+ is_active: zod.z.boolean().describe("Active status indicating whether the KPI is currently active."),
9
+ sort_order: zod.z.number().int().describe("Display order for sorting KPIs in the interface."),
10
+ category_id: zod.z.number().int().describe("KPI Category ID. Use GET /api/kpicategories to fetch available categories."),
11
+ frequency_id: zod.z.string().describe("Frequency ID that determines data entry frequency (e.g., 'M' for monthly, 'W' for weekly, 'D' for daily)."),
12
+ value_direction: zod.z.enum([
13
+ "U",
14
+ "D",
15
+ "N"
16
+ ]).describe("Direction indicator: 'U' (up is good), 'D' (down is good), or 'N' (neutral)."),
17
+ aggregate_function: zod.z.enum(["AVG", "SUM"]).describe("Calculation method for aggregating KPI values: 'AVG' (average) or 'SUM' (sum).")
18
+ }).describe("Request model for creating a new KPI.");
19
+ const SimplekpiCreateKpiOutput = zod.z.object({
20
+ id: zod.z.number().int().describe("Auto-generated KPI identifier."),
21
+ name: zod.z.string().describe("KPI name."),
22
+ icon_id: zod.z.number().int().describe("Icon ID."),
23
+ unit_id: zod.z.number().int().describe("Unit of measure ID."),
24
+ is_active: zod.z.boolean().describe("Active status."),
25
+ created_at: zod.z.string().describe("UTC creation timestamp.").nullable().optional(),
26
+ sort_order: zod.z.number().int().describe("Display order."),
27
+ updated_at: zod.z.string().describe("UTC update timestamp.").nullable().optional(),
28
+ category_id: zod.z.number().int().describe("Associated category ID."),
29
+ description: zod.z.string().describe("KPI description.").nullable().optional(),
30
+ frequency_id: zod.z.string().describe("Data entry frequency ID."),
31
+ is_calculated: zod.z.boolean().describe("Calculated KPI flag (read-only).").nullable().optional(),
32
+ target_default: zod.z.number().describe("Default target value.").nullable().optional(),
33
+ value_direction: zod.z.string().describe("Direction indicator (U/D/N)."),
34
+ aggregate_function: zod.z.string().describe("Calculation method (AVG or SUM).")
35
+ }).describe("Response model for created KPI.");
36
+ const simplekpiCreateKpi = require_action.action("SIMPLEKPI_CREATE_KPI", {
37
+ slug: "simplekpi-create-kpi",
38
+ name: "Create KPI",
39
+ description: "Tool to create a new KPI with specified configuration. Use when you need to add a new Key Performance Indicator to track metrics.",
40
+ input: SimplekpiCreateKpiInput,
41
+ output: SimplekpiCreateKpiOutput
42
+ });
43
+ //#endregion
44
+ exports.simplekpiCreateKpi = simplekpiCreateKpi;
45
+
46
+ //# sourceMappingURL=create-kpi.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi.cjs","names":["z","action"],"sources":["../../src/actions/create-kpi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the KPI.\"),\n icon_id: z.number().int().describe(\"Icon ID for the KPI display.\"),\n unit_id: z.number().int().describe(\"Unit ID that defines the measurement unit for this KPI.\"),\n is_active: z.boolean().describe(\"Active status indicating whether the KPI is currently active.\"),\n sort_order: z.number().int().describe(\"Display order for sorting KPIs in the interface.\"),\n category_id: z.number().int().describe(\"KPI Category ID. Use GET /api/kpicategories to fetch available categories.\"),\n frequency_id: z.string().describe(\"Frequency ID that determines data entry frequency (e.g., 'M' for monthly, 'W' for weekly, 'D' for daily).\"),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: 'U' (up is good), 'D' (down is good), or 'N' (neutral).\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"Calculation method for aggregating KPI values: 'AVG' (average) or 'SUM' (sum).\"),\n}).describe(\"Request model for creating a new KPI.\");\nexport const SimplekpiCreateKpiOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Auto-generated KPI identifier.\"),\n name: z.string().describe(\"KPI name.\"),\n icon_id: z.number().int().describe(\"Icon ID.\"),\n unit_id: z.number().int().describe(\"Unit of measure ID.\"),\n is_active: z.boolean().describe(\"Active status.\"),\n created_at: z.string().describe(\"UTC creation timestamp.\").nullable().optional(),\n sort_order: z.number().int().describe(\"Display order.\"),\n updated_at: z.string().describe(\"UTC update timestamp.\").nullable().optional(),\n category_id: z.number().int().describe(\"Associated category ID.\"),\n description: z.string().describe(\"KPI description.\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency ID.\"),\n is_calculated: z.boolean().describe(\"Calculated KPI flag (read-only).\").nullable().optional(),\n target_default: z.number().describe(\"Default target value.\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator (U/D/N).\"),\n aggregate_function: z.string().describe(\"Calculation method (AVG or SUM).\"),\n}).describe(\"Response model for created KPI.\");\n\nexport const simplekpiCreateKpi = action(\"SIMPLEKPI_CREATE_KPI\", {\n slug: \"simplekpi-create-kpi\",\n name: \"Create KPI\",\n description: \"Tool to create a new KPI with specified configuration. Use when you need to add a new Key Performance Indicator to track metrics.\",\n input: SimplekpiCreateKpiInput,\n output: SimplekpiCreateKpiOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CAC5F,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAC7I,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;CAAG,CAAC,CAAC,CAAC,SAAS,8EAA8E;CAChI,oBAAoBA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gFAAgF;AACtI,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;CACrC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACxD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gBAAgB;CAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC5D,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACnE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AAC5E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAE7C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi.d.ts
4
+ declare const SimplekpiCreateKpiInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpi: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpi };
9
+ //# sourceMappingURL=create-kpi.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi.d.cts","names":[],"sources":["../../src/actions/create-kpi.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAUY;AAAA,cACvC,wBAAA,EAA0B,CAAA,CAAE,UAgBK;AAAA,cAEjC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-kpi.d.ts
4
+ declare const SimplekpiCreateKpiInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateKpiOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateKpi: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateKpi };
9
+ //# sourceMappingURL=create-kpi.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi.d.mts","names":[],"sources":["../../src/actions/create-kpi.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAUY;AAAA,cACvC,wBAAA,EAA0B,CAAA,CAAE,UAgBK;AAAA,cAEjC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,43 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const simplekpiCreateKpi = action("SIMPLEKPI_CREATE_KPI", {
4
+ slug: "simplekpi-create-kpi",
5
+ name: "Create KPI",
6
+ description: "Tool to create a new KPI with specified configuration. Use when you need to add a new Key Performance Indicator to track metrics.",
7
+ input: z.object({
8
+ name: z.string().describe("Name of the KPI."),
9
+ icon_id: z.number().int().describe("Icon ID for the KPI display."),
10
+ unit_id: z.number().int().describe("Unit ID that defines the measurement unit for this KPI."),
11
+ is_active: z.boolean().describe("Active status indicating whether the KPI is currently active."),
12
+ sort_order: z.number().int().describe("Display order for sorting KPIs in the interface."),
13
+ category_id: z.number().int().describe("KPI Category ID. Use GET /api/kpicategories to fetch available categories."),
14
+ frequency_id: z.string().describe("Frequency ID that determines data entry frequency (e.g., 'M' for monthly, 'W' for weekly, 'D' for daily)."),
15
+ value_direction: z.enum([
16
+ "U",
17
+ "D",
18
+ "N"
19
+ ]).describe("Direction indicator: 'U' (up is good), 'D' (down is good), or 'N' (neutral)."),
20
+ aggregate_function: z.enum(["AVG", "SUM"]).describe("Calculation method for aggregating KPI values: 'AVG' (average) or 'SUM' (sum).")
21
+ }).describe("Request model for creating a new KPI."),
22
+ output: z.object({
23
+ id: z.number().int().describe("Auto-generated KPI identifier."),
24
+ name: z.string().describe("KPI name."),
25
+ icon_id: z.number().int().describe("Icon ID."),
26
+ unit_id: z.number().int().describe("Unit of measure ID."),
27
+ is_active: z.boolean().describe("Active status."),
28
+ created_at: z.string().describe("UTC creation timestamp.").nullable().optional(),
29
+ sort_order: z.number().int().describe("Display order."),
30
+ updated_at: z.string().describe("UTC update timestamp.").nullable().optional(),
31
+ category_id: z.number().int().describe("Associated category ID."),
32
+ description: z.string().describe("KPI description.").nullable().optional(),
33
+ frequency_id: z.string().describe("Data entry frequency ID."),
34
+ is_calculated: z.boolean().describe("Calculated KPI flag (read-only).").nullable().optional(),
35
+ target_default: z.number().describe("Default target value.").nullable().optional(),
36
+ value_direction: z.string().describe("Direction indicator (U/D/N)."),
37
+ aggregate_function: z.string().describe("Calculation method (AVG or SUM).")
38
+ }).describe("Response model for created KPI.")
39
+ });
40
+ //#endregion
41
+ export { simplekpiCreateKpi };
42
+
43
+ //# sourceMappingURL=create-kpi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-kpi.mjs","names":[],"sources":["../../src/actions/create-kpi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateKpiInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the KPI.\"),\n icon_id: z.number().int().describe(\"Icon ID for the KPI display.\"),\n unit_id: z.number().int().describe(\"Unit ID that defines the measurement unit for this KPI.\"),\n is_active: z.boolean().describe(\"Active status indicating whether the KPI is currently active.\"),\n sort_order: z.number().int().describe(\"Display order for sorting KPIs in the interface.\"),\n category_id: z.number().int().describe(\"KPI Category ID. Use GET /api/kpicategories to fetch available categories.\"),\n frequency_id: z.string().describe(\"Frequency ID that determines data entry frequency (e.g., 'M' for monthly, 'W' for weekly, 'D' for daily).\"),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: 'U' (up is good), 'D' (down is good), or 'N' (neutral).\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"Calculation method for aggregating KPI values: 'AVG' (average) or 'SUM' (sum).\"),\n}).describe(\"Request model for creating a new KPI.\");\nexport const SimplekpiCreateKpiOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Auto-generated KPI identifier.\"),\n name: z.string().describe(\"KPI name.\"),\n icon_id: z.number().int().describe(\"Icon ID.\"),\n unit_id: z.number().int().describe(\"Unit of measure ID.\"),\n is_active: z.boolean().describe(\"Active status.\"),\n created_at: z.string().describe(\"UTC creation timestamp.\").nullable().optional(),\n sort_order: z.number().int().describe(\"Display order.\"),\n updated_at: z.string().describe(\"UTC update timestamp.\").nullable().optional(),\n category_id: z.number().int().describe(\"Associated category ID.\"),\n description: z.string().describe(\"KPI description.\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency ID.\"),\n is_calculated: z.boolean().describe(\"Calculated KPI flag (read-only).\").nullable().optional(),\n target_default: z.number().describe(\"Default target value.\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator (U/D/N).\"),\n aggregate_function: z.string().describe(\"Calculation method (AVG or SUM).\"),\n}).describe(\"Response model for created KPI.\");\n\nexport const simplekpiCreateKpi = action(\"SIMPLEKPI_CREATE_KPI\", {\n slug: \"simplekpi-create-kpi\",\n name: \"Create KPI\",\n description: \"Tool to create a new KPI with specified configuration. Use when you need to add a new Key Performance Indicator to track metrics.\",\n input: SimplekpiCreateKpiInput,\n output: SimplekpiCreateKpiOutput,\n});\n"],"mappings":";;AAiCA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjCmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;EAC5F,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4EAA4E;EACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;EAC7I,iBAAiB,EAAE,KAAK;GAAC;GAAK;GAAK;EAAG,CAAC,CAAC,CAAC,SAAS,8EAA8E;EAChI,oBAAoB,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACtI,CAAC,CAAC,CAAC,SAAS,uCAuBH;CACP,QAvBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;EACrC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACxD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,gBAAgB;EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EAC5D,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACnE,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5E,CAAC,CAAC,CAAC,SAAS,iCAOF;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-or-update-kpi-entries.ts
4
+ const SimplekpiCreateOrUpdateKpiEntriesInput = zod.z.object({
5
+ entries: zod.z.array(zod.z.object({
6
+ email: zod.z.string().describe("Email address of the user. Use this OR user_id to identify the user").optional(),
7
+ notes: zod.z.string().describe("Notes or comments for this KPI entry").optional(),
8
+ actual: zod.z.number().describe("Actual value for this KPI entry").optional(),
9
+ kpi_id: zod.z.number().int().describe("ID of the KPI to which this entry belongs"),
10
+ target: zod.z.number().describe("Target value for this KPI entry").optional(),
11
+ user_id: zod.z.number().int().describe("ID of the user. Use this OR email to identify the user").optional(),
12
+ setNotes: zod.z.boolean().describe("Whether to set the notes field (true) or leave it unchanged (false)").optional(),
13
+ setActual: zod.z.boolean().describe("Whether to set the actual value (true) or leave it unchanged (false)").optional(),
14
+ setTarget: zod.z.boolean().describe("Whether to set the target value (true) or leave it unchanged (false)").optional(),
15
+ entry_date: zod.z.string().describe("Date of the entry in ISO 8601 format (e.g., '2026-02-01T00:00:00')"),
16
+ addToActual: zod.z.boolean().describe("Whether to add to the existing actual value (true) or replace it (false)").optional()
17
+ }).describe("Individual KPI entry within a batch operation.")).describe("Array of KPI entry objects to create or update. Maximum 5000 entries per batch"),
18
+ hasNotes: zod.z.boolean().describe("Indicates whether the batch contains notes. Helps optimize processing").optional(),
19
+ hasActuals: zod.z.boolean().describe("Indicates whether the batch contains actual values. Helps optimize processing").optional(),
20
+ hasTargets: zod.z.boolean().describe("Indicates whether the batch contains target values. Helps optimize processing").optional()
21
+ }).describe("Request model for batch creating or updating multiple KPI entries.");
22
+ const SimplekpiCreateOrUpdateKpiEntriesOutput = zod.z.object({ rows_added: zod.z.number().int().describe("Number of entries successfully added or updated") }).describe("Response model for batch KPI entries operation.");
23
+ const simplekpiCreateOrUpdateKpiEntries = require_action.action("SIMPLEKPI_CREATE_OR_UPDATE_KPI_ENTRIES", {
24
+ slug: "simplekpi-create-or-update-kpi-entries",
25
+ name: "Batch KPI Entries",
26
+ description: "Tool to batch create or update multiple KPI entries at once. Use when you need to load multiple KPI data points efficiently (up to 5000 entries per batch). Each entry must have a kpi_id, entry_date, and either email or user_id.",
27
+ input: SimplekpiCreateOrUpdateKpiEntriesInput,
28
+ output: SimplekpiCreateOrUpdateKpiEntriesOutput
29
+ });
30
+ //#endregion
31
+ exports.simplekpiCreateOrUpdateKpiEntries = simplekpiCreateOrUpdateKpiEntries;
32
+
33
+ //# sourceMappingURL=create-or-update-kpi-entries.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-kpi-entries.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-kpi-entries.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateOrUpdateKpiEntriesInput: z.ZodTypeAny = z.object({\n entries: z.array(z.object({\n email: z.string().describe(\"Email address of the user. Use this OR user_id to identify the user\").optional(),\n notes: z.string().describe(\"Notes or comments for this KPI entry\").optional(),\n actual: z.number().describe(\"Actual value for this KPI entry\").optional(),\n kpi_id: z.number().int().describe(\"ID of the KPI to which this entry belongs\"),\n target: z.number().describe(\"Target value for this KPI entry\").optional(),\n user_id: z.number().int().describe(\"ID of the user. Use this OR email to identify the user\").optional(),\n setNotes: z.boolean().describe(\"Whether to set the notes field (true) or leave it unchanged (false)\").optional(),\n setActual: z.boolean().describe(\"Whether to set the actual value (true) or leave it unchanged (false)\").optional(),\n setTarget: z.boolean().describe(\"Whether to set the target value (true) or leave it unchanged (false)\").optional(),\n entry_date: z.string().describe(\"Date of the entry in ISO 8601 format (e.g., '2026-02-01T00:00:00')\"),\n addToActual: z.boolean().describe(\"Whether to add to the existing actual value (true) or replace it (false)\").optional(),\n}).describe(\"Individual KPI entry within a batch operation.\")).describe(\"Array of KPI entry objects to create or update. Maximum 5000 entries per batch\"),\n hasNotes: z.boolean().describe(\"Indicates whether the batch contains notes. Helps optimize processing\").optional(),\n hasActuals: z.boolean().describe(\"Indicates whether the batch contains actual values. Helps optimize processing\").optional(),\n hasTargets: z.boolean().describe(\"Indicates whether the batch contains target values. Helps optimize processing\").optional(),\n}).describe(\"Request model for batch creating or updating multiple KPI entries.\");\nexport const SimplekpiCreateOrUpdateKpiEntriesOutput: z.ZodTypeAny = z.object({\n rows_added: z.number().int().describe(\"Number of entries successfully added or updated\"),\n}).describe(\"Response model for batch KPI entries operation.\");\n\nexport const simplekpiCreateOrUpdateKpiEntries = action(\"SIMPLEKPI_CREATE_OR_UPDATE_KPI_ENTRIES\", {\n slug: \"simplekpi-create-or-update-kpi-entries\",\n name: \"Batch KPI Entries\",\n description: \"Tool to batch create or update multiple KPI entries at once. Use when you need to load multiple KPI data points efficiently (up to 5000 entries per batch). Each entry must have a kpi_id, entry_date, and either email or user_id.\",\n input: SimplekpiCreateOrUpdateKpiEntriesInput,\n output: SimplekpiCreateOrUpdateKpiEntriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACtG,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC/G,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACjH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACpG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACtJ,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,EACzF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-or-update-kpi-entries.d.ts
4
+ declare const SimplekpiCreateOrUpdateKpiEntriesInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateOrUpdateKpiEntriesOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateOrUpdateKpiEntries: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateOrUpdateKpiEntries };
9
+ //# sourceMappingURL=create-or-update-kpi-entries.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-kpi-entries.d.cts","names":[],"sources":["../../src/actions/create-or-update-kpi-entries.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAiB0B;AAAA,cACpE,uCAAA,EAAyC,CAAA,CAAE,UAEM;AAAA,cAEjD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-or-update-kpi-entries.d.ts
4
+ declare const SimplekpiCreateOrUpdateKpiEntriesInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateOrUpdateKpiEntriesOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateOrUpdateKpiEntries: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateOrUpdateKpiEntries };
9
+ //# sourceMappingURL=create-or-update-kpi-entries.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-kpi-entries.d.mts","names":[],"sources":["../../src/actions/create-or-update-kpi-entries.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAiB0B;AAAA,cACpE,uCAAA,EAAyC,CAAA,CAAE,UAEM;AAAA,cAEjD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const simplekpiCreateOrUpdateKpiEntries = action("SIMPLEKPI_CREATE_OR_UPDATE_KPI_ENTRIES", {
4
+ slug: "simplekpi-create-or-update-kpi-entries",
5
+ name: "Batch KPI Entries",
6
+ description: "Tool to batch create or update multiple KPI entries at once. Use when you need to load multiple KPI data points efficiently (up to 5000 entries per batch). Each entry must have a kpi_id, entry_date, and either email or user_id.",
7
+ input: z.object({
8
+ entries: z.array(z.object({
9
+ email: z.string().describe("Email address of the user. Use this OR user_id to identify the user").optional(),
10
+ notes: z.string().describe("Notes or comments for this KPI entry").optional(),
11
+ actual: z.number().describe("Actual value for this KPI entry").optional(),
12
+ kpi_id: z.number().int().describe("ID of the KPI to which this entry belongs"),
13
+ target: z.number().describe("Target value for this KPI entry").optional(),
14
+ user_id: z.number().int().describe("ID of the user. Use this OR email to identify the user").optional(),
15
+ setNotes: z.boolean().describe("Whether to set the notes field (true) or leave it unchanged (false)").optional(),
16
+ setActual: z.boolean().describe("Whether to set the actual value (true) or leave it unchanged (false)").optional(),
17
+ setTarget: z.boolean().describe("Whether to set the target value (true) or leave it unchanged (false)").optional(),
18
+ entry_date: z.string().describe("Date of the entry in ISO 8601 format (e.g., '2026-02-01T00:00:00')"),
19
+ addToActual: z.boolean().describe("Whether to add to the existing actual value (true) or replace it (false)").optional()
20
+ }).describe("Individual KPI entry within a batch operation.")).describe("Array of KPI entry objects to create or update. Maximum 5000 entries per batch"),
21
+ hasNotes: z.boolean().describe("Indicates whether the batch contains notes. Helps optimize processing").optional(),
22
+ hasActuals: z.boolean().describe("Indicates whether the batch contains actual values. Helps optimize processing").optional(),
23
+ hasTargets: z.boolean().describe("Indicates whether the batch contains target values. Helps optimize processing").optional()
24
+ }).describe("Request model for batch creating or updating multiple KPI entries."),
25
+ output: z.object({ rows_added: z.number().int().describe("Number of entries successfully added or updated") }).describe("Response model for batch KPI entries operation.")
26
+ });
27
+ //#endregion
28
+ export { simplekpiCreateOrUpdateKpiEntries };
29
+
30
+ //# sourceMappingURL=create-or-update-kpi-entries.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-or-update-kpi-entries.mjs","names":[],"sources":["../../src/actions/create-or-update-kpi-entries.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateOrUpdateKpiEntriesInput: z.ZodTypeAny = z.object({\n entries: z.array(z.object({\n email: z.string().describe(\"Email address of the user. Use this OR user_id to identify the user\").optional(),\n notes: z.string().describe(\"Notes or comments for this KPI entry\").optional(),\n actual: z.number().describe(\"Actual value for this KPI entry\").optional(),\n kpi_id: z.number().int().describe(\"ID of the KPI to which this entry belongs\"),\n target: z.number().describe(\"Target value for this KPI entry\").optional(),\n user_id: z.number().int().describe(\"ID of the user. Use this OR email to identify the user\").optional(),\n setNotes: z.boolean().describe(\"Whether to set the notes field (true) or leave it unchanged (false)\").optional(),\n setActual: z.boolean().describe(\"Whether to set the actual value (true) or leave it unchanged (false)\").optional(),\n setTarget: z.boolean().describe(\"Whether to set the target value (true) or leave it unchanged (false)\").optional(),\n entry_date: z.string().describe(\"Date of the entry in ISO 8601 format (e.g., '2026-02-01T00:00:00')\"),\n addToActual: z.boolean().describe(\"Whether to add to the existing actual value (true) or replace it (false)\").optional(),\n}).describe(\"Individual KPI entry within a batch operation.\")).describe(\"Array of KPI entry objects to create or update. Maximum 5000 entries per batch\"),\n hasNotes: z.boolean().describe(\"Indicates whether the batch contains notes. Helps optimize processing\").optional(),\n hasActuals: z.boolean().describe(\"Indicates whether the batch contains actual values. Helps optimize processing\").optional(),\n hasTargets: z.boolean().describe(\"Indicates whether the batch contains target values. Helps optimize processing\").optional(),\n}).describe(\"Request model for batch creating or updating multiple KPI entries.\");\nexport const SimplekpiCreateOrUpdateKpiEntriesOutput: z.ZodTypeAny = z.object({\n rows_added: z.number().int().describe(\"Number of entries successfully added or updated\"),\n}).describe(\"Response model for batch KPI entries operation.\");\n\nexport const simplekpiCreateOrUpdateKpiEntries = action(\"SIMPLEKPI_CREATE_OR_UPDATE_KPI_ENTRIES\", {\n slug: \"simplekpi-create-or-update-kpi-entries\",\n name: \"Batch KPI Entries\",\n description: \"Tool to batch create or update multiple KPI entries at once. Use when you need to load multiple KPI data points efficiently (up to 5000 entries per batch). Each entry must have a kpi_id, entry_date, and either email or user_id.\",\n input: SimplekpiCreateOrUpdateKpiEntriesInput,\n output: SimplekpiCreateOrUpdateKpiEntriesOutput,\n});\n"],"mappings":";;AA0BA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BkE,EAAE,OAAO;EAC3E,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;GAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;GAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACxE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;GACtG,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;GAC/G,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;GACjH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;GACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;GACpG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACzH,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,CAAC,SAAS,gFAAgF;EACtJ,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACjH,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC3H,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,oEASH;CACP,QATmE,EAAE,OAAO,EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,EACzF,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-user.ts
4
+ const SimplekpiCreateUserInput = zod.z.object({
5
+ email: zod.z.string().describe("Valid email address for login"),
6
+ password: zod.z.string().describe("Password for new user. Must be at least 8 characters long"),
7
+ last_name: zod.z.string().describe("Last name of user (optional)").optional(),
8
+ user_type: zod.z.enum([
9
+ "Admin",
10
+ "Director",
11
+ "Manager",
12
+ "User"
13
+ ]).describe("User type: Admin, Director, Manager, or User"),
14
+ first_name: zod.z.string().describe("First name of user"),
15
+ user_status_id: zod.z.enum(["A", "L"]).describe("User status: A for Active or L for Locked"),
16
+ can_manage_users: zod.z.boolean().describe("Whether user can manage other users. Relevant for Manager type"),
17
+ can_admin_settings: zod.z.boolean().describe("Whether user can access admin settings. Relevant for Admin type")
18
+ }).describe("Request to create a new user in SimpleKPI.");
19
+ const SimplekpiCreateUserOutput = zod.z.object({
20
+ id: zod.z.number().int().describe("Unique identifier for the newly created user").nullable().optional(),
21
+ email: zod.z.string().describe("Email address of the user").nullable().optional(),
22
+ last_name: zod.z.string().describe("Last name of the user").nullable().optional(),
23
+ user_type: zod.z.string().describe("User type (Admin, Director, Manager, or User)").nullable().optional(),
24
+ created_at: zod.z.string().describe("Timestamp when the user was created").nullable().optional(),
25
+ first_name: zod.z.string().describe("First name of the user").nullable().optional(),
26
+ updated_at: zod.z.string().describe("Timestamp when the user was last updated").nullable().optional(),
27
+ user_status_id: zod.z.string().describe("User status (A for Active, L for Locked)").nullable().optional(),
28
+ can_manage_users: zod.z.boolean().describe("Whether user can manage other users").nullable().optional(),
29
+ can_admin_settings: zod.z.boolean().describe("Whether user can access admin settings").nullable().optional()
30
+ }).describe("Response containing created user details.");
31
+ const simplekpiCreateUser = require_action.action("SIMPLEKPI_CREATE_USER", {
32
+ slug: "simplekpi-create-user",
33
+ name: "Create User",
34
+ description: "Tool to create a new user account in SimpleKPI. Use when you need to add a new user with specific permissions and access levels.",
35
+ input: SimplekpiCreateUserInput,
36
+ output: SimplekpiCreateUserOutput
37
+ });
38
+ //#endregion
39
+ exports.simplekpiCreateUser = simplekpiCreateUser;
40
+
41
+ //# sourceMappingURL=create-user.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiCreateUserInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Valid email address for login\"),\n password: z.string().describe(\"Password for new user. Must be at least 8 characters long\"),\n last_name: z.string().describe(\"Last name of user (optional)\").optional(),\n user_type: z.enum([\"Admin\", \"Director\", \"Manager\", \"User\"]).describe(\"User type: Admin, Director, Manager, or User\"),\n first_name: z.string().describe(\"First name of user\"),\n user_status_id: z.enum([\"A\", \"L\"]).describe(\"User status: A for Active or L for Locked\"),\n can_manage_users: z.boolean().describe(\"Whether user can manage other users. Relevant for Manager type\"),\n can_admin_settings: z.boolean().describe(\"Whether user can access admin settings. Relevant for Admin type\"),\n}).describe(\"Request to create a new user in SimpleKPI.\");\nexport const SimplekpiCreateUserOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the newly created user\").nullable().optional(),\n email: z.string().describe(\"Email address of the user\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n user_type: z.string().describe(\"User type (Admin, Director, Manager, or User)\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the user was created\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the user was last updated\").nullable().optional(),\n user_status_id: z.string().describe(\"User status (A for Active, L for Locked)\").nullable().optional(),\n can_manage_users: z.boolean().describe(\"Whether user can manage other users\").nullable().optional(),\n can_admin_settings: z.boolean().describe(\"Whether user can access admin settings\").nullable().optional(),\n}).describe(\"Response containing created user details.\");\n\nexport const simplekpiCreateUser = action(\"SIMPLEKPI_CREATE_USER\", {\n slug: \"simplekpi-create-user\",\n name: \"Create User\",\n description: \"Tool to create a new user account in SimpleKPI. Use when you need to add a new user with specific permissions and access levels.\",\n input: SimplekpiCreateUserInput,\n output: SimplekpiCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAY;EAAW;CAAM,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACpD,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACvF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE;CACvG,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE;AAC5G,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const SimplekpiCreateUserInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateUserOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateUser };
9
+ //# sourceMappingURL=create-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASgB;AAAA,cAC5C,yBAAA,EAA2B,CAAA,CAAE,UAWc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const SimplekpiCreateUserInput: z.ZodTypeAny;
5
+ declare const SimplekpiCreateUserOutput: z.ZodTypeAny;
6
+ declare const simplekpiCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { simplekpiCreateUser };
9
+ //# sourceMappingURL=create-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASgB;AAAA,cAC5C,yBAAA,EAA2B,CAAA,CAAE,UAWc;AAAA,cAE3C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}