@cronvello/sdk 0.1.0 → 0.1.2
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/CHANGELOG.md +44 -0
- package/README.md +162 -11
- package/dist/cli.cjs +877 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.js +874 -0
- package/dist/cli.js.map +1 -0
- package/dist/{dispatch-handler-Bnda1Ekq.d.cts → dispatch-handler-BNy-H5Nr.d.cts} +41 -2
- package/dist/{dispatch-handler-Bnda1Ekq.d.ts → dispatch-handler-BNy-H5Nr.d.ts} +41 -2
- package/dist/express.d.cts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/index.cjs +385 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +108 -3
- package/dist/index.d.ts +108 -3
- package/dist/index.js +372 -41
- package/dist/index.js.map +1 -1
- package/dist/next.d.cts +1 -1
- package/dist/next.d.ts +1 -1
- package/package.json +39 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Transport, P as PublicJob, J as JobCreateBody, a as JobUpdateBody, b as PublicTask, c as TaskCreateBody, A as AccountTasksQuery, d as TasksPage, e as TaskUpdateBody, R as RunNowResult, f as RunsQuery, g as RunsPage, h as AccountRunsQuery, i as PublicRun, M as MeResponse, U as UsageResponse, F as FetchLike, j as RegistryReconcileRequest, k as RegistryReconcileResponse, l as ResolvedJob, S as SyncOptions, m as ReconcileResult, D as DispatchRequest, n as DispatchResponse, C as CronvelloAppConfig } from './dispatch-handler-
|
|
2
|
-
export { o as CallbackStatus, p as
|
|
1
|
+
import { T as Transport, P as PublicJob, J as JobCreateBody, a as JobUpdateBody, b as PublicTask, c as TaskCreateBody, A as AccountTasksQuery, d as TasksPage, e as TaskUpdateBody, R as RunNowResult, f as RunsQuery, g as RunsPage, h as AccountRunsQuery, i as PublicRun, M as MeResponse, U as UsageResponse, F as FetchLike, j as RegistryReconcileRequest, k as RegistryReconcileResponse, l as ResolvedJob, S as SyncOptions, m as ReconcileResult, D as DispatchRequest, n as DispatchResponse, C as CronvelloAppConfig } from './dispatch-handler-BNy-H5Nr.cjs';
|
|
2
|
+
export { o as CallbackStatus, p as CronvelloHooks, q as CronvelloJobConfig, r as CronvelloJobConfigWithKey, s as CronvelloJobContext, t as CronvelloJobHandler, u as CronvelloJobsInput, v as CronvelloLogger, w as CronvelloRunSource, E as ExecutionMode, H as HttpMethod, x as JobStatus, y as Pagination, z as ReconcileTaskChange, B as RegistryReconcileChange, G as RegistryTaskInput, I as RunStatus, K as RunType, L as SuccessCriteria, N as Urgency } from './dispatch-handler-BNy-H5Nr.cjs';
|
|
3
3
|
import { ExpressDispatchHandler } from './express.cjs';
|
|
4
4
|
import { NextRouteHandler } from './next.cjs';
|
|
5
5
|
|
|
@@ -143,6 +143,11 @@ interface CronvelloApp {
|
|
|
143
143
|
sync(options?: SyncOptions): Promise<ReconcileResult>;
|
|
144
144
|
/** Trigger one job immediately via Cronvello (manual run). Requires a prior `sync()`. */
|
|
145
145
|
run(key: string): Promise<RunNowResult>;
|
|
146
|
+
/**
|
|
147
|
+
* Run a job's handler locally, in-process — no HTTP round-trip, no Cronvello, no deploy.
|
|
148
|
+
* Perfect for unit tests and `npx cronvello dev`. Lifecycle hooks fire (`source: "local"`).
|
|
149
|
+
*/
|
|
150
|
+
trigger(key: string, payload?: Record<string, unknown>): Promise<unknown>;
|
|
146
151
|
/** Framework-neutral dispatch entry — used by the adapters. */
|
|
147
152
|
handle(req: DispatchRequest): Promise<DispatchResponse>;
|
|
148
153
|
/** Express/Connect request handler for the dispatch endpoint. */
|
|
@@ -152,7 +157,107 @@ interface CronvelloApp {
|
|
|
152
157
|
/** The registry keys, for diagnostics. */
|
|
153
158
|
keys(): string[];
|
|
154
159
|
}
|
|
160
|
+
/** Config for `defineCronvello.fromEnv` — the three secret fields become optional (read from env). */
|
|
161
|
+
type CronvelloEnvConfig = Omit<CronvelloAppConfig, "apiKey" | "dispatchSecret" | "appUrl"> & Partial<Pick<CronvelloAppConfig, "apiKey" | "dispatchSecret" | "appUrl">>;
|
|
155
162
|
declare function defineCronvello(config: CronvelloAppConfig): CronvelloApp;
|
|
163
|
+
declare namespace defineCronvello {
|
|
164
|
+
/**
|
|
165
|
+
* Build an app from environment variables, so you don't repeat the same reads in every service.
|
|
166
|
+
* Reads `CRONVELLO_API_KEY`, `CRONVELLO_DISPATCH_SECRET`, `CRONVELLO_APP_URL` (or `PUBLIC_URL`),
|
|
167
|
+
* and optionally `CRONVELLO_API_URL` (base URL). Anything passed explicitly overrides the env.
|
|
168
|
+
*
|
|
169
|
+
* export const cronvello = defineCronvello.fromEnv({ appName: "my-app", jobs: { … } });
|
|
170
|
+
*/
|
|
171
|
+
function fromEnv(config: CronvelloEnvConfig, env?: Record<string, string | undefined>): CronvelloApp;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Render a `ReconcileResult` as a clean, human-readable summary — for boot logs, CI output, and
|
|
176
|
+
* `npx cronvello sync`. Zero-dependency ANSI colouring, opt-in via `color: true`.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
interface FormatOptions {
|
|
180
|
+
/** Emit ANSI colour codes (default false — safe for log files). */
|
|
181
|
+
color?: boolean;
|
|
182
|
+
/** Label the summary as a preview ("would …") rather than an applied change. */
|
|
183
|
+
dryRun?: boolean;
|
|
184
|
+
}
|
|
185
|
+
/** Build the multi-line summary string. */
|
|
186
|
+
declare function formatSyncResult(result: ReconcileResult, options?: FormatOptions): string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Human-friendly schedule builders. Each returns a plain cron string (so it drops straight into a
|
|
190
|
+
* job's `schedule`), validated on the way out — a bad argument throws immediately with a clear
|
|
191
|
+
* message instead of silently producing a wrong schedule.
|
|
192
|
+
*
|
|
193
|
+
* import { every, daily, weekly, hourly, cron } from "@cronvello/sdk";
|
|
194
|
+
*
|
|
195
|
+
* jobs: {
|
|
196
|
+
* "digest": { schedule: daily("08:00"), handler },
|
|
197
|
+
* "poll": { schedule: every("15m"), handler },
|
|
198
|
+
* "report": { schedule: weekly("mon", "09:00"),handler },
|
|
199
|
+
* "beat": { schedule: hourly(), handler },
|
|
200
|
+
* "custom": { schedule: cron("0 0 1 * *"), handler },
|
|
201
|
+
* }
|
|
202
|
+
*/
|
|
203
|
+
type Weekday = "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
204
|
+
/** Validate a raw cron expression and return it unchanged. The explicit escape hatch. */
|
|
205
|
+
declare function cron(expression: string): string;
|
|
206
|
+
/**
|
|
207
|
+
* A recurring interval expressed as `<n><unit>` where unit is `s`, `m`, `h`, or `d`.
|
|
208
|
+
* every("30s") → every 30 seconds every("15m") → every 15 minutes
|
|
209
|
+
* every("2h") → every 2 hours every("1d") → daily at midnight
|
|
210
|
+
* Note: sub-hour intervals that don't divide evenly (e.g. 7m) restart each hour, matching cron.
|
|
211
|
+
*/
|
|
212
|
+
declare function every(interval: string): string;
|
|
213
|
+
/** Every N minutes (1–59). */
|
|
214
|
+
declare function everyMinutes(n: number): string;
|
|
215
|
+
/** Every N hours (1–23). */
|
|
216
|
+
declare function everyHours(n: number): string;
|
|
217
|
+
/** Once an hour, at the given minute past (default :00). */
|
|
218
|
+
declare function hourly(minute?: number): string;
|
|
219
|
+
/** Once a day at "HH:MM" (24h, default midnight). */
|
|
220
|
+
declare function daily(time?: string): string;
|
|
221
|
+
/** Once a week on `day` at "HH:MM". */
|
|
222
|
+
declare function weekly(day: Weekday, time?: string): string;
|
|
223
|
+
/** Once a month on `dayOfMonth` (1–31) at "HH:MM". */
|
|
224
|
+
declare function monthly(dayOfMonth: number, time?: string): string;
|
|
225
|
+
/** Monday–Friday at "HH:MM". */
|
|
226
|
+
declare function weekdays(time?: string): string;
|
|
227
|
+
/** Saturday & Sunday at "HH:MM". */
|
|
228
|
+
declare function weekends(time?: string): string;
|
|
229
|
+
/** Namespace form for discoverability: `import { schedule } from "@cronvello/sdk"`. */
|
|
230
|
+
declare const schedule: {
|
|
231
|
+
cron: typeof cron;
|
|
232
|
+
every: typeof every;
|
|
233
|
+
everyMinutes: typeof everyMinutes;
|
|
234
|
+
everyHours: typeof everyHours;
|
|
235
|
+
hourly: typeof hourly;
|
|
236
|
+
daily: typeof daily;
|
|
237
|
+
weekly: typeof weekly;
|
|
238
|
+
monthly: typeof monthly;
|
|
239
|
+
weekdays: typeof weekdays;
|
|
240
|
+
weekends: typeof weekends;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Client-side cron + IANA-timezone validation.
|
|
245
|
+
*
|
|
246
|
+
* The goal is to catch *typos* at define/sync time with a clear message — not to re-implement the
|
|
247
|
+
* server's scheduler. So the validator is deliberately permissive: it accepts the standard 5-field
|
|
248
|
+
* crontab syntax (and an optional leading seconds field), the common `@macros`, names for months
|
|
249
|
+
* and weekdays, and step/range/list combinations. Anything it cannot confidently reject is allowed
|
|
250
|
+
* through, so a valid-but-unusual expression never blocks a deploy.
|
|
251
|
+
*/
|
|
252
|
+
interface CronValidation {
|
|
253
|
+
valid: boolean;
|
|
254
|
+
/** Human-readable reason when invalid. */
|
|
255
|
+
error?: string;
|
|
256
|
+
}
|
|
257
|
+
/** Validate a cron expression. Returns `{ valid, error? }` rather than throwing. */
|
|
258
|
+
declare function validateCron(expr: string): CronValidation;
|
|
259
|
+
/** True if `tz` is a valid IANA timezone (uses the runtime's Intl database). "UTC" always passes. */
|
|
260
|
+
declare function isValidTimeZone(tz: string): boolean;
|
|
156
261
|
|
|
157
262
|
/**
|
|
158
263
|
* Error taxonomy for the SDK. Everything thrown by the public surface is a
|
|
@@ -211,4 +316,4 @@ declare class CronvelloConfigError extends CronvelloError {
|
|
|
211
316
|
*/
|
|
212
317
|
declare function generateDispatchSecret(bytes?: number): string;
|
|
213
318
|
|
|
214
|
-
export { AccountRunsQuery, AccountTasksQuery, CRONVELLO_DEFAULT_BASE_URL, CronvelloApiError, type CronvelloApp, CronvelloAppConfig, CronvelloClient, type CronvelloClientOptions, CronvelloConfigError, CronvelloError, CronvelloNetworkError, DispatchRequest, DispatchResponse, JobCreateBody, JobUpdateBody, MeResponse, PublicJob, PublicRun, PublicTask, ReconcileResult, RegistryReconcileRequest, RegistryReconcileResponse, RunNowResult, RunsPage, RunsQuery, SyncOptions, TaskCreateBody, TaskUpdateBody, TasksPage, UsageResponse, defineCronvello, generateDispatchSecret };
|
|
319
|
+
export { AccountRunsQuery, AccountTasksQuery, CRONVELLO_DEFAULT_BASE_URL, type CronValidation, CronvelloApiError, type CronvelloApp, CronvelloAppConfig, CronvelloClient, type CronvelloClientOptions, CronvelloConfigError, type CronvelloEnvConfig, CronvelloError, CronvelloNetworkError, DispatchRequest, DispatchResponse, type FormatOptions, JobCreateBody, JobUpdateBody, MeResponse, PublicJob, PublicRun, PublicTask, ReconcileResult, RegistryReconcileRequest, RegistryReconcileResponse, RunNowResult, RunsPage, RunsQuery, SyncOptions, TaskCreateBody, TaskUpdateBody, TasksPage, UsageResponse, type Weekday, cron, daily, defineCronvello, every, everyHours, everyMinutes, formatSyncResult, generateDispatchSecret, hourly, isValidTimeZone, monthly, schedule, validateCron, weekdays, weekends, weekly };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Transport, P as PublicJob, J as JobCreateBody, a as JobUpdateBody, b as PublicTask, c as TaskCreateBody, A as AccountTasksQuery, d as TasksPage, e as TaskUpdateBody, R as RunNowResult, f as RunsQuery, g as RunsPage, h as AccountRunsQuery, i as PublicRun, M as MeResponse, U as UsageResponse, F as FetchLike, j as RegistryReconcileRequest, k as RegistryReconcileResponse, l as ResolvedJob, S as SyncOptions, m as ReconcileResult, D as DispatchRequest, n as DispatchResponse, C as CronvelloAppConfig } from './dispatch-handler-
|
|
2
|
-
export { o as CallbackStatus, p as
|
|
1
|
+
import { T as Transport, P as PublicJob, J as JobCreateBody, a as JobUpdateBody, b as PublicTask, c as TaskCreateBody, A as AccountTasksQuery, d as TasksPage, e as TaskUpdateBody, R as RunNowResult, f as RunsQuery, g as RunsPage, h as AccountRunsQuery, i as PublicRun, M as MeResponse, U as UsageResponse, F as FetchLike, j as RegistryReconcileRequest, k as RegistryReconcileResponse, l as ResolvedJob, S as SyncOptions, m as ReconcileResult, D as DispatchRequest, n as DispatchResponse, C as CronvelloAppConfig } from './dispatch-handler-BNy-H5Nr.js';
|
|
2
|
+
export { o as CallbackStatus, p as CronvelloHooks, q as CronvelloJobConfig, r as CronvelloJobConfigWithKey, s as CronvelloJobContext, t as CronvelloJobHandler, u as CronvelloJobsInput, v as CronvelloLogger, w as CronvelloRunSource, E as ExecutionMode, H as HttpMethod, x as JobStatus, y as Pagination, z as ReconcileTaskChange, B as RegistryReconcileChange, G as RegistryTaskInput, I as RunStatus, K as RunType, L as SuccessCriteria, N as Urgency } from './dispatch-handler-BNy-H5Nr.js';
|
|
3
3
|
import { ExpressDispatchHandler } from './express.js';
|
|
4
4
|
import { NextRouteHandler } from './next.js';
|
|
5
5
|
|
|
@@ -143,6 +143,11 @@ interface CronvelloApp {
|
|
|
143
143
|
sync(options?: SyncOptions): Promise<ReconcileResult>;
|
|
144
144
|
/** Trigger one job immediately via Cronvello (manual run). Requires a prior `sync()`. */
|
|
145
145
|
run(key: string): Promise<RunNowResult>;
|
|
146
|
+
/**
|
|
147
|
+
* Run a job's handler locally, in-process — no HTTP round-trip, no Cronvello, no deploy.
|
|
148
|
+
* Perfect for unit tests and `npx cronvello dev`. Lifecycle hooks fire (`source: "local"`).
|
|
149
|
+
*/
|
|
150
|
+
trigger(key: string, payload?: Record<string, unknown>): Promise<unknown>;
|
|
146
151
|
/** Framework-neutral dispatch entry — used by the adapters. */
|
|
147
152
|
handle(req: DispatchRequest): Promise<DispatchResponse>;
|
|
148
153
|
/** Express/Connect request handler for the dispatch endpoint. */
|
|
@@ -152,7 +157,107 @@ interface CronvelloApp {
|
|
|
152
157
|
/** The registry keys, for diagnostics. */
|
|
153
158
|
keys(): string[];
|
|
154
159
|
}
|
|
160
|
+
/** Config for `defineCronvello.fromEnv` — the three secret fields become optional (read from env). */
|
|
161
|
+
type CronvelloEnvConfig = Omit<CronvelloAppConfig, "apiKey" | "dispatchSecret" | "appUrl"> & Partial<Pick<CronvelloAppConfig, "apiKey" | "dispatchSecret" | "appUrl">>;
|
|
155
162
|
declare function defineCronvello(config: CronvelloAppConfig): CronvelloApp;
|
|
163
|
+
declare namespace defineCronvello {
|
|
164
|
+
/**
|
|
165
|
+
* Build an app from environment variables, so you don't repeat the same reads in every service.
|
|
166
|
+
* Reads `CRONVELLO_API_KEY`, `CRONVELLO_DISPATCH_SECRET`, `CRONVELLO_APP_URL` (or `PUBLIC_URL`),
|
|
167
|
+
* and optionally `CRONVELLO_API_URL` (base URL). Anything passed explicitly overrides the env.
|
|
168
|
+
*
|
|
169
|
+
* export const cronvello = defineCronvello.fromEnv({ appName: "my-app", jobs: { … } });
|
|
170
|
+
*/
|
|
171
|
+
function fromEnv(config: CronvelloEnvConfig, env?: Record<string, string | undefined>): CronvelloApp;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Render a `ReconcileResult` as a clean, human-readable summary — for boot logs, CI output, and
|
|
176
|
+
* `npx cronvello sync`. Zero-dependency ANSI colouring, opt-in via `color: true`.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
interface FormatOptions {
|
|
180
|
+
/** Emit ANSI colour codes (default false — safe for log files). */
|
|
181
|
+
color?: boolean;
|
|
182
|
+
/** Label the summary as a preview ("would …") rather than an applied change. */
|
|
183
|
+
dryRun?: boolean;
|
|
184
|
+
}
|
|
185
|
+
/** Build the multi-line summary string. */
|
|
186
|
+
declare function formatSyncResult(result: ReconcileResult, options?: FormatOptions): string;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Human-friendly schedule builders. Each returns a plain cron string (so it drops straight into a
|
|
190
|
+
* job's `schedule`), validated on the way out — a bad argument throws immediately with a clear
|
|
191
|
+
* message instead of silently producing a wrong schedule.
|
|
192
|
+
*
|
|
193
|
+
* import { every, daily, weekly, hourly, cron } from "@cronvello/sdk";
|
|
194
|
+
*
|
|
195
|
+
* jobs: {
|
|
196
|
+
* "digest": { schedule: daily("08:00"), handler },
|
|
197
|
+
* "poll": { schedule: every("15m"), handler },
|
|
198
|
+
* "report": { schedule: weekly("mon", "09:00"),handler },
|
|
199
|
+
* "beat": { schedule: hourly(), handler },
|
|
200
|
+
* "custom": { schedule: cron("0 0 1 * *"), handler },
|
|
201
|
+
* }
|
|
202
|
+
*/
|
|
203
|
+
type Weekday = "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
204
|
+
/** Validate a raw cron expression and return it unchanged. The explicit escape hatch. */
|
|
205
|
+
declare function cron(expression: string): string;
|
|
206
|
+
/**
|
|
207
|
+
* A recurring interval expressed as `<n><unit>` where unit is `s`, `m`, `h`, or `d`.
|
|
208
|
+
* every("30s") → every 30 seconds every("15m") → every 15 minutes
|
|
209
|
+
* every("2h") → every 2 hours every("1d") → daily at midnight
|
|
210
|
+
* Note: sub-hour intervals that don't divide evenly (e.g. 7m) restart each hour, matching cron.
|
|
211
|
+
*/
|
|
212
|
+
declare function every(interval: string): string;
|
|
213
|
+
/** Every N minutes (1–59). */
|
|
214
|
+
declare function everyMinutes(n: number): string;
|
|
215
|
+
/** Every N hours (1–23). */
|
|
216
|
+
declare function everyHours(n: number): string;
|
|
217
|
+
/** Once an hour, at the given minute past (default :00). */
|
|
218
|
+
declare function hourly(minute?: number): string;
|
|
219
|
+
/** Once a day at "HH:MM" (24h, default midnight). */
|
|
220
|
+
declare function daily(time?: string): string;
|
|
221
|
+
/** Once a week on `day` at "HH:MM". */
|
|
222
|
+
declare function weekly(day: Weekday, time?: string): string;
|
|
223
|
+
/** Once a month on `dayOfMonth` (1–31) at "HH:MM". */
|
|
224
|
+
declare function monthly(dayOfMonth: number, time?: string): string;
|
|
225
|
+
/** Monday–Friday at "HH:MM". */
|
|
226
|
+
declare function weekdays(time?: string): string;
|
|
227
|
+
/** Saturday & Sunday at "HH:MM". */
|
|
228
|
+
declare function weekends(time?: string): string;
|
|
229
|
+
/** Namespace form for discoverability: `import { schedule } from "@cronvello/sdk"`. */
|
|
230
|
+
declare const schedule: {
|
|
231
|
+
cron: typeof cron;
|
|
232
|
+
every: typeof every;
|
|
233
|
+
everyMinutes: typeof everyMinutes;
|
|
234
|
+
everyHours: typeof everyHours;
|
|
235
|
+
hourly: typeof hourly;
|
|
236
|
+
daily: typeof daily;
|
|
237
|
+
weekly: typeof weekly;
|
|
238
|
+
monthly: typeof monthly;
|
|
239
|
+
weekdays: typeof weekdays;
|
|
240
|
+
weekends: typeof weekends;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Client-side cron + IANA-timezone validation.
|
|
245
|
+
*
|
|
246
|
+
* The goal is to catch *typos* at define/sync time with a clear message — not to re-implement the
|
|
247
|
+
* server's scheduler. So the validator is deliberately permissive: it accepts the standard 5-field
|
|
248
|
+
* crontab syntax (and an optional leading seconds field), the common `@macros`, names for months
|
|
249
|
+
* and weekdays, and step/range/list combinations. Anything it cannot confidently reject is allowed
|
|
250
|
+
* through, so a valid-but-unusual expression never blocks a deploy.
|
|
251
|
+
*/
|
|
252
|
+
interface CronValidation {
|
|
253
|
+
valid: boolean;
|
|
254
|
+
/** Human-readable reason when invalid. */
|
|
255
|
+
error?: string;
|
|
256
|
+
}
|
|
257
|
+
/** Validate a cron expression. Returns `{ valid, error? }` rather than throwing. */
|
|
258
|
+
declare function validateCron(expr: string): CronValidation;
|
|
259
|
+
/** True if `tz` is a valid IANA timezone (uses the runtime's Intl database). "UTC" always passes. */
|
|
260
|
+
declare function isValidTimeZone(tz: string): boolean;
|
|
156
261
|
|
|
157
262
|
/**
|
|
158
263
|
* Error taxonomy for the SDK. Everything thrown by the public surface is a
|
|
@@ -211,4 +316,4 @@ declare class CronvelloConfigError extends CronvelloError {
|
|
|
211
316
|
*/
|
|
212
317
|
declare function generateDispatchSecret(bytes?: number): string;
|
|
213
318
|
|
|
214
|
-
export { AccountRunsQuery, AccountTasksQuery, CRONVELLO_DEFAULT_BASE_URL, CronvelloApiError, type CronvelloApp, CronvelloAppConfig, CronvelloClient, type CronvelloClientOptions, CronvelloConfigError, CronvelloError, CronvelloNetworkError, DispatchRequest, DispatchResponse, JobCreateBody, JobUpdateBody, MeResponse, PublicJob, PublicRun, PublicTask, ReconcileResult, RegistryReconcileRequest, RegistryReconcileResponse, RunNowResult, RunsPage, RunsQuery, SyncOptions, TaskCreateBody, TaskUpdateBody, TasksPage, UsageResponse, defineCronvello, generateDispatchSecret };
|
|
319
|
+
export { AccountRunsQuery, AccountTasksQuery, CRONVELLO_DEFAULT_BASE_URL, type CronValidation, CronvelloApiError, type CronvelloApp, CronvelloAppConfig, CronvelloClient, type CronvelloClientOptions, CronvelloConfigError, type CronvelloEnvConfig, CronvelloError, CronvelloNetworkError, DispatchRequest, DispatchResponse, type FormatOptions, JobCreateBody, JobUpdateBody, MeResponse, PublicJob, PublicRun, PublicTask, ReconcileResult, RegistryReconcileRequest, RegistryReconcileResponse, RunNowResult, RunsPage, RunsQuery, SyncOptions, TaskCreateBody, TaskUpdateBody, TasksPage, UsageResponse, type Weekday, cron, daily, defineCronvello, every, everyHours, everyMinutes, formatSyncResult, generateDispatchSecret, hourly, isValidTimeZone, monthly, schedule, validateCron, weekdays, weekends, weekly };
|