@vef-framework-react/cron 2.36.0 → 2.37.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.
- package/dist/cjs/api/index.cjs +1 -1
- package/dist/cjs/api/run-api.cjs +1 -1
- package/dist/cjs/api/schedule-api.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/schedule-page/helpers.cjs +1 -1
- package/dist/es/api/index.js +4 -5
- package/dist/es/api/run-api.js +5 -5
- package/dist/es/api/schedule-api.js +20 -23
- package/dist/es/components/duration.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/trigger-editor/helpers.js +1 -1
- package/dist/es/components/trigger-editor/index.js +1 -1
- package/dist/es/index.js +18 -19
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/run-page/columns.js +1 -1
- package/dist/es/pages/run-page/detail.js +1 -1
- package/dist/es/pages/run-page/index.js +1 -1
- package/dist/es/pages/run-page/search.js +1 -1
- package/dist/es/pages/schedule-page/columns.js +1 -1
- package/dist/es/pages/schedule-page/form.js +1 -1
- package/dist/es/pages/schedule-page/helpers.js +13 -14
- package/dist/es/pages/schedule-page/index.js +1 -1
- package/dist/es/pages/schedule-page/model.js +1 -1
- package/dist/es/pages/schedule-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/api/index.d.ts +0 -1
- package/package.json +4 -4
- package/dist/cjs/api/query.cjs +0 -1
- package/dist/es/api/query.js +0 -20
- package/dist/types/api/query.d.ts +0 -24
package/dist/cjs/api/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./
|
|
1
|
+
const e=require("./run-api.cjs"),t=require("./schedule-api.cjs");exports.useRunApi=e.useRunApi,exports.useScheduleApi=t.useScheduleApi;
|
package/dist/cjs/api/run-api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@vef-framework-react/components"),t=require("@vef-framework-react/core"),n=require("react");var r=`sys/cron/run`;function i(){let i=(0,t.useApiClient)();return(0,n.useMemo)(()=>({findPage:i.createQueryFn(`cron_run_find_page`,({post:n})=>async i=>(await n(t.API_PATH,{data:(0,t.createApiRequest)(r,`find_page`,{},(0,e.toCrudReadMeta)(i))})).data),findOne:i.createQueryFn(`cron_run_find_one`,({post:e})=>async n=>(await e(t.API_PATH,{data:(0,t.createApiRequest)(r,`find_one`,{},n)})).data)}),[i])}exports.useRunApi=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
let e=require("@vef-framework-react/components"),t=require("@vef-framework-react/core"),n=require("react");var r=`sys/cron/schedule`;function i(){let i=(0,t.useApiClient)();return(0,n.useMemo)(()=>({findPage:i.createQueryFn(`cron_schedule_find_page`,({post:n})=>async i=>{let{isEnabled:a,...o}=(0,e.toCrudReadMeta)(i),s=a===`true`?{...o,isEnabled:!0}:a===`false`?{...o,isEnabled:!1}:o;return(await n(t.API_PATH,{data:(0,t.createApiRequest)(r,`find_page`,{},s)})).data}),get:i.createQueryFn(`cron_schedule_get`,({post:e})=>async n=>(await e(t.API_PATH,{data:(0,t.createApiRequest)(r,`get`,n)})).data),listJobs:i.createQueryFn(`cron_schedule_list_jobs`,({post:e})=>async()=>(await e(t.API_PATH,{data:(0,t.createApiRequest)(r,`list_jobs`)})).data),previewFires:i.createQueryFn(`cron_schedule_preview_fires`,({post:e})=>async n=>(await e(t.API_PATH,{data:(0,t.createApiRequest)(r,`preview_fires`,n)})).data),create:i.createMutationFn(`cron_schedule_create`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`create`,n)})),update:i.createMutationFn(`cron_schedule_update`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`update`,n)})),remove:i.createMutationFn(`cron_schedule_delete`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`delete`,{name:n.name})})),pause:i.createMutationFn(`cron_schedule_pause`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`pause`,{name:n.name})})),resume:i.createMutationFn(`cron_schedule_resume`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`resume`,{name:n.name})})),triggerNow:i.createMutationFn(`cron_schedule_trigger_now`,({post:e})=>n=>e(t.API_PATH,{data:(0,t.createApiRequest)(r,`trigger_now`,{name:n.name})}))}),[i])}exports.useScheduleApi=i;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./api/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./api/run-api.cjs"),t=require("./api/schedule-api.cjs"),n=require("./components/duration.cjs"),r=require("./components/format.cjs"),i=require("./components/status/colors.cjs"),a=require("./types/enums.cjs"),o=require("./components/status/labels.cjs"),s=require("./components/status/index.cjs"),c=require("./components/trigger-editor/helpers.cjs"),l=require("./components/trigger-editor/index.cjs"),u=require("./pages/run-page/detail.cjs"),d=require("./pages/run-page/index.cjs"),f=require("./permissions.cjs"),p=require("./pages/schedule-page/model.cjs"),m=require("./pages/schedule-page/helpers.cjs"),h=require("./pages/schedule-page/index.cjs");exports.CONCURRENCY_POLICIES=a.CONCURRENCY_POLICIES,exports.CONCURRENCY_POLICY_LABELS=o.CONCURRENCY_POLICY_LABELS,exports.CONCURRENCY_POLICY_OPTIONS=o.CONCURRENCY_POLICY_OPTIONS,exports.CRON_PERMISSIONS=f.CRON_PERMISSIONS,exports.CronRunPage=d.CronRunPage,exports.CronSchedulePage=h.CronSchedulePage,exports.DEFAULT_TRIGGER=c.DEFAULT_TRIGGER,exports.EnabledTag=s.EnabledTag,exports.INTERVAL_UNITS=n.INTERVAL_UNITS,exports.MISFIRE_POLICIES=a.MISFIRE_POLICIES,exports.MISFIRE_POLICY_LABELS=o.MISFIRE_POLICY_LABELS,exports.MISFIRE_POLICY_OPTIONS=o.MISFIRE_POLICY_OPTIONS,exports.RUN_STATUSES=a.RUN_STATUSES,exports.RUN_STATUS_COLORS=i.RUN_STATUS_COLORS,exports.RUN_STATUS_LABELS=o.RUN_STATUS_LABELS,exports.RUN_STATUS_OPTIONS=o.RUN_STATUS_OPTIONS,exports.RunDetailDrawer=u.RunDetailDrawer,exports.RunStatusBadge=s.RunStatusBadge,exports.SCHEDULE_FORM_DEFAULTS=p.SCHEDULE_FORM_DEFAULTS,exports.TIMEOUT_UNITS=n.TIMEOUT_UNITS,exports.TIMEOUT_UNIT_OPTIONS=p.TIMEOUT_UNIT_OPTIONS,exports.TRIGGER_KINDS=a.TRIGGER_KINDS,exports.TRIGGER_KIND_LABELS=o.TRIGGER_KIND_LABELS,exports.TRIGGER_KIND_OPTIONS=o.TRIGGER_KIND_OPTIONS,exports.TriggerEditor=l.TriggerEditor,exports.combineDurationMs=n.combineDurationMs,exports.formatDuration=r.formatDuration,exports.formatTimestamp=r.formatTimestamp,exports.formatTriggerSummary=c.formatTriggerSummary,exports.isTriggerComplete=c.isTriggerComplete,exports.jsonParamsError=p.jsonParamsError,exports.parseJsonParams=p.parseJsonParams,exports.scheduleToFormValues=p.scheduleToFormValues,exports.scheduleToParams=p.scheduleToParams,exports.splitDurationMs=n.splitDurationMs,exports.triggerFormToParams=c.triggerFormToParams,exports.triggerToFormValues=c.triggerToFormValues,exports.useJobNames=m.useJobNames,exports.useRunApi=e.useRunApi,exports.useScheduleApi=t.useScheduleApi,exports.useScheduleFormMutations=m.useScheduleFormMutations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../api/
|
|
1
|
+
const e=require("../../api/schedule-api.cjs"),t=require("./model.cjs");let n=require("@vef-framework-react/components"),r=require("@vef-framework-react/core"),i=require("react");var a=`sys/cron/schedule`,o=(0,n.createCrudKit)(),s=o.OperationButtonGroup,c=o.ActionButtonGroup;function l(){let e=(0,r.useApiClient)();return(0,i.useMemo)(()=>({create:e.createMutationFn(`cron_schedule_form_create`,({post:e})=>n=>e(r.API_PATH,{data:(0,r.createApiRequest)(a,`create`,t.scheduleToParams(n))})),update:e.createMutationFn(`cron_schedule_form_update`,({post:e})=>n=>e(r.API_PATH,{data:(0,r.createApiRequest)(a,`update`,t.scheduleToParams(n))}))}),[e])}function u(){let t=e.useScheduleApi(),{data:n,isLoading:a}=(0,r.useQuery)({queryFn:t.listJobs,queryKey:[t.listJobs.key]});return(0,i.useMemo)(()=>({options:(n??[]).map(e=>({label:e,value:e})),loading:a}),[n,a])}exports.ScheduleActionButtonGroup=c,exports.ScheduleOperationButtonGroup=s,exports.useJobNames=u,exports.useScheduleFormMutations=l;
|
package/dist/es/api/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export { e as API_PATH, t as splitQueryParams, n as toCrudReadMeta, r as useRunApi, i as useScheduleApi };
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
|
+
import { useRunApi as e } from "./run-api.js";
|
|
3
|
+
import { useScheduleApi as t } from "./schedule-api.js";
|
|
4
|
+
export { e as useRunApi, t as useScheduleApi };
|
package/dist/es/api/run-api.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
2
|
-
import {
|
|
3
|
-
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
|
+
import { toCrudReadMeta as e } from "@vef-framework-react/components";
|
|
3
|
+
import { API_PATH as t, createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
5
5
|
//#region src/api/run-api.ts
|
|
6
6
|
var a = "sys/cron/run";
|
|
7
7
|
function o() {
|
|
8
8
|
let o = r();
|
|
9
9
|
return i(() => ({
|
|
10
|
-
findPage: o.createQueryFn("cron_run_find_page", ({ post: r }) => async (i) => (await r(
|
|
11
|
-
findOne: o.createQueryFn("cron_run_find_one", ({ post:
|
|
10
|
+
findPage: o.createQueryFn("cron_run_find_page", ({ post: r }) => async (i) => (await r(t, { data: n(a, "find_page", {}, e(i)) })).data),
|
|
11
|
+
findOne: o.createQueryFn("cron_run_find_one", ({ post: e }) => async (r) => (await e(t, { data: n(a, "find_one", {}, r) })).data)
|
|
12
12
|
}), [o]);
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
2
|
-
import {
|
|
3
|
-
import { createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
|
+
import { toCrudReadMeta as e } from "@vef-framework-react/components";
|
|
3
|
+
import { API_PATH as t, createApiRequest as n, useApiClient as r } from "@vef-framework-react/core";
|
|
4
4
|
import { useMemo as i } from "react";
|
|
5
5
|
//#region src/api/schedule-api.ts
|
|
6
6
|
var a = "sys/cron/schedule";
|
|
@@ -8,27 +8,24 @@ function o() {
|
|
|
8
8
|
let o = r();
|
|
9
9
|
return i(() => ({
|
|
10
10
|
findPage: o.createQueryFn("cron_schedule_find_page", ({ post: r }) => async (i) => {
|
|
11
|
-
let {
|
|
12
|
-
return (await r(
|
|
13
|
-
...
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} : l,
|
|
20
|
-
...s
|
|
21
|
-
}) })).data;
|
|
11
|
+
let { isEnabled: o, ...s } = e(i);
|
|
12
|
+
return (await r(t, { data: n(a, "find_page", {}, o === "true" ? {
|
|
13
|
+
...s,
|
|
14
|
+
isEnabled: !0
|
|
15
|
+
} : o === "false" ? {
|
|
16
|
+
...s,
|
|
17
|
+
isEnabled: !1
|
|
18
|
+
} : s) })).data;
|
|
22
19
|
}),
|
|
23
|
-
get: o.createQueryFn("cron_schedule_get", ({ post:
|
|
24
|
-
listJobs: o.createQueryFn("cron_schedule_list_jobs", ({ post:
|
|
25
|
-
previewFires: o.createQueryFn("cron_schedule_preview_fires", ({ post:
|
|
26
|
-
create: o.createMutationFn("cron_schedule_create", ({ post:
|
|
27
|
-
update: o.createMutationFn("cron_schedule_update", ({ post:
|
|
28
|
-
remove: o.createMutationFn("cron_schedule_delete", ({ post:
|
|
29
|
-
pause: o.createMutationFn("cron_schedule_pause", ({ post:
|
|
30
|
-
resume: o.createMutationFn("cron_schedule_resume", ({ post:
|
|
31
|
-
triggerNow: o.createMutationFn("cron_schedule_trigger_now", ({ post:
|
|
20
|
+
get: o.createQueryFn("cron_schedule_get", ({ post: e }) => async (r) => (await e(t, { data: n(a, "get", r) })).data),
|
|
21
|
+
listJobs: o.createQueryFn("cron_schedule_list_jobs", ({ post: e }) => async () => (await e(t, { data: n(a, "list_jobs") })).data),
|
|
22
|
+
previewFires: o.createQueryFn("cron_schedule_preview_fires", ({ post: e }) => async (r) => (await e(t, { data: n(a, "preview_fires", r) })).data),
|
|
23
|
+
create: o.createMutationFn("cron_schedule_create", ({ post: e }) => (r) => e(t, { data: n(a, "create", r) })),
|
|
24
|
+
update: o.createMutationFn("cron_schedule_update", ({ post: e }) => (r) => e(t, { data: n(a, "update", r) })),
|
|
25
|
+
remove: o.createMutationFn("cron_schedule_delete", ({ post: e }) => (r) => e(t, { data: n(a, "delete", { name: r.name }) })),
|
|
26
|
+
pause: o.createMutationFn("cron_schedule_pause", ({ post: e }) => (r) => e(t, { data: n(a, "pause", { name: r.name }) })),
|
|
27
|
+
resume: o.createMutationFn("cron_schedule_resume", ({ post: e }) => (r) => e(t, { data: n(a, "resume", { name: r.name }) })),
|
|
28
|
+
triggerNow: o.createMutationFn("cron_schedule_trigger_now", ({ post: e }) => (r) => e(t, { data: n(a, "trigger_now", { name: r.name }) }))
|
|
32
29
|
}), [o]);
|
|
33
30
|
}
|
|
34
31
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { INTERVAL_UNITS as e, TIMEOUT_UNITS as t, combineDurationMs as n, splitDurationMs as r } from "./duration.js";
|
|
3
3
|
import { formatDuration as i, formatTimestamp as a } from "./format.js";
|
|
4
4
|
import { RUN_STATUS_COLORS as o } from "./status/colors.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { RUN_STATUS_COLORS as e } from "./colors.js";
|
|
3
3
|
import { RUN_STATUS_LABELS as t } from "./labels.js";
|
|
4
4
|
import { Tag as n } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { CONCURRENCY_POLICIES as e, MISFIRE_POLICIES as t, RUN_STATUSES as n, TRIGGER_KINDS as r } from "../../types/enums.js";
|
|
3
3
|
//#region src/components/status/labels.ts
|
|
4
4
|
var i = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { INTERVAL_UNITS as e, combineDurationMs as t, splitDurationMs as n } from "../duration.js";
|
|
3
3
|
//#region src/components/trigger-editor/helpers.ts
|
|
4
4
|
var r = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { useScheduleApi as e } from "../../api/schedule-api.js";
|
|
3
3
|
import { INTERVAL_UNITS as t } from "../duration.js";
|
|
4
4
|
import { TRIGGER_KIND_OPTIONS as n } from "../status/labels.js";
|
package/dist/es/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
export { e as API_PATH, f as CONCURRENCY_POLICIES, g as CONCURRENCY_POLICY_LABELS, _ as CONCURRENCY_POLICY_OPTIONS, P as CRON_PERMISSIONS, N as CronRunPage, U as CronSchedulePage, E as DEFAULT_TRIGGER, w as EnabledTag, a as INTERVAL_UNITS, p as MISFIRE_POLICIES, v as MISFIRE_POLICY_LABELS, y as MISFIRE_POLICY_OPTIONS, m as RUN_STATUSES, d as RUN_STATUS_COLORS, b as RUN_STATUS_LABELS, x as RUN_STATUS_OPTIONS, M as RunDetailDrawer, T as RunStatusBadge, F as SCHEDULE_FORM_DEFAULTS, o as TIMEOUT_UNITS, I as TIMEOUT_UNIT_OPTIONS, h as TRIGGER_KINDS, S as TRIGGER_KIND_LABELS, C as TRIGGER_KIND_OPTIONS, j as TriggerEditor, s as combineDurationMs, l as formatDuration, u as formatTimestamp, D as formatTriggerSummary, O as isTriggerComplete, L as jsonParamsError, R as parseJsonParams, z as scheduleToFormValues, B as scheduleToParams, c as splitDurationMs, t as splitQueryParams, n as toCrudReadMeta, k as triggerFormToParams, A as triggerToFormValues, V as useJobNames, r as useRunApi, i as useScheduleApi, H as useScheduleFormMutations };
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
|
+
import { useRunApi as e } from "./api/run-api.js";
|
|
3
|
+
import { useScheduleApi as t } from "./api/schedule-api.js";
|
|
4
|
+
import { INTERVAL_UNITS as n, TIMEOUT_UNITS as r, combineDurationMs as i, splitDurationMs as a } from "./components/duration.js";
|
|
5
|
+
import { formatDuration as o, formatTimestamp as s } from "./components/format.js";
|
|
6
|
+
import { RUN_STATUS_COLORS as c } from "./components/status/colors.js";
|
|
7
|
+
import { CONCURRENCY_POLICIES as l, MISFIRE_POLICIES as u, RUN_STATUSES as d, TRIGGER_KINDS as f } from "./types/enums.js";
|
|
8
|
+
import { CONCURRENCY_POLICY_LABELS as p, CONCURRENCY_POLICY_OPTIONS as m, MISFIRE_POLICY_LABELS as h, MISFIRE_POLICY_OPTIONS as g, RUN_STATUS_LABELS as _, RUN_STATUS_OPTIONS as v, TRIGGER_KIND_LABELS as y, TRIGGER_KIND_OPTIONS as b } from "./components/status/labels.js";
|
|
9
|
+
import { EnabledTag as x, RunStatusBadge as S } from "./components/status/index.js";
|
|
10
|
+
import { DEFAULT_TRIGGER as C, formatTriggerSummary as w, isTriggerComplete as T, triggerFormToParams as E, triggerToFormValues as D } from "./components/trigger-editor/helpers.js";
|
|
11
|
+
import { TriggerEditor as O } from "./components/trigger-editor/index.js";
|
|
12
|
+
import { RunDetailDrawer as k } from "./pages/run-page/detail.js";
|
|
13
|
+
import { CronRunPage as A } from "./pages/run-page/index.js";
|
|
14
|
+
import { CRON_PERMISSIONS as j } from "./permissions.js";
|
|
15
|
+
import { SCHEDULE_FORM_DEFAULTS as M, TIMEOUT_UNIT_OPTIONS as N, jsonParamsError as P, parseJsonParams as F, scheduleToFormValues as I, scheduleToParams as L } from "./pages/schedule-page/model.js";
|
|
16
|
+
import { useJobNames as R, useScheduleFormMutations as z } from "./pages/schedule-page/helpers.js";
|
|
17
|
+
import { CronSchedulePage as B } from "./pages/schedule-page/index.js";
|
|
18
|
+
export { l as CONCURRENCY_POLICIES, p as CONCURRENCY_POLICY_LABELS, m as CONCURRENCY_POLICY_OPTIONS, j as CRON_PERMISSIONS, A as CronRunPage, B as CronSchedulePage, C as DEFAULT_TRIGGER, x as EnabledTag, n as INTERVAL_UNITS, u as MISFIRE_POLICIES, h as MISFIRE_POLICY_LABELS, g as MISFIRE_POLICY_OPTIONS, d as RUN_STATUSES, c as RUN_STATUS_COLORS, _ as RUN_STATUS_LABELS, v as RUN_STATUS_OPTIONS, k as RunDetailDrawer, S as RunStatusBadge, M as SCHEDULE_FORM_DEFAULTS, r as TIMEOUT_UNITS, N as TIMEOUT_UNIT_OPTIONS, f as TRIGGER_KINDS, y as TRIGGER_KIND_LABELS, b as TRIGGER_KIND_OPTIONS, O as TriggerEditor, i as combineDurationMs, o as formatDuration, s as formatTimestamp, w as formatTriggerSummary, T as isTriggerComplete, P as jsonParamsError, F as parseJsonParams, I as scheduleToFormValues, L as scheduleToParams, a as splitDurationMs, E as triggerFormToParams, D as triggerToFormValues, R as useJobNames, e as useRunApi, t as useScheduleApi, z as useScheduleFormMutations };
|
package/dist/es/pages/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { RunDetailDrawer as e } from "./run-page/detail.js";
|
|
3
3
|
import { CronRunPage as t } from "./run-page/index.js";
|
|
4
4
|
import { SCHEDULE_FORM_DEFAULTS as n, TIMEOUT_UNIT_OPTIONS as r, jsonParamsError as i, parseJsonParams as a, scheduleToFormValues as o, scheduleToParams as s } from "./schedule-page/model.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { formatDuration as e, formatTimestamp as t } from "../../components/format.js";
|
|
3
3
|
import { RunStatusBadge as n } from "../../components/status/index.js";
|
|
4
4
|
import { Text as r } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { useRunApi as e } from "../../api/run-api.js";
|
|
3
3
|
import { formatDuration as t, formatTimestamp as n } from "../../components/format.js";
|
|
4
4
|
import { RunStatusBadge as r } from "../../components/status/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { useRunApi as e } from "../../api/run-api.js";
|
|
3
3
|
import { runColumns as t } from "./columns.js";
|
|
4
4
|
import { RunDetailDrawer as n } from "./detail.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { RUN_STATUS_OPTIONS as e } from "../../components/status/labels.js";
|
|
3
3
|
import { Col as t, Row as n, useFormContext as r } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { formatTimestamp as e } from "../../components/format.js";
|
|
3
3
|
import { TRIGGER_KIND_LABELS as t } from "../../components/status/labels.js";
|
|
4
4
|
import { EnabledTag as n } from "../../components/status/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { CONCURRENCY_POLICY_OPTIONS as e, MISFIRE_POLICY_OPTIONS as t } from "../../components/status/labels.js";
|
|
3
3
|
import { isTriggerComplete as n } from "../../components/trigger-editor/helpers.js";
|
|
4
4
|
import { TriggerEditor as r } from "../../components/trigger-editor/index.js";
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { createApiRequest as i, useApiClient as a, useQuery as o } from "@vef-framework-react/core";
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
|
+
import { useScheduleApi as e } from "../../api/schedule-api.js";
|
|
3
|
+
import { scheduleToParams as t } from "./model.js";
|
|
4
|
+
import { createCrudKit as n } from "@vef-framework-react/components";
|
|
5
|
+
import { API_PATH as r, createApiRequest as i, useApiClient as a, useQuery as o } from "@vef-framework-react/core";
|
|
7
6
|
import { useMemo as s } from "react";
|
|
8
7
|
//#region src/pages/schedule-page/helpers.ts
|
|
9
|
-
var c = "sys/cron/schedule", l =
|
|
8
|
+
var c = "sys/cron/schedule", l = n(), u = l.OperationButtonGroup, d = l.ActionButtonGroup;
|
|
10
9
|
function f() {
|
|
11
|
-
let
|
|
10
|
+
let e = a();
|
|
12
11
|
return s(() => ({
|
|
13
|
-
create:
|
|
14
|
-
update:
|
|
15
|
-
}), [
|
|
12
|
+
create: e.createMutationFn("cron_schedule_form_create", ({ post: e }) => (n) => e(r, { data: i(c, "create", t(n)) })),
|
|
13
|
+
update: e.createMutationFn("cron_schedule_form_update", ({ post: e }) => (n) => e(r, { data: i(c, "update", t(n)) }))
|
|
14
|
+
}), [e]);
|
|
16
15
|
}
|
|
17
16
|
function p() {
|
|
18
|
-
let
|
|
19
|
-
queryFn:
|
|
20
|
-
queryKey: [
|
|
17
|
+
let t = e(), { data: n, isLoading: r } = o({
|
|
18
|
+
queryFn: t.listJobs,
|
|
19
|
+
queryKey: [t.listJobs.key]
|
|
21
20
|
});
|
|
22
21
|
return s(() => ({
|
|
23
22
|
options: (n ?? []).map((e) => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { useScheduleApi as e } from "../../api/schedule-api.js";
|
|
3
3
|
import { CRON_PERMISSIONS as t } from "../../permissions.js";
|
|
4
4
|
import { scheduleColumns as n } from "./columns.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { TIMEOUT_UNITS as e, combineDurationMs as t, splitDurationMs as n } from "../../components/duration.js";
|
|
3
3
|
import { DEFAULT_TRIGGER as r, triggerFormToParams as i, triggerToFormValues as a } from "../../components/trigger-editor/helpers.js";
|
|
4
4
|
//#region src/pages/schedule-page/model.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { TRIGGER_KIND_OPTIONS as e } from "../../components/status/labels.js";
|
|
3
3
|
import { useJobNames as t } from "./helpers.js";
|
|
4
4
|
import { Col as n, Row as r, filterOptionByLabel as i, useFormContext as a } from "@vef-framework-react/components";
|
package/dist/es/permissions.js
CHANGED
package/dist/es/types/enums.js
CHANGED
package/dist/es/types/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.
|
|
1
|
+
/*! @vef-framework-react/cron v2.37.0 made by Venus | 2026-12-01T15:20:31.273Z */
|
|
2
2
|
import { CONCURRENCY_POLICIES as e, MISFIRE_POLICIES as t, RUN_STATUSES as n, TRIGGER_KINDS as r } from "./enums.js";
|
|
3
3
|
export { e as CONCURRENCY_POLICIES, t as MISFIRE_POLICIES, n as RUN_STATUSES, r as TRIGGER_KINDS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vef-framework-react/cron",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Durable cron schedule management pages for VEF framework",
|
|
6
6
|
"keywords": [
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@emotion/react": "^11.14.0",
|
|
48
48
|
"dayjs": "^1.11.0",
|
|
49
49
|
"lucide-react": "^1.23.0",
|
|
50
|
-
"@vef-framework-react/
|
|
51
|
-
"@vef-framework-react/
|
|
52
|
-
"@vef-framework-react/
|
|
50
|
+
"@vef-framework-react/core": "2.37.0",
|
|
51
|
+
"@vef-framework-react/components": "2.37.0",
|
|
52
|
+
"@vef-framework-react/shared": "2.37.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"react": "^19.2.7"
|
package/dist/cjs/api/query.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e=require("@vef-framework-react/components");var t=`/api`;function n(t){let{[e.SYMBOL_PAGINATION]:n,...r}=t;return{params:r,pagination:n}}function r(e){let{params:t,pagination:r}=n(e);return{...t,...r}}exports.API_PATH=t,exports.splitQueryParams=n,exports.toCrudReadMeta=r;
|
package/dist/es/api/query.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/*! @vef-framework-react/cron v2.36.0 made by Venus | 2026-11-30T05:48:08.646Z */
|
|
2
|
-
import { SYMBOL_PAGINATION as e } from "@vef-framework-react/components";
|
|
3
|
-
//#region src/api/query.ts
|
|
4
|
-
var t = "/api";
|
|
5
|
-
function n(t) {
|
|
6
|
-
let { [e]: n, ...r } = t;
|
|
7
|
-
return {
|
|
8
|
-
params: r,
|
|
9
|
-
pagination: n
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function r(e) {
|
|
13
|
-
let { params: t, pagination: r } = n(e);
|
|
14
|
-
return {
|
|
15
|
-
...t,
|
|
16
|
-
...r
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { t as API_PATH, n as splitQueryParams, r as toCrudReadMeta };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { PaginatedQueryParams, SYMBOL_PAGINATION } from '@vef-framework-react/components';
|
|
2
|
-
import { PaginationParams } from '@vef-framework-react/core';
|
|
3
|
-
import { AnyObject } from '@vef-framework-react/shared';
|
|
4
|
-
/**
|
|
5
|
-
* The framework RPC endpoint every management call posts to.
|
|
6
|
-
*/
|
|
7
|
-
export declare const API_PATH = "/api";
|
|
8
|
-
/**
|
|
9
|
-
* Split ProTable's symbol-keyed query params into the plain search params and
|
|
10
|
-
* the pagination metadata. The sort symbol is left on `params`; JSON
|
|
11
|
-
* serialization drops it, so it never reaches the wire.
|
|
12
|
-
*/
|
|
13
|
-
export declare function splitQueryParams<TSearch extends AnyObject>(queryParams: PaginatedQueryParams<TSearch>): {
|
|
14
|
-
params: Omit<PaginatedQueryParams<TSearch>, typeof SYMBOL_PAGINATION>;
|
|
15
|
-
pagination: PaginationParams | undefined;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Fold ProTable's symbol-keyed query params into the `meta` of a CRUD read
|
|
19
|
-
* (`find_page`, `find_all`, …). The backend decodes a CRUD search struct
|
|
20
|
-
* (`crud.Sortable`) from the request's `meta`, beside `page` / `size`, and
|
|
21
|
-
* never from `params`, where the filters would be dropped. The sort symbol is
|
|
22
|
-
* left on the spread copy; JSON serialization drops it.
|
|
23
|
-
*/
|
|
24
|
-
export declare function toCrudReadMeta<TSearch extends AnyObject>(queryParams: PaginatedQueryParams<TSearch>): Omit<PaginatedQueryParams<TSearch>, typeof SYMBOL_PAGINATION> & Partial<PaginationParams>;
|