@keystrokehq/simplekpi 0.1.4 → 0.1.6
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-user-group-item.cjs +1 -0
- package/dist/actions/add-user-group-item.cjs.map +1 -1
- package/dist/actions/add-user-group-item.d.cts +3 -4
- package/dist/actions/add-user-group-item.d.cts.map +1 -1
- package/dist/actions/add-user-group-item.d.mts +3 -4
- package/dist/actions/add-user-group-item.d.mts.map +1 -1
- package/dist/actions/add-user-group-item.mjs +1 -0
- package/dist/actions/add-user-group-item.mjs.map +1 -1
- package/dist/actions/add-user-kpi.cjs +1 -0
- package/dist/actions/add-user-kpi.cjs.map +1 -1
- package/dist/actions/add-user-kpi.d.cts +3 -6
- package/dist/actions/add-user-kpi.d.cts.map +1 -1
- package/dist/actions/add-user-kpi.d.mts +3 -6
- package/dist/actions/add-user-kpi.d.mts.map +1 -1
- package/dist/actions/add-user-kpi.mjs +1 -0
- package/dist/actions/add-user-kpi.mjs.map +1 -1
- package/dist/actions/create-category-kpi.cjs +1 -0
- package/dist/actions/create-category-kpi.cjs.map +1 -1
- package/dist/actions/create-category-kpi.d.cts +3 -11
- package/dist/actions/create-category-kpi.d.cts.map +1 -1
- package/dist/actions/create-category-kpi.d.mts +3 -11
- package/dist/actions/create-category-kpi.d.mts.map +1 -1
- package/dist/actions/create-category-kpi.mjs +1 -0
- package/dist/actions/create-category-kpi.mjs.map +1 -1
- package/dist/actions/create-group-item.cjs +1 -0
- package/dist/actions/create-group-item.cjs.map +1 -1
- package/dist/actions/create-group-item.d.cts +3 -5
- package/dist/actions/create-group-item.d.cts.map +1 -1
- package/dist/actions/create-group-item.d.mts +3 -5
- package/dist/actions/create-group-item.d.mts.map +1 -1
- package/dist/actions/create-group-item.mjs +1 -0
- package/dist/actions/create-group-item.mjs.map +1 -1
- package/dist/actions/create-group.cjs +1 -0
- package/dist/actions/create-group.cjs.map +1 -1
- package/dist/actions/create-group.d.cts +3 -4
- package/dist/actions/create-group.d.cts.map +1 -1
- package/dist/actions/create-group.d.mts +3 -4
- package/dist/actions/create-group.d.mts.map +1 -1
- package/dist/actions/create-group.mjs +1 -0
- package/dist/actions/create-group.mjs.map +1 -1
- package/dist/actions/create-kpi-category.cjs +1 -0
- package/dist/actions/create-kpi-category.cjs.map +1 -1
- package/dist/actions/create-kpi-category.d.cts +3 -4
- package/dist/actions/create-kpi-category.d.cts.map +1 -1
- package/dist/actions/create-kpi-category.d.mts +3 -4
- package/dist/actions/create-kpi-category.d.mts.map +1 -1
- package/dist/actions/create-kpi-category.mjs +1 -0
- package/dist/actions/create-kpi-category.mjs.map +1 -1
- package/dist/actions/create-kpi-unit.cjs +1 -0
- package/dist/actions/create-kpi-unit.cjs.map +1 -1
- package/dist/actions/create-kpi-unit.d.cts +3 -6
- package/dist/actions/create-kpi-unit.d.cts.map +1 -1
- package/dist/actions/create-kpi-unit.d.mts +3 -6
- package/dist/actions/create-kpi-unit.d.mts.map +1 -1
- package/dist/actions/create-kpi-unit.mjs +1 -0
- package/dist/actions/create-kpi-unit.mjs.map +1 -1
- package/dist/actions/create-kpi.cjs +1 -0
- package/dist/actions/create-kpi.cjs.map +1 -1
- package/dist/actions/create-kpi.d.cts +3 -11
- package/dist/actions/create-kpi.d.cts.map +1 -1
- package/dist/actions/create-kpi.d.mts +3 -11
- package/dist/actions/create-kpi.d.mts.map +1 -1
- package/dist/actions/create-kpi.mjs +1 -0
- package/dist/actions/create-kpi.mjs.map +1 -1
- package/dist/actions/create-or-update-kpi-entries.cjs +1 -0
- package/dist/actions/create-or-update-kpi-entries.cjs.map +1 -1
- package/dist/actions/create-or-update-kpi-entries.d.cts +3 -19
- package/dist/actions/create-or-update-kpi-entries.d.cts.map +1 -1
- package/dist/actions/create-or-update-kpi-entries.d.mts +3 -19
- package/dist/actions/create-or-update-kpi-entries.d.mts.map +1 -1
- package/dist/actions/create-or-update-kpi-entries.mjs +1 -0
- package/dist/actions/create-or-update-kpi-entries.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -10
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -10
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-category-kpi.cjs +1 -0
- package/dist/actions/delete-category-kpi.cjs.map +1 -1
- package/dist/actions/delete-category-kpi.d.cts +3 -4
- package/dist/actions/delete-category-kpi.d.cts.map +1 -1
- package/dist/actions/delete-category-kpi.d.mts +3 -4
- package/dist/actions/delete-category-kpi.d.mts.map +1 -1
- package/dist/actions/delete-category-kpi.mjs +1 -0
- package/dist/actions/delete-category-kpi.mjs.map +1 -1
- package/dist/actions/delete-group-item.cjs +1 -0
- package/dist/actions/delete-group-item.cjs.map +1 -1
- package/dist/actions/delete-group-item.d.cts +3 -4
- package/dist/actions/delete-group-item.d.cts.map +1 -1
- package/dist/actions/delete-group-item.d.mts +3 -4
- package/dist/actions/delete-group-item.d.mts.map +1 -1
- package/dist/actions/delete-group-item.mjs +1 -0
- package/dist/actions/delete-group-item.mjs.map +1 -1
- package/dist/actions/delete-group.cjs +1 -0
- package/dist/actions/delete-group.cjs.map +1 -1
- package/dist/actions/delete-group.d.cts +3 -3
- package/dist/actions/delete-group.d.cts.map +1 -1
- package/dist/actions/delete-group.d.mts +3 -3
- package/dist/actions/delete-group.d.mts.map +1 -1
- package/dist/actions/delete-group.mjs +1 -0
- package/dist/actions/delete-group.mjs.map +1 -1
- package/dist/actions/delete-kpi-category.cjs +1 -0
- package/dist/actions/delete-kpi-category.cjs.map +1 -1
- package/dist/actions/delete-kpi-category.d.cts +3 -3
- package/dist/actions/delete-kpi-category.d.cts.map +1 -1
- package/dist/actions/delete-kpi-category.d.mts +3 -3
- package/dist/actions/delete-kpi-category.d.mts.map +1 -1
- package/dist/actions/delete-kpi-category.mjs +1 -0
- package/dist/actions/delete-kpi-category.mjs.map +1 -1
- package/dist/actions/delete-kpi-entry.cjs +1 -0
- package/dist/actions/delete-kpi-entry.cjs.map +1 -1
- package/dist/actions/delete-kpi-entry.d.cts +3 -3
- package/dist/actions/delete-kpi-entry.d.cts.map +1 -1
- package/dist/actions/delete-kpi-entry.d.mts +3 -3
- package/dist/actions/delete-kpi-entry.d.mts.map +1 -1
- package/dist/actions/delete-kpi-entry.mjs +1 -0
- package/dist/actions/delete-kpi-entry.mjs.map +1 -1
- package/dist/actions/delete-kpi-unit.cjs +1 -0
- package/dist/actions/delete-kpi-unit.cjs.map +1 -1
- package/dist/actions/delete-kpi-unit.d.cts +3 -3
- package/dist/actions/delete-kpi-unit.d.cts.map +1 -1
- package/dist/actions/delete-kpi-unit.d.mts +3 -3
- package/dist/actions/delete-kpi-unit.d.mts.map +1 -1
- package/dist/actions/delete-kpi-unit.mjs +1 -0
- package/dist/actions/delete-kpi-unit.mjs.map +1 -1
- package/dist/actions/delete-kpi.cjs +1 -0
- package/dist/actions/delete-kpi.cjs.map +1 -1
- package/dist/actions/delete-kpi.d.cts +3 -3
- package/dist/actions/delete-kpi.d.cts.map +1 -1
- package/dist/actions/delete-kpi.d.mts +3 -3
- package/dist/actions/delete-kpi.d.mts.map +1 -1
- package/dist/actions/delete-kpi.mjs +1 -0
- package/dist/actions/delete-kpi.mjs.map +1 -1
- package/dist/actions/delete-user-group-item.cjs +1 -0
- package/dist/actions/delete-user-group-item.cjs.map +1 -1
- package/dist/actions/delete-user-group-item.d.cts +3 -4
- package/dist/actions/delete-user-group-item.d.cts.map +1 -1
- package/dist/actions/delete-user-group-item.d.mts +3 -4
- package/dist/actions/delete-user-group-item.d.mts.map +1 -1
- package/dist/actions/delete-user-group-item.mjs +1 -0
- package/dist/actions/delete-user-group-item.mjs.map +1 -1
- package/dist/actions/delete-user-kpi.cjs +1 -0
- package/dist/actions/delete-user-kpi.cjs.map +1 -1
- package/dist/actions/delete-user-kpi.d.cts +3 -4
- package/dist/actions/delete-user-kpi.d.cts.map +1 -1
- package/dist/actions/delete-user-kpi.d.mts +3 -4
- package/dist/actions/delete-user-kpi.d.mts.map +1 -1
- package/dist/actions/delete-user-kpi.mjs +1 -0
- package/dist/actions/delete-user-kpi.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-all-data-entries.cjs +1 -0
- package/dist/actions/get-all-data-entries.cjs.map +1 -1
- package/dist/actions/get-all-data-entries.d.cts +3 -7
- package/dist/actions/get-all-data-entries.d.cts.map +1 -1
- package/dist/actions/get-all-data-entries.d.mts +3 -7
- package/dist/actions/get-all-data-entries.d.mts.map +1 -1
- package/dist/actions/get-all-data-entries.mjs +1 -0
- package/dist/actions/get-all-data-entries.mjs.map +1 -1
- package/dist/actions/get-category-kpi.cjs +1 -0
- package/dist/actions/get-category-kpi.cjs.map +1 -1
- package/dist/actions/get-category-kpi.d.cts +3 -4
- package/dist/actions/get-category-kpi.d.cts.map +1 -1
- package/dist/actions/get-category-kpi.d.mts +3 -4
- package/dist/actions/get-category-kpi.d.mts.map +1 -1
- package/dist/actions/get-category-kpi.mjs +1 -0
- package/dist/actions/get-category-kpi.mjs.map +1 -1
- package/dist/actions/get-group-item.cjs +1 -0
- package/dist/actions/get-group-item.cjs.map +1 -1
- package/dist/actions/get-group-item.d.cts +3 -4
- package/dist/actions/get-group-item.d.cts.map +1 -1
- package/dist/actions/get-group-item.d.mts +3 -4
- package/dist/actions/get-group-item.d.mts.map +1 -1
- package/dist/actions/get-group-item.mjs +1 -0
- package/dist/actions/get-group-item.mjs.map +1 -1
- package/dist/actions/get-group.cjs +1 -0
- package/dist/actions/get-group.cjs.map +1 -1
- package/dist/actions/get-group.d.cts +3 -3
- package/dist/actions/get-group.d.cts.map +1 -1
- package/dist/actions/get-group.d.mts +3 -3
- package/dist/actions/get-group.d.mts.map +1 -1
- package/dist/actions/get-group.mjs +1 -0
- package/dist/actions/get-group.mjs.map +1 -1
- package/dist/actions/get-kpi-category.cjs +1 -0
- package/dist/actions/get-kpi-category.cjs.map +1 -1
- package/dist/actions/get-kpi-category.d.cts +3 -3
- package/dist/actions/get-kpi-category.d.cts.map +1 -1
- package/dist/actions/get-kpi-category.d.mts +3 -3
- package/dist/actions/get-kpi-category.d.mts.map +1 -1
- package/dist/actions/get-kpi-category.mjs +1 -0
- package/dist/actions/get-kpi-category.mjs.map +1 -1
- package/dist/actions/get-kpi-entry.cjs +1 -0
- package/dist/actions/get-kpi-entry.cjs.map +1 -1
- package/dist/actions/get-kpi-entry.d.cts +3 -3
- package/dist/actions/get-kpi-entry.d.cts.map +1 -1
- package/dist/actions/get-kpi-entry.d.mts +3 -3
- package/dist/actions/get-kpi-entry.d.mts.map +1 -1
- package/dist/actions/get-kpi-entry.mjs +1 -0
- package/dist/actions/get-kpi-entry.mjs.map +1 -1
- package/dist/actions/get-kpi-frequency.cjs +1 -0
- package/dist/actions/get-kpi-frequency.cjs.map +1 -1
- package/dist/actions/get-kpi-frequency.d.cts +3 -3
- package/dist/actions/get-kpi-frequency.d.cts.map +1 -1
- package/dist/actions/get-kpi-frequency.d.mts +3 -3
- package/dist/actions/get-kpi-frequency.d.mts.map +1 -1
- package/dist/actions/get-kpi-frequency.mjs +1 -0
- package/dist/actions/get-kpi-frequency.mjs.map +1 -1
- package/dist/actions/get-kpi-icon.cjs +1 -0
- package/dist/actions/get-kpi-icon.cjs.map +1 -1
- package/dist/actions/get-kpi-icon.d.cts +3 -3
- package/dist/actions/get-kpi-icon.d.cts.map +1 -1
- package/dist/actions/get-kpi-icon.d.mts +3 -3
- package/dist/actions/get-kpi-icon.d.mts.map +1 -1
- package/dist/actions/get-kpi-icon.mjs +1 -0
- package/dist/actions/get-kpi-icon.mjs.map +1 -1
- package/dist/actions/get-kpi-unit.cjs +1 -0
- package/dist/actions/get-kpi-unit.cjs.map +1 -1
- package/dist/actions/get-kpi-unit.d.cts +3 -3
- package/dist/actions/get-kpi-unit.d.cts.map +1 -1
- package/dist/actions/get-kpi-unit.d.mts +3 -3
- package/dist/actions/get-kpi-unit.d.mts.map +1 -1
- package/dist/actions/get-kpi-unit.mjs +1 -0
- package/dist/actions/get-kpi-unit.mjs.map +1 -1
- package/dist/actions/get-kpi.cjs +1 -0
- package/dist/actions/get-kpi.cjs.map +1 -1
- package/dist/actions/get-kpi.d.cts +3 -3
- package/dist/actions/get-kpi.d.cts.map +1 -1
- package/dist/actions/get-kpi.d.mts +3 -3
- package/dist/actions/get-kpi.d.mts.map +1 -1
- package/dist/actions/get-kpi.mjs +1 -0
- package/dist/actions/get-kpi.mjs.map +1 -1
- package/dist/actions/get-user-group-item.cjs +1 -0
- package/dist/actions/get-user-group-item.cjs.map +1 -1
- package/dist/actions/get-user-group-item.d.cts +3 -4
- package/dist/actions/get-user-group-item.d.cts.map +1 -1
- package/dist/actions/get-user-group-item.d.mts +3 -4
- package/dist/actions/get-user-group-item.d.mts.map +1 -1
- package/dist/actions/get-user-group-item.mjs +1 -0
- package/dist/actions/get-user-group-item.mjs.map +1 -1
- package/dist/actions/get-user-kpi.cjs +1 -0
- package/dist/actions/get-user-kpi.cjs.map +1 -1
- package/dist/actions/get-user-kpi.d.cts +3 -4
- package/dist/actions/get-user-kpi.d.cts.map +1 -1
- package/dist/actions/get-user-kpi.d.mts +3 -4
- package/dist/actions/get-user-kpi.d.mts.map +1 -1
- package/dist/actions/get-user-kpi.mjs +1 -0
- package/dist/actions/get-user-kpi.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-category-kpis.cjs +1 -0
- package/dist/actions/list-category-kpis.cjs.map +1 -1
- package/dist/actions/list-category-kpis.d.cts +3 -3
- package/dist/actions/list-category-kpis.d.cts.map +1 -1
- package/dist/actions/list-category-kpis.d.mts +3 -3
- package/dist/actions/list-category-kpis.d.mts.map +1 -1
- package/dist/actions/list-category-kpis.mjs +1 -0
- package/dist/actions/list-category-kpis.mjs.map +1 -1
- package/dist/actions/list-group-items.cjs +1 -0
- package/dist/actions/list-group-items.cjs.map +1 -1
- package/dist/actions/list-group-items.d.cts +3 -3
- package/dist/actions/list-group-items.d.cts.map +1 -1
- package/dist/actions/list-group-items.d.mts +3 -3
- package/dist/actions/list-group-items.d.mts.map +1 -1
- package/dist/actions/list-group-items.mjs +1 -0
- package/dist/actions/list-group-items.mjs.map +1 -1
- package/dist/actions/list-groups.cjs +1 -0
- package/dist/actions/list-groups.cjs.map +1 -1
- package/dist/actions/list-groups.d.cts +3 -1
- package/dist/actions/list-groups.d.cts.map +1 -1
- package/dist/actions/list-groups.d.mts +3 -1
- package/dist/actions/list-groups.d.mts.map +1 -1
- package/dist/actions/list-groups.mjs +1 -0
- package/dist/actions/list-groups.mjs.map +1 -1
- package/dist/actions/list-kpi-categories.cjs +1 -0
- package/dist/actions/list-kpi-categories.cjs.map +1 -1
- package/dist/actions/list-kpi-categories.d.cts +3 -1
- package/dist/actions/list-kpi-categories.d.cts.map +1 -1
- package/dist/actions/list-kpi-categories.d.mts +3 -1
- package/dist/actions/list-kpi-categories.d.mts.map +1 -1
- package/dist/actions/list-kpi-categories.mjs +1 -0
- package/dist/actions/list-kpi-categories.mjs.map +1 -1
- package/dist/actions/list-kpi-entries.cjs +1 -0
- package/dist/actions/list-kpi-entries.cjs.map +1 -1
- package/dist/actions/list-kpi-entries.d.cts +3 -8
- package/dist/actions/list-kpi-entries.d.cts.map +1 -1
- package/dist/actions/list-kpi-entries.d.mts +3 -8
- package/dist/actions/list-kpi-entries.d.mts.map +1 -1
- package/dist/actions/list-kpi-entries.mjs +1 -0
- package/dist/actions/list-kpi-entries.mjs.map +1 -1
- package/dist/actions/list-kpi-frequencies.cjs +1 -0
- package/dist/actions/list-kpi-frequencies.cjs.map +1 -1
- package/dist/actions/list-kpi-frequencies.d.cts +3 -1
- package/dist/actions/list-kpi-frequencies.d.cts.map +1 -1
- package/dist/actions/list-kpi-frequencies.d.mts +3 -1
- package/dist/actions/list-kpi-frequencies.d.mts.map +1 -1
- package/dist/actions/list-kpi-frequencies.mjs +1 -0
- package/dist/actions/list-kpi-frequencies.mjs.map +1 -1
- package/dist/actions/list-kpi-icons.cjs +1 -0
- package/dist/actions/list-kpi-icons.cjs.map +1 -1
- package/dist/actions/list-kpi-icons.d.cts +3 -1
- package/dist/actions/list-kpi-icons.d.cts.map +1 -1
- package/dist/actions/list-kpi-icons.d.mts +3 -1
- package/dist/actions/list-kpi-icons.d.mts.map +1 -1
- package/dist/actions/list-kpi-icons.mjs +1 -0
- package/dist/actions/list-kpi-icons.mjs.map +1 -1
- package/dist/actions/list-kpi-units.cjs +1 -0
- package/dist/actions/list-kpi-units.cjs.map +1 -1
- package/dist/actions/list-kpi-units.d.cts +3 -1
- package/dist/actions/list-kpi-units.d.cts.map +1 -1
- package/dist/actions/list-kpi-units.d.mts +3 -1
- package/dist/actions/list-kpi-units.d.mts.map +1 -1
- package/dist/actions/list-kpi-units.mjs +1 -0
- package/dist/actions/list-kpi-units.mjs.map +1 -1
- package/dist/actions/list-kpis.cjs +1 -0
- package/dist/actions/list-kpis.cjs.map +1 -1
- package/dist/actions/list-kpis.d.cts +3 -1
- package/dist/actions/list-kpis.d.cts.map +1 -1
- package/dist/actions/list-kpis.d.mts +3 -1
- package/dist/actions/list-kpis.d.mts.map +1 -1
- package/dist/actions/list-kpis.mjs +1 -0
- package/dist/actions/list-kpis.mjs.map +1 -1
- package/dist/actions/list-user-group-items.cjs +1 -0
- package/dist/actions/list-user-group-items.cjs.map +1 -1
- package/dist/actions/list-user-group-items.d.cts +3 -3
- package/dist/actions/list-user-group-items.d.cts.map +1 -1
- package/dist/actions/list-user-group-items.d.mts +3 -3
- package/dist/actions/list-user-group-items.d.mts.map +1 -1
- package/dist/actions/list-user-group-items.mjs +1 -0
- package/dist/actions/list-user-group-items.mjs.map +1 -1
- package/dist/actions/list-user-kpis.cjs +1 -0
- package/dist/actions/list-user-kpis.cjs.map +1 -1
- package/dist/actions/list-user-kpis.d.cts +3 -3
- package/dist/actions/list-user-kpis.d.cts.map +1 -1
- package/dist/actions/list-user-kpis.d.mts +3 -3
- package/dist/actions/list-user-kpis.d.mts.map +1 -1
- package/dist/actions/list-user-kpis.mjs +1 -0
- package/dist/actions/list-user-kpis.mjs.map +1 -1
- package/dist/actions/update-category-kpi.cjs +1 -0
- package/dist/actions/update-category-kpi.cjs.map +1 -1
- package/dist/actions/update-category-kpi.d.cts +3 -14
- package/dist/actions/update-category-kpi.d.cts.map +1 -1
- package/dist/actions/update-category-kpi.d.mts +3 -14
- package/dist/actions/update-category-kpi.d.mts.map +1 -1
- package/dist/actions/update-category-kpi.mjs +1 -0
- package/dist/actions/update-category-kpi.mjs.map +1 -1
- package/dist/actions/update-group-item.cjs +1 -0
- package/dist/actions/update-group-item.cjs.map +1 -1
- package/dist/actions/update-group-item.d.cts +3 -6
- package/dist/actions/update-group-item.d.cts.map +1 -1
- package/dist/actions/update-group-item.d.mts +3 -6
- package/dist/actions/update-group-item.d.mts.map +1 -1
- package/dist/actions/update-group-item.mjs +1 -0
- package/dist/actions/update-group-item.mjs.map +1 -1
- package/dist/actions/update-group.cjs +1 -0
- package/dist/actions/update-group.cjs.map +1 -1
- package/dist/actions/update-group.d.cts +3 -5
- package/dist/actions/update-group.d.cts.map +1 -1
- package/dist/actions/update-group.d.mts +3 -5
- package/dist/actions/update-group.d.mts.map +1 -1
- package/dist/actions/update-group.mjs +1 -0
- package/dist/actions/update-group.mjs.map +1 -1
- package/dist/actions/update-kpi-entry.cjs +1 -0
- package/dist/actions/update-kpi-entry.cjs.map +1 -1
- package/dist/actions/update-kpi-entry.d.cts +3 -9
- package/dist/actions/update-kpi-entry.d.cts.map +1 -1
- package/dist/actions/update-kpi-entry.d.mts +3 -9
- package/dist/actions/update-kpi-entry.d.mts.map +1 -1
- package/dist/actions/update-kpi-entry.mjs +1 -0
- package/dist/actions/update-kpi-entry.mjs.map +1 -1
- package/dist/actions/update-kpi-unit.cjs +1 -0
- package/dist/actions/update-kpi-unit.cjs.map +1 -1
- package/dist/actions/update-kpi-unit.d.cts +3 -7
- package/dist/actions/update-kpi-unit.d.cts.map +1 -1
- package/dist/actions/update-kpi-unit.d.mts +3 -7
- package/dist/actions/update-kpi-unit.d.mts.map +1 -1
- package/dist/actions/update-kpi-unit.mjs +1 -0
- package/dist/actions/update-kpi-unit.mjs.map +1 -1
- package/dist/actions/update-kpi.cjs +1 -0
- package/dist/actions/update-kpi.cjs.map +1 -1
- package/dist/actions/update-kpi.d.cts +3 -14
- package/dist/actions/update-kpi.d.cts.map +1 -1
- package/dist/actions/update-kpi.d.mts +3 -14
- package/dist/actions/update-kpi.d.mts.map +1 -1
- package/dist/actions/update-kpi.mjs +1 -0
- package/dist/actions/update-kpi.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -10
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -10
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/app.cjs +12 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +11 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +11 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +9 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi-entry.d.ts
|
|
@@ -21,15 +23,7 @@ declare const SimplekpiUpdateKpiEntryOutput: z.ZodObject<{
|
|
|
21
23
|
entry_date: z.ZodNullable<z.ZodString>;
|
|
22
24
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const simplekpiUpdateKpiEntry:
|
|
25
|
-
kpi_id: number;
|
|
26
|
-
user_id: number;
|
|
27
|
-
entry_date: string;
|
|
28
|
-
kpientryid: number;
|
|
29
|
-
notes?: string | undefined;
|
|
30
|
-
actual?: number | undefined;
|
|
31
|
-
target?: number | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const simplekpiUpdateKpiEntry: AppAction<typeof SimplekpiUpdateKpiEntryInput, typeof SimplekpiUpdateKpiEntryOutput, typeof simplekpi.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { simplekpiUpdateKpiEntry };
|
|
35
29
|
//# sourceMappingURL=update-kpi-entry.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-entry.d.cts","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-entry.d.cts","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi-entry.d.ts
|
|
@@ -21,15 +23,7 @@ declare const SimplekpiUpdateKpiEntryOutput: z.ZodObject<{
|
|
|
21
23
|
entry_date: z.ZodNullable<z.ZodString>;
|
|
22
24
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const simplekpiUpdateKpiEntry:
|
|
25
|
-
kpi_id: number;
|
|
26
|
-
user_id: number;
|
|
27
|
-
entry_date: string;
|
|
28
|
-
kpientryid: number;
|
|
29
|
-
notes?: string | undefined;
|
|
30
|
-
actual?: number | undefined;
|
|
31
|
-
target?: number | undefined;
|
|
32
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const simplekpiUpdateKpiEntry: AppAction<typeof SimplekpiUpdateKpiEntryInput, typeof SimplekpiUpdateKpiEntryOutput, typeof simplekpi.credential>;
|
|
33
27
|
//#endregion
|
|
34
28
|
export { simplekpiUpdateKpiEntry };
|
|
35
29
|
//# sourceMappingURL=update-kpi-entry.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-entry.d.mts","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-entry.d.mts","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;cAS5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;cAY7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-entry.mjs","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateKpiEntryInput = z.object({\n notes: z.string().describe(\"The note associated with the KPI entry (max 500 characters)\").optional(),\n actual: z.number().describe(\"The actual value. Cannot be null if the target and notes are both null\").optional(),\n kpi_id: z.number().int().describe(\"The KPI must be active and cannot be a calculated KPI. The KPI must also be assigned to the user\"),\n target: z.number().describe(\"The target value of the entry. This value will be ignored if the KPI has a null target\").optional(),\n user_id: z.number().int().describe(\"An ID of an active user to assign to the KPI entry\"),\n entry_date: z.string().describe(\"The date of the entry. Date time format without timezone, e.g. '2019-01-01T00:00:00'\"),\n kpientryid: z.number().int().describe(\"The ID of the KPI entry to update (required)\"),\n}).describe(\"Request model for updating an existing KPI entry in SimpleKPI.\");\nexport const SimplekpiUpdateKpiEntryOutput = z.object({\n id: z.number().int().describe(\"Automatically generated identifier for the KPI entry\").nullable(),\n notes: z.string().describe(\"The note associated with the KPI entry\").nullable().optional(),\n actual: z.number().describe(\"The actual value of the entry\").nullable().optional(),\n kpi_id: z.number().int().describe(\"The ID of the associated KPI\").nullable(),\n target: z.number().describe(\"The target value of the entry\").nullable().optional(),\n user_id: z.number().int().describe(\"The ID of the user assigned to this KPI entry\").nullable(),\n created_at: z.string().describe(\"The UTC date and time the KPI entry was created. Date time format without timezone, e.g. '2012-11-30T11:20:00'\").nullable().optional(),\n entry_date: z.string().describe(\"The date of the entry in date time format without timezone, e.g. '2012-06-25'\").nullable(),\n updated_at: z.string().describe(\"The UTC date and time the KPI entry was updated. Date time format without timezone, e.g. '2013-02-15T16:01:00'\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated KPI entry details.\");\n\nexport const simplekpiUpdateKpiEntry = action(\"SIMPLEKPI_UPDATE_KPI_ENTRY\", {\n slug: \"simplekpi-update-kpi-entry\",\n name: \"Update KPI Entry\",\n description: \"Tool to update an existing KPI entry in SimpleKPI. Use when modifying entry values, targets, or notes for a specific KPI entry. At least one of actual, target, or notes must be provided (actual cannot be null if both target and notes are null).\",\n input: SimplekpiUpdateKpiEntryInput,\n output: SimplekpiUpdateKpiEntryOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-entry.mjs","names":[],"sources":["../../src/actions/update-kpi-entry.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateKpiEntryInput = z.object({\n notes: z.string().describe(\"The note associated with the KPI entry (max 500 characters)\").optional(),\n actual: z.number().describe(\"The actual value. Cannot be null if the target and notes are both null\").optional(),\n kpi_id: z.number().int().describe(\"The KPI must be active and cannot be a calculated KPI. The KPI must also be assigned to the user\"),\n target: z.number().describe(\"The target value of the entry. This value will be ignored if the KPI has a null target\").optional(),\n user_id: z.number().int().describe(\"An ID of an active user to assign to the KPI entry\"),\n entry_date: z.string().describe(\"The date of the entry. Date time format without timezone, e.g. '2019-01-01T00:00:00'\"),\n kpientryid: z.number().int().describe(\"The ID of the KPI entry to update (required)\"),\n}).describe(\"Request model for updating an existing KPI entry in SimpleKPI.\");\nexport const SimplekpiUpdateKpiEntryOutput = z.object({\n id: z.number().int().describe(\"Automatically generated identifier for the KPI entry\").nullable(),\n notes: z.string().describe(\"The note associated with the KPI entry\").nullable().optional(),\n actual: z.number().describe(\"The actual value of the entry\").nullable().optional(),\n kpi_id: z.number().int().describe(\"The ID of the associated KPI\").nullable(),\n target: z.number().describe(\"The target value of the entry\").nullable().optional(),\n user_id: z.number().int().describe(\"The ID of the user assigned to this KPI entry\").nullable(),\n created_at: z.string().describe(\"The UTC date and time the KPI entry was created. Date time format without timezone, e.g. '2012-11-30T11:20:00'\").nullable().optional(),\n entry_date: z.string().describe(\"The date of the entry in date time format without timezone, e.g. '2012-06-25'\").nullable(),\n updated_at: z.string().describe(\"The UTC date and time the KPI entry was updated. Date time format without timezone, e.g. '2013-02-15T16:01:00'\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the updated KPI entry details.\");\n\nexport const simplekpiUpdateKpiEntry: AppAction<\n typeof SimplekpiUpdateKpiEntryInput,\n typeof SimplekpiUpdateKpiEntryOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_KPI_ENTRY\", {\n slug: \"simplekpi-update-kpi-entry\",\n name: \"Update KPI Entry\",\n description: \"Tool to update an existing KPI entry in SimpleKPI. Use when modifying entry values, targets, or notes for a specific KPI entry. At least one of actual, target, or notes must be provided (actual cannot be null if both target and notes are null).\",\n input: SimplekpiUpdateKpiEntryInput,\n output: SimplekpiUpdateKpiEntryOutput,\n});\n"],"mappings":";;;AA2BA,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7B0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACnG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG;EACpI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACtF,CAAC,CAAC,CAAC,SAAS,gEAqBH;CACP,QArB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-unit.cjs","names":["z","action"],"sources":["../../src/actions/update-kpi-unit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateKpiUnitInput = z.object({\n id: z.number().int().describe(\"The unit ID to update\"),\n name: z.string().describe(\"The name of the KPI unit (maximum 25 characters)\"),\n entry_format: z.string().describe(\"The entry format is only for entry and will not have the prefix or suffix (e.g., #.00). Maximum 25 characters.\"),\n is_percentage: z.boolean().describe(\"To determine if the value is a percentage as these values are treated differently\"),\n display_format: z.string().describe(\"The display format must be a valid number format (e.g., £ #.00). Maximum 25 characters.\"),\n}).describe(\"Request model for updating an existing KPI unit.\");\nexport const SimplekpiUpdateKpiUnitOutput = z.object({\n id: z.number().int().describe(\"The unit ID\").nullable(),\n name: z.string().describe(\"The name of the KPI unit\").nullable(),\n entry_format: z.string().describe(\"The entry format\").nullable(),\n is_percentage: z.boolean().describe(\"Whether the value is a percentage\").nullable(),\n display_format: z.string().describe(\"The display format\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI unit.\");\n\nexport const simplekpiUpdateKpiUnit = action(\"SIMPLEKPI_UPDATE_KPI_UNIT\", {\n slug: \"simplekpi-update-kpi-unit\",\n name: \"Update KPI Unit\",\n description: \"Tool to update an existing KPI unit in SimpleKPI. Use when you need to modify unit properties such as name, entry format, display format, or percentage status.\",\n input: SimplekpiUpdateKpiUnitInput,\n output: SimplekpiUpdateKpiUnitOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-unit.cjs","names":["z","action"],"sources":["../../src/actions/update-kpi-unit.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateKpiUnitInput = z.object({\n id: z.number().int().describe(\"The unit ID to update\"),\n name: z.string().describe(\"The name of the KPI unit (maximum 25 characters)\"),\n entry_format: z.string().describe(\"The entry format is only for entry and will not have the prefix or suffix (e.g., #.00). Maximum 25 characters.\"),\n is_percentage: z.boolean().describe(\"To determine if the value is a percentage as these values are treated differently\"),\n display_format: z.string().describe(\"The display format must be a valid number format (e.g., £ #.00). Maximum 25 characters.\"),\n}).describe(\"Request model for updating an existing KPI unit.\");\nexport const SimplekpiUpdateKpiUnitOutput = z.object({\n id: z.number().int().describe(\"The unit ID\").nullable(),\n name: z.string().describe(\"The name of the KPI unit\").nullable(),\n entry_format: z.string().describe(\"The entry format\").nullable(),\n is_percentage: z.boolean().describe(\"Whether the value is a percentage\").nullable(),\n display_format: z.string().describe(\"The display format\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI unit.\");\n\nexport const simplekpiUpdateKpiUnit: AppAction<\n typeof SimplekpiUpdateKpiUnitInput,\n typeof SimplekpiUpdateKpiUnitOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_KPI_UNIT\", {\n slug: \"simplekpi-update-kpi-unit\",\n name: \"Update KPI Unit\",\n description: \"Tool to update an existing KPI unit in SimpleKPI. Use when you need to modify unit properties such as name, entry format, display format, or percentage status.\",\n input: SimplekpiUpdateKpiUnitInput,\n output: SimplekpiUpdateKpiUnitOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CAClJ,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF;CACvH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;AAC/H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC/D,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi-unit.d.ts
|
|
@@ -15,13 +17,7 @@ declare const SimplekpiUpdateKpiUnitOutput: z.ZodObject<{
|
|
|
15
17
|
is_percentage: z.ZodNullable<z.ZodBoolean>;
|
|
16
18
|
display_format: z.ZodNullable<z.ZodString>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const simplekpiUpdateKpiUnit:
|
|
19
|
-
id: number;
|
|
20
|
-
name: string;
|
|
21
|
-
entry_format: string;
|
|
22
|
-
is_percentage: boolean;
|
|
23
|
-
display_format: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const simplekpiUpdateKpiUnit: AppAction<typeof SimplekpiUpdateKpiUnitInput, typeof SimplekpiUpdateKpiUnitOutput, typeof simplekpi.credential>;
|
|
25
21
|
//#endregion
|
|
26
22
|
export { simplekpiUpdateKpiUnit };
|
|
27
23
|
//# sourceMappingURL=update-kpi-unit.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-unit.d.cts","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-unit.d.cts","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAQ5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi-unit.d.ts
|
|
@@ -15,13 +17,7 @@ declare const SimplekpiUpdateKpiUnitOutput: z.ZodObject<{
|
|
|
15
17
|
is_percentage: z.ZodNullable<z.ZodBoolean>;
|
|
16
18
|
display_format: z.ZodNullable<z.ZodString>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const simplekpiUpdateKpiUnit:
|
|
19
|
-
id: number;
|
|
20
|
-
name: string;
|
|
21
|
-
entry_format: string;
|
|
22
|
-
is_percentage: boolean;
|
|
23
|
-
display_format: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
20
|
+
declare const simplekpiUpdateKpiUnit: AppAction<typeof SimplekpiUpdateKpiUnitInput, typeof SimplekpiUpdateKpiUnitOutput, typeof simplekpi.credential>;
|
|
25
21
|
//#endregion
|
|
26
22
|
export { simplekpiUpdateKpiUnit };
|
|
27
23
|
//# sourceMappingURL=update-kpi-unit.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-unit.d.mts","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-unit.d.mts","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAQ5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi-unit.mjs","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateKpiUnitInput = z.object({\n id: z.number().int().describe(\"The unit ID to update\"),\n name: z.string().describe(\"The name of the KPI unit (maximum 25 characters)\"),\n entry_format: z.string().describe(\"The entry format is only for entry and will not have the prefix or suffix (e.g., #.00). Maximum 25 characters.\"),\n is_percentage: z.boolean().describe(\"To determine if the value is a percentage as these values are treated differently\"),\n display_format: z.string().describe(\"The display format must be a valid number format (e.g., £ #.00). Maximum 25 characters.\"),\n}).describe(\"Request model for updating an existing KPI unit.\");\nexport const SimplekpiUpdateKpiUnitOutput = z.object({\n id: z.number().int().describe(\"The unit ID\").nullable(),\n name: z.string().describe(\"The name of the KPI unit\").nullable(),\n entry_format: z.string().describe(\"The entry format\").nullable(),\n is_percentage: z.boolean().describe(\"Whether the value is a percentage\").nullable(),\n display_format: z.string().describe(\"The display format\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI unit.\");\n\nexport const simplekpiUpdateKpiUnit = action(\"SIMPLEKPI_UPDATE_KPI_UNIT\", {\n slug: \"simplekpi-update-kpi-unit\",\n name: \"Update KPI Unit\",\n description: \"Tool to update an existing KPI unit in SimpleKPI. Use when you need to modify unit properties such as name, entry format, display format, or percentage status.\",\n input: SimplekpiUpdateKpiUnitInput,\n output: SimplekpiUpdateKpiUnitOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi-unit.mjs","names":[],"sources":["../../src/actions/update-kpi-unit.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateKpiUnitInput = z.object({\n id: z.number().int().describe(\"The unit ID to update\"),\n name: z.string().describe(\"The name of the KPI unit (maximum 25 characters)\"),\n entry_format: z.string().describe(\"The entry format is only for entry and will not have the prefix or suffix (e.g., #.00). Maximum 25 characters.\"),\n is_percentage: z.boolean().describe(\"To determine if the value is a percentage as these values are treated differently\"),\n display_format: z.string().describe(\"The display format must be a valid number format (e.g., £ #.00). Maximum 25 characters.\"),\n}).describe(\"Request model for updating an existing KPI unit.\");\nexport const SimplekpiUpdateKpiUnitOutput = z.object({\n id: z.number().int().describe(\"The unit ID\").nullable(),\n name: z.string().describe(\"The name of the KPI unit\").nullable(),\n entry_format: z.string().describe(\"The entry format\").nullable(),\n is_percentage: z.boolean().describe(\"Whether the value is a percentage\").nullable(),\n display_format: z.string().describe(\"The display format\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI unit.\");\n\nexport const simplekpiUpdateKpiUnit: AppAction<\n typeof SimplekpiUpdateKpiUnitInput,\n typeof SimplekpiUpdateKpiUnitOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_KPI_UNIT\", {\n slug: \"simplekpi-update-kpi-unit\",\n name: \"Update KPI Unit\",\n description: \"Tool to update an existing KPI unit in SimpleKPI. Use when you need to modify unit properties such as name, entry format, display format, or percentage status.\",\n input: SimplekpiUpdateKpiUnitInput,\n output: SimplekpiUpdateKpiUnitOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvByC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;EAClJ,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF;EACvH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAC/H,CAAC,CAAC,CAAC,SAAS,kDAiBH;CACP,QAjB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC/D,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi.cjs","names":["z","action"],"sources":["../../src/actions/update-kpi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateKpiInput = z.object({\n id: z.number().int().describe(\"KPI ID to update\"),\n name: z.string().describe(\"KPI name (maximum 100 characters)\"),\n icon_id: z.number().int().describe(\"Icon identifier for the KPI\"),\n unit_id: z.number().int().describe(\"Unit of measure identifier\"),\n is_active: z.boolean().describe(\"Activation status for data entry. Set to true to enable data entry, false to disable.\"),\n sort_order: z.number().int().describe(\"Display order ranking for the KPI\"),\n category_id: z.number().int().describe(\"KPI Category ID that this KPI belongs to\"),\n description: z.string().describe(\"KPI description (maximum 150 characters)\").optional(),\n frequency_id: z.enum([\"D\", \"W\", \"M\", \"Q\", \"Y\"]).describe(\"Data entry frequency (D=Daily, W=Weekly, M=Monthly, Q=Quarterly, Y=Yearly). Case-sensitive, must be uppercase.\"),\n target_default: z.number().describe(\"Default target value for the KPI\").optional(),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: U(p) means higher is better, D(own) means lower is better, N(one) means no direction\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"How the KPI is calculated: AVG (Average) or SUM (Total Sum)\"),\n}).describe(\"Request model for updating an existing KPI.\");\nexport const SimplekpiUpdateKpiOutput = z.object({\n id: z.number().int().describe(\"KPI ID\").nullable(),\n name: z.string().describe(\"KPI name\").nullable(),\n icon_id: z.number().int().describe(\"Icon identifier\").nullable(),\n unit_id: z.number().int().describe(\"Unit of measure identifier\").nullable(),\n is_active: z.boolean().describe(\"Activation status\").nullable(),\n sort_order: z.number().int().describe(\"Display order ranking\").nullable(),\n category_id: z.number().int().describe(\"KPI Category ID\").nullable(),\n description: z.string().describe(\"KPI description\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency\").nullable(),\n target_default: z.number().describe(\"Default target value\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator\").nullable(),\n aggregate_function: z.string().describe(\"Aggregate function\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI.\");\n\nexport const simplekpiUpdateKpi = action(\"SIMPLEKPI_UPDATE_KPI\", {\n slug: \"simplekpi-update-kpi\",\n name: \"Update KPI\",\n description: \"Tool to update an existing KPI in SimpleKPI. Use when you need to modify KPI properties such as name, description, target values, or settings.\",\n input: SimplekpiUpdateKpiInput,\n output: SimplekpiUpdateKpiOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi.cjs","names":["z","action"],"sources":["../../src/actions/update-kpi.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateKpiInput = z.object({\n id: z.number().int().describe(\"KPI ID to update\"),\n name: z.string().describe(\"KPI name (maximum 100 characters)\"),\n icon_id: z.number().int().describe(\"Icon identifier for the KPI\"),\n unit_id: z.number().int().describe(\"Unit of measure identifier\"),\n is_active: z.boolean().describe(\"Activation status for data entry. Set to true to enable data entry, false to disable.\"),\n sort_order: z.number().int().describe(\"Display order ranking for the KPI\"),\n category_id: z.number().int().describe(\"KPI Category ID that this KPI belongs to\"),\n description: z.string().describe(\"KPI description (maximum 150 characters)\").optional(),\n frequency_id: z.enum([\"D\", \"W\", \"M\", \"Q\", \"Y\"]).describe(\"Data entry frequency (D=Daily, W=Weekly, M=Monthly, Q=Quarterly, Y=Yearly). Case-sensitive, must be uppercase.\"),\n target_default: z.number().describe(\"Default target value for the KPI\").optional(),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: U(p) means higher is better, D(own) means lower is better, N(one) means no direction\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"How the KPI is calculated: AVG (Average) or SUM (Total Sum)\"),\n}).describe(\"Request model for updating an existing KPI.\");\nexport const SimplekpiUpdateKpiOutput = z.object({\n id: z.number().int().describe(\"KPI ID\").nullable(),\n name: z.string().describe(\"KPI name\").nullable(),\n icon_id: z.number().int().describe(\"Icon identifier\").nullable(),\n unit_id: z.number().int().describe(\"Unit of measure identifier\").nullable(),\n is_active: z.boolean().describe(\"Activation status\").nullable(),\n sort_order: z.number().int().describe(\"Display order ranking\").nullable(),\n category_id: z.number().int().describe(\"KPI Category ID\").nullable(),\n description: z.string().describe(\"KPI description\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency\").nullable(),\n target_default: z.number().describe(\"Default target value\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator\").nullable(),\n aggregate_function: z.string().describe(\"Aggregate function\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI.\");\n\nexport const simplekpiUpdateKpi: AppAction<\n typeof SimplekpiUpdateKpiInput,\n typeof SimplekpiUpdateKpiOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_KPI\", {\n slug: \"simplekpi-update-kpi\",\n name: \"Update KPI\",\n description: \"Tool to update an existing KPI in SimpleKPI. Use when you need to modify KPI properties such as name, description, target values, or settings.\",\n input: SimplekpiUpdateKpiInput,\n output: SimplekpiUpdateKpiOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAChE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC/D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAK;CAAG,CAAC,CAAC,CAAC,SAAS,gHAAgH;CACzK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;CAAG,CAAC,CAAC,CAAC,SAAS,2GAA2G;CAC7J,oBAAoBA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACnH,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACrE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi.d.ts
|
|
@@ -42,20 +44,7 @@ declare const SimplekpiUpdateKpiOutput: z.ZodObject<{
|
|
|
42
44
|
value_direction: z.ZodNullable<z.ZodString>;
|
|
43
45
|
aggregate_function: z.ZodNullable<z.ZodString>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const simplekpiUpdateKpi:
|
|
46
|
-
id: number;
|
|
47
|
-
name: string;
|
|
48
|
-
icon_id: number;
|
|
49
|
-
unit_id: number;
|
|
50
|
-
is_active: boolean;
|
|
51
|
-
sort_order: number;
|
|
52
|
-
category_id: number;
|
|
53
|
-
frequency_id: "D" | "W" | "M" | "Q" | "Y";
|
|
54
|
-
value_direction: "U" | "D" | "N";
|
|
55
|
-
aggregate_function: "AVG" | "SUM";
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
target_default?: number | undefined;
|
|
58
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
declare const simplekpiUpdateKpi: AppAction<typeof SimplekpiUpdateKpiInput, typeof SimplekpiUpdateKpiOutput, typeof simplekpi.credential>;
|
|
59
48
|
//#endregion
|
|
60
49
|
export { simplekpiUpdateKpi };
|
|
61
50
|
//# sourceMappingURL=update-kpi.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi.d.cts","names":[],"sources":["../../src/actions/update-kpi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi.d.cts","names":[],"sources":["../../src/actions/update-kpi.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-kpi.d.ts
|
|
@@ -42,20 +44,7 @@ declare const SimplekpiUpdateKpiOutput: z.ZodObject<{
|
|
|
42
44
|
value_direction: z.ZodNullable<z.ZodString>;
|
|
43
45
|
aggregate_function: z.ZodNullable<z.ZodString>;
|
|
44
46
|
}, z.core.$loose>;
|
|
45
|
-
declare const simplekpiUpdateKpi:
|
|
46
|
-
id: number;
|
|
47
|
-
name: string;
|
|
48
|
-
icon_id: number;
|
|
49
|
-
unit_id: number;
|
|
50
|
-
is_active: boolean;
|
|
51
|
-
sort_order: number;
|
|
52
|
-
category_id: number;
|
|
53
|
-
frequency_id: "D" | "W" | "M" | "Q" | "Y";
|
|
54
|
-
value_direction: "U" | "D" | "N";
|
|
55
|
-
aggregate_function: "AVG" | "SUM";
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
target_default?: number | undefined;
|
|
58
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
declare const simplekpiUpdateKpi: AppAction<typeof SimplekpiUpdateKpiInput, typeof SimplekpiUpdateKpiOutput, typeof simplekpi.credential>;
|
|
59
48
|
//#endregion
|
|
60
49
|
export { simplekpiUpdateKpi };
|
|
61
50
|
//# sourceMappingURL=update-kpi.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi.d.mts","names":[],"sources":["../../src/actions/update-kpi.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi.d.mts","names":[],"sources":["../../src/actions/update-kpi.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-kpi.mjs","names":[],"sources":["../../src/actions/update-kpi.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateKpiInput = z.object({\n id: z.number().int().describe(\"KPI ID to update\"),\n name: z.string().describe(\"KPI name (maximum 100 characters)\"),\n icon_id: z.number().int().describe(\"Icon identifier for the KPI\"),\n unit_id: z.number().int().describe(\"Unit of measure identifier\"),\n is_active: z.boolean().describe(\"Activation status for data entry. Set to true to enable data entry, false to disable.\"),\n sort_order: z.number().int().describe(\"Display order ranking for the KPI\"),\n category_id: z.number().int().describe(\"KPI Category ID that this KPI belongs to\"),\n description: z.string().describe(\"KPI description (maximum 150 characters)\").optional(),\n frequency_id: z.enum([\"D\", \"W\", \"M\", \"Q\", \"Y\"]).describe(\"Data entry frequency (D=Daily, W=Weekly, M=Monthly, Q=Quarterly, Y=Yearly). Case-sensitive, must be uppercase.\"),\n target_default: z.number().describe(\"Default target value for the KPI\").optional(),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: U(p) means higher is better, D(own) means lower is better, N(one) means no direction\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"How the KPI is calculated: AVG (Average) or SUM (Total Sum)\"),\n}).describe(\"Request model for updating an existing KPI.\");\nexport const SimplekpiUpdateKpiOutput = z.object({\n id: z.number().int().describe(\"KPI ID\").nullable(),\n name: z.string().describe(\"KPI name\").nullable(),\n icon_id: z.number().int().describe(\"Icon identifier\").nullable(),\n unit_id: z.number().int().describe(\"Unit of measure identifier\").nullable(),\n is_active: z.boolean().describe(\"Activation status\").nullable(),\n sort_order: z.number().int().describe(\"Display order ranking\").nullable(),\n category_id: z.number().int().describe(\"KPI Category ID\").nullable(),\n description: z.string().describe(\"KPI description\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency\").nullable(),\n target_default: z.number().describe(\"Default target value\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator\").nullable(),\n aggregate_function: z.string().describe(\"Aggregate function\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI.\");\n\nexport const simplekpiUpdateKpi = action(\"SIMPLEKPI_UPDATE_KPI\", {\n slug: \"simplekpi-update-kpi\",\n name: \"Update KPI\",\n description: \"Tool to update an existing KPI in SimpleKPI. Use when you need to modify KPI properties such as name, description, target values, or settings.\",\n input: SimplekpiUpdateKpiInput,\n output: SimplekpiUpdateKpiOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-kpi.mjs","names":[],"sources":["../../src/actions/update-kpi.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateKpiInput = z.object({\n id: z.number().int().describe(\"KPI ID to update\"),\n name: z.string().describe(\"KPI name (maximum 100 characters)\"),\n icon_id: z.number().int().describe(\"Icon identifier for the KPI\"),\n unit_id: z.number().int().describe(\"Unit of measure identifier\"),\n is_active: z.boolean().describe(\"Activation status for data entry. Set to true to enable data entry, false to disable.\"),\n sort_order: z.number().int().describe(\"Display order ranking for the KPI\"),\n category_id: z.number().int().describe(\"KPI Category ID that this KPI belongs to\"),\n description: z.string().describe(\"KPI description (maximum 150 characters)\").optional(),\n frequency_id: z.enum([\"D\", \"W\", \"M\", \"Q\", \"Y\"]).describe(\"Data entry frequency (D=Daily, W=Weekly, M=Monthly, Q=Quarterly, Y=Yearly). Case-sensitive, must be uppercase.\"),\n target_default: z.number().describe(\"Default target value for the KPI\").optional(),\n value_direction: z.enum([\"U\", \"D\", \"N\"]).describe(\"Direction indicator: U(p) means higher is better, D(own) means lower is better, N(one) means no direction\"),\n aggregate_function: z.enum([\"AVG\", \"SUM\"]).describe(\"How the KPI is calculated: AVG (Average) or SUM (Total Sum)\"),\n}).describe(\"Request model for updating an existing KPI.\");\nexport const SimplekpiUpdateKpiOutput = z.object({\n id: z.number().int().describe(\"KPI ID\").nullable(),\n name: z.string().describe(\"KPI name\").nullable(),\n icon_id: z.number().int().describe(\"Icon identifier\").nullable(),\n unit_id: z.number().int().describe(\"Unit of measure identifier\").nullable(),\n is_active: z.boolean().describe(\"Activation status\").nullable(),\n sort_order: z.number().int().describe(\"Display order ranking\").nullable(),\n category_id: z.number().int().describe(\"KPI Category ID\").nullable(),\n description: z.string().describe(\"KPI description\").nullable().optional(),\n frequency_id: z.string().describe(\"Data entry frequency\").nullable(),\n target_default: z.number().describe(\"Default target value\").nullable().optional(),\n value_direction: z.string().describe(\"Direction indicator\").nullable(),\n aggregate_function: z.string().describe(\"Aggregate function\").nullable(),\n}).passthrough().describe(\"Response model for updating a KPI.\");\n\nexport const simplekpiUpdateKpi: AppAction<\n typeof SimplekpiUpdateKpiInput,\n typeof SimplekpiUpdateKpiOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_KPI\", {\n slug: \"simplekpi-update-kpi\",\n name: \"Update KPI\",\n description: \"Tool to update an existing KPI in SimpleKPI. Use when you need to modify KPI properties such as name, description, target values, or settings.\",\n input: SimplekpiUpdateKpiInput,\n output: SimplekpiUpdateKpiOutput,\n});\n"],"mappings":";;;AAmCA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAC/D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uFAAuF;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACtF,cAAc,EAAE,KAAK;GAAC;GAAK;GAAK;GAAK;GAAK;EAAG,CAAC,CAAC,CAAC,SAAS,gHAAgH;EACzK,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,KAAK;GAAC;GAAK;GAAK;EAAG,CAAC,CAAC,CAAC,SAAS,2GAA2G;EAC7J,oBAAoB,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,6DAA6D;CACnH,CAAC,CAAC,CAAC,SAAS,6CAwBH;CACP,QAxBsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,QAAQ,CAAC,CAAC,SAAS;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACnE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACrE,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateUserInput = z.object({\n id: z.number().int().describe(\"User ID to update\"),\n email: z.string().describe(\"Email address of the user\"),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n user_type: z.string().describe(\"User type (e.g., 'Standard', 'Manager', 'Director')\"),\n first_name: z.string().describe(\"First name of the user\"),\n user_status_id: z.string().describe(\"User status ID. Use 'A' for Active, 'I' for Inactive\"),\n can_manage_users: z.boolean().describe(\"Whether the user can manage other users. Set to true to grant user management permissions\").optional(),\n can_admin_settings: z.boolean().describe(\"Whether the user can access admin settings. Set to true to grant admin access\").optional(),\n}).describe(\"Request to update an existing user account in SimpleKPI.\");\nexport const SimplekpiUpdateUserOutput = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n user_type: z.string().describe(\"User type\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n user_status_id: z.string().describe(\"User status ID\").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}).passthrough().describe(\"Response containing the updated user information.\");\n\nexport const simplekpiUpdateUser = action(\"SIMPLEKPI_UPDATE_USER\", {\n slug: \"simplekpi-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user account in SimpleKPI. Use when you need to modify user details such as type, status, name, or permissions.\",\n input: SimplekpiUpdateUserInput,\n output: SimplekpiUpdateUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateUserInput = z.object({\n id: z.number().int().describe(\"User ID to update\"),\n email: z.string().describe(\"Email address of the user\"),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n user_type: z.string().describe(\"User type (e.g., 'Standard', 'Manager', 'Director')\"),\n first_name: z.string().describe(\"First name of the user\"),\n user_status_id: z.string().describe(\"User status ID. Use 'A' for Active, 'I' for Inactive\"),\n can_manage_users: z.boolean().describe(\"Whether the user can manage other users. Set to true to grant user management permissions\").optional(),\n can_admin_settings: z.boolean().describe(\"Whether the user can access admin settings. Set to true to grant admin access\").optional(),\n}).describe(\"Request to update an existing user account in SimpleKPI.\");\nexport const SimplekpiUpdateUserOutput = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n user_type: z.string().describe(\"User type\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n user_status_id: z.string().describe(\"User status ID\").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}).passthrough().describe(\"Response containing the updated user information.\");\n\nexport const simplekpiUpdateUser: AppAction<\n typeof SimplekpiUpdateUserInput,\n typeof SimplekpiUpdateUserOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_USER\", {\n slug: \"simplekpi-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user account in SimpleKPI. Use when you need to modify user details such as type, status, name, or permissions.\",\n input: SimplekpiUpdateUserInput,\n output: SimplekpiUpdateUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACxD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC1F,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC7I,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,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,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-user.d.ts
|
|
@@ -21,16 +23,7 @@ declare const SimplekpiUpdateUserOutput: z.ZodObject<{
|
|
|
21
23
|
can_manage_users: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
24
|
can_admin_settings: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const simplekpiUpdateUser:
|
|
25
|
-
id: number;
|
|
26
|
-
email: string;
|
|
27
|
-
user_type: string;
|
|
28
|
-
first_name: string;
|
|
29
|
-
user_status_id: string;
|
|
30
|
-
last_name?: string | undefined;
|
|
31
|
-
can_manage_users?: boolean | undefined;
|
|
32
|
-
can_admin_settings?: boolean | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const simplekpiUpdateUser: AppAction<typeof SimplekpiUpdateUserInput, typeof SimplekpiUpdateUserOutput, typeof simplekpi.credential>;
|
|
34
27
|
//#endregion
|
|
35
28
|
export { simplekpiUpdateUser };
|
|
36
29
|
//# sourceMappingURL=update-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplekpi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-user.d.ts
|
|
@@ -21,16 +23,7 @@ declare const SimplekpiUpdateUserOutput: z.ZodObject<{
|
|
|
21
23
|
can_manage_users: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
22
24
|
can_admin_settings: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const simplekpiUpdateUser:
|
|
25
|
-
id: number;
|
|
26
|
-
email: string;
|
|
27
|
-
user_type: string;
|
|
28
|
-
first_name: string;
|
|
29
|
-
user_status_id: string;
|
|
30
|
-
last_name?: string | undefined;
|
|
31
|
-
can_manage_users?: boolean | undefined;
|
|
32
|
-
can_admin_settings?: boolean | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const simplekpiUpdateUser: AppAction<typeof SimplekpiUpdateUserInput, typeof SimplekpiUpdateUserOutput, typeof simplekpi.credential>;
|
|
34
27
|
//#endregion
|
|
35
28
|
export { simplekpiUpdateUser };
|
|
36
29
|
//# sourceMappingURL=update-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAWzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimplekpiUpdateUserInput = z.object({\n id: z.number().int().describe(\"User ID to update\"),\n email: z.string().describe(\"Email address of the user\"),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n user_type: z.string().describe(\"User type (e.g., 'Standard', 'Manager', 'Director')\"),\n first_name: z.string().describe(\"First name of the user\"),\n user_status_id: z.string().describe(\"User status ID. Use 'A' for Active, 'I' for Inactive\"),\n can_manage_users: z.boolean().describe(\"Whether the user can manage other users. Set to true to grant user management permissions\").optional(),\n can_admin_settings: z.boolean().describe(\"Whether the user can access admin settings. Set to true to grant admin access\").optional(),\n}).describe(\"Request to update an existing user account in SimpleKPI.\");\nexport const SimplekpiUpdateUserOutput = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n user_type: z.string().describe(\"User type\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n user_status_id: z.string().describe(\"User status ID\").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}).passthrough().describe(\"Response containing the updated user information.\");\n\nexport const simplekpiUpdateUser = action(\"SIMPLEKPI_UPDATE_USER\", {\n slug: \"simplekpi-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user account in SimpleKPI. Use when you need to modify user details such as type, status, name, or permissions.\",\n input: SimplekpiUpdateUserInput,\n output: SimplekpiUpdateUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplekpi } from \"../app\";\n\nexport const SimplekpiUpdateUserInput = z.object({\n id: z.number().int().describe(\"User ID to update\"),\n email: z.string().describe(\"Email address of the user\"),\n last_name: z.string().describe(\"Last name of the user\").optional(),\n user_type: z.string().describe(\"User type (e.g., 'Standard', 'Manager', 'Director')\"),\n first_name: z.string().describe(\"First name of the user\"),\n user_status_id: z.string().describe(\"User status ID. Use 'A' for Active, 'I' for Inactive\"),\n can_manage_users: z.boolean().describe(\"Whether the user can manage other users. Set to true to grant user management permissions\").optional(),\n can_admin_settings: z.boolean().describe(\"Whether the user can access admin settings. Set to true to grant admin access\").optional(),\n}).describe(\"Request to update an existing user account in SimpleKPI.\");\nexport const SimplekpiUpdateUserOutput = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n email: z.string().describe(\"Email address\").nullable().optional(),\n last_name: z.string().describe(\"Last name\").nullable().optional(),\n user_type: z.string().describe(\"User type\").nullable().optional(),\n first_name: z.string().describe(\"First name\").nullable().optional(),\n user_status_id: z.string().describe(\"User status ID\").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}).passthrough().describe(\"Response containing the updated user information.\");\n\nexport const simplekpiUpdateUser: AppAction<\n typeof SimplekpiUpdateUserInput,\n typeof SimplekpiUpdateUserOutput,\n typeof simplekpi.credential\n> = action(\"SIMPLEKPI_UPDATE_USER\", {\n slug: \"simplekpi-update-user\",\n name: \"Update User\",\n description: \"Tool to update an existing user account in SimpleKPI. Use when you need to modify user details such as type, status, name, or permissions.\",\n input: SimplekpiUpdateUserInput,\n output: SimplekpiUpdateUserOutput,\n});\n"],"mappings":";;;AA2BA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7BsC,EAAE,OAAO;EAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACtD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACxD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAC1F,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAC7I,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,0DAoBH;CACP,QApBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const
|
|
4
|
+
const credential = {
|
|
5
|
+
username: zod.z.string(),
|
|
6
|
+
password: zod.z.string(),
|
|
7
|
+
subdomain: zod.z.string(),
|
|
8
|
+
generic_api_key: zod.z.string(),
|
|
9
|
+
generic_id: zod.z.string()
|
|
10
|
+
};
|
|
11
|
+
const simplekpi = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
12
|
slug: "simplekpi",
|
|
4
|
-
auth: "keystroke"
|
|
13
|
+
auth: "keystroke",
|
|
14
|
+
credential
|
|
5
15
|
});
|
|
6
16
|
//#endregion
|
|
7
17
|
exports.simplekpi = simplekpi;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const simplekpi = defineApp({\n slug: \"simplekpi\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n username: z.string(),\n password: z.string(),\n subdomain: z.string(),\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const simplekpi: KeystrokeApp<\"simplekpi\", typeof credential> = defineApp({\n slug: \"simplekpi\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,UAAUA,IAAAA,EAAE,OAAO;CACnB,UAAUA,IAAAA,EAAE,OAAO;CACnB,WAAWA,IAAAA,EAAE,OAAO;CACpB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
password: z.ZodString;
|
|
8
|
+
subdomain: z.ZodString;
|
|
9
|
+
generic_api_key: z.ZodString;
|
|
10
|
+
generic_id: z.ZodString;
|
|
11
|
+
};
|
|
12
|
+
declare const simplekpi: KeystrokeApp<"simplekpi", typeof credential>;
|
|
3
13
|
//#endregion
|
|
4
14
|
export { simplekpi };
|
|
5
15
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;;;;;;;cAQO,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
password: z.ZodString;
|
|
8
|
+
subdomain: z.ZodString;
|
|
9
|
+
generic_api_key: z.ZodString;
|
|
10
|
+
generic_id: z.ZodString;
|
|
11
|
+
};
|
|
12
|
+
declare const simplekpi: KeystrokeApp<"simplekpi", typeof credential>;
|
|
3
13
|
//#endregion
|
|
4
14
|
export { simplekpi };
|
|
5
15
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;;;;;;;cAQO,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const simplekpi = defineApp({
|
|
4
4
|
slug: "simplekpi",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: {
|
|
7
|
+
username: z.string(),
|
|
8
|
+
password: z.string(),
|
|
9
|
+
subdomain: z.string(),
|
|
10
|
+
generic_api_key: z.string(),
|
|
11
|
+
generic_id: z.string()
|
|
12
|
+
}
|
|
6
13
|
});
|
|
7
14
|
//#endregion
|
|
8
15
|
export { simplekpi };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const simplekpi = defineApp({\n slug: \"simplekpi\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n username: z.string(),\n password: z.string(),\n subdomain: z.string(),\n generic_api_key: z.string(),\n generic_id: z.string(),\n};\n\nexport const simplekpi: KeystrokeApp<\"simplekpi\", typeof credential> = defineApp({\n slug: \"simplekpi\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAWA,MAAa,YAA0D,UAAU;CAC/E,MAAM;CACN,MAAM;CACN;EAVA,UAAU,EAAE,OAAO;EACnB,UAAU,EAAE,OAAO;EACnB,WAAW,EAAE,OAAO;EACpB,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { simplekpi } from "./app.cjs";
|
|
1
2
|
import { simplekpiAddUserGroupItem } from "./actions/add-user-group-item.cjs";
|
|
2
3
|
import { simplekpiAddUserKpi } from "./actions/add-user-kpi.cjs";
|
|
3
4
|
import { simplekpiCreateCategoryKpi } from "./actions/create-category-kpi.cjs";
|
|
@@ -49,6 +50,5 @@ import { simplekpiUpdateKpi } from "./actions/update-kpi.cjs";
|
|
|
49
50
|
import { simplekpiUpdateKpiEntry } from "./actions/update-kpi-entry.cjs";
|
|
50
51
|
import { simplekpiUpdateKpiUnit } from "./actions/update-kpi-unit.cjs";
|
|
51
52
|
import { simplekpiUpdateUser } from "./actions/update-user.cjs";
|
|
52
|
-
import { simplekpi } from "./app.cjs";
|
|
53
53
|
import { simplekpiCatalog } from "./catalog.cjs";
|
|
54
54
|
export { simplekpi, simplekpiAddUserGroupItem, simplekpiAddUserKpi, simplekpiCatalog, simplekpiCreateCategoryKpi, simplekpiCreateGroup, simplekpiCreateGroupItem, simplekpiCreateKpi, simplekpiCreateKpiCategory, simplekpiCreateKpiUnit, simplekpiCreateOrUpdateKpiEntries, simplekpiCreateUser, simplekpiDeleteCategoryKpi, simplekpiDeleteGroup, simplekpiDeleteGroupItem, simplekpiDeleteKpi, simplekpiDeleteKpiCategory, simplekpiDeleteKpiEntry, simplekpiDeleteKpiUnit, simplekpiDeleteUser, simplekpiDeleteUserGroupItem, simplekpiDeleteUserKpi, simplekpiGetAllDataEntries, simplekpiGetCategoryKpi, simplekpiGetGroup, simplekpiGetGroupItem, simplekpiGetKpi, simplekpiGetKpiCategory, simplekpiGetKpiEntry, simplekpiGetKpiFrequency, simplekpiGetKpiIcon, simplekpiGetKpiUnit, simplekpiGetUser, simplekpiGetUserGroupItem, simplekpiGetUserKpi, simplekpiListCategoryKpis, simplekpiListGroupItems, simplekpiListGroups, simplekpiListKpiCategories, simplekpiListKpiEntries, simplekpiListKpiFrequencies, simplekpiListKpiIcons, simplekpiListKpiUnits, simplekpiListKpis, simplekpiListUserGroupItems, simplekpiListUserKpis, simplekpiUpdateCategoryKpi, simplekpiUpdateGroup, simplekpiUpdateGroupItem, simplekpiUpdateKpi, simplekpiUpdateKpiEntry, simplekpiUpdateKpiUnit, simplekpiUpdateUser };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { simplekpi } from "./app.mjs";
|
|
1
2
|
import { simplekpiAddUserGroupItem } from "./actions/add-user-group-item.mjs";
|
|
2
3
|
import { simplekpiAddUserKpi } from "./actions/add-user-kpi.mjs";
|
|
3
4
|
import { simplekpiCreateCategoryKpi } from "./actions/create-category-kpi.mjs";
|
|
@@ -49,6 +50,5 @@ import { simplekpiUpdateKpi } from "./actions/update-kpi.mjs";
|
|
|
49
50
|
import { simplekpiUpdateKpiEntry } from "./actions/update-kpi-entry.mjs";
|
|
50
51
|
import { simplekpiUpdateKpiUnit } from "./actions/update-kpi-unit.mjs";
|
|
51
52
|
import { simplekpiUpdateUser } from "./actions/update-user.mjs";
|
|
52
|
-
import { simplekpi } from "./app.mjs";
|
|
53
53
|
import { simplekpiCatalog } from "./catalog.mjs";
|
|
54
54
|
export { simplekpi, simplekpiAddUserGroupItem, simplekpiAddUserKpi, simplekpiCatalog, simplekpiCreateCategoryKpi, simplekpiCreateGroup, simplekpiCreateGroupItem, simplekpiCreateKpi, simplekpiCreateKpiCategory, simplekpiCreateKpiUnit, simplekpiCreateOrUpdateKpiEntries, simplekpiCreateUser, simplekpiDeleteCategoryKpi, simplekpiDeleteGroup, simplekpiDeleteGroupItem, simplekpiDeleteKpi, simplekpiDeleteKpiCategory, simplekpiDeleteKpiEntry, simplekpiDeleteKpiUnit, simplekpiDeleteUser, simplekpiDeleteUserGroupItem, simplekpiDeleteUserKpi, simplekpiGetAllDataEntries, simplekpiGetCategoryKpi, simplekpiGetGroup, simplekpiGetGroupItem, simplekpiGetKpi, simplekpiGetKpiCategory, simplekpiGetKpiEntry, simplekpiGetKpiFrequency, simplekpiGetKpiIcon, simplekpiGetKpiUnit, simplekpiGetUser, simplekpiGetUserGroupItem, simplekpiGetUserKpi, simplekpiListCategoryKpis, simplekpiListGroupItems, simplekpiListGroups, simplekpiListKpiCategories, simplekpiListKpiEntries, simplekpiListKpiFrequencies, simplekpiListKpiIcons, simplekpiListKpiUnits, simplekpiListKpis, simplekpiListUserGroupItems, simplekpiListUserKpis, simplekpiUpdateCategoryKpi, simplekpiUpdateGroup, simplekpiUpdateGroupItem, simplekpiUpdateKpi, simplekpiUpdateKpiEntry, simplekpiUpdateKpiUnit, simplekpiUpdateUser };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/simplekpi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|