runlater-js 0.8.0 → 0.9.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/index.d.mts CHANGED
@@ -50,7 +50,7 @@ interface CronResponse {
50
50
  name: string;
51
51
  url: string;
52
52
  method: string;
53
- cron_expression: string;
53
+ cron: string;
54
54
  enabled: boolean;
55
55
  next_run_at: string | null;
56
56
  inserted_at: string;
@@ -64,8 +64,8 @@ interface Task {
64
64
  headers: Record<string, string>;
65
65
  body: string | null;
66
66
  schedule_type: string;
67
- cron_expression: string | null;
68
- scheduled_at: string | null;
67
+ cron: string | null;
68
+ run_at: string | null;
69
69
  enabled: boolean;
70
70
  timeout_ms: number;
71
71
  retry_attempts: number;
@@ -154,8 +154,8 @@ interface UpdateTaskOptions {
154
154
  method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
155
155
  headers?: Record<string, string>;
156
156
  body?: string;
157
- cron_expression?: string;
158
- scheduled_at?: string;
157
+ cron?: string;
158
+ run_at?: string;
159
159
  timeout_ms?: number;
160
160
  retry_attempts?: number;
161
161
  callback_url?: string;
package/dist/index.d.ts CHANGED
@@ -50,7 +50,7 @@ interface CronResponse {
50
50
  name: string;
51
51
  url: string;
52
52
  method: string;
53
- cron_expression: string;
53
+ cron: string;
54
54
  enabled: boolean;
55
55
  next_run_at: string | null;
56
56
  inserted_at: string;
@@ -64,8 +64,8 @@ interface Task {
64
64
  headers: Record<string, string>;
65
65
  body: string | null;
66
66
  schedule_type: string;
67
- cron_expression: string | null;
68
- scheduled_at: string | null;
67
+ cron: string | null;
68
+ run_at: string | null;
69
69
  enabled: boolean;
70
70
  timeout_ms: number;
71
71
  retry_attempts: number;
@@ -154,8 +154,8 @@ interface UpdateTaskOptions {
154
154
  method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
155
155
  headers?: Record<string, string>;
156
156
  body?: string;
157
- cron_expression?: string;
158
- scheduled_at?: string;
157
+ cron?: string;
158
+ run_at?: string;
159
159
  timeout_ms?: number;
160
160
  retry_attempts?: number;
161
161
  callback_url?: string;
package/dist/index.js CHANGED
@@ -168,8 +168,7 @@ var Runlater = class {
168
168
  // name defaults to url if not in CronOptions
169
169
  url: t.url,
170
170
  method: t.method ?? "GET",
171
- schedule_type: "cron",
172
- cron_expression: t.schedule,
171
+ cron: t.schedule,
173
172
  headers: t.headers,
174
173
  body: t.body != null ? JSON.stringify(t.body) : void 0,
175
174
  timeout_ms: t.timeout,
package/dist/index.mjs CHANGED
@@ -141,8 +141,7 @@ var Runlater = class {
141
141
  // name defaults to url if not in CronOptions
142
142
  url: t.url,
143
143
  method: t.method ?? "GET",
144
- schedule_type: "cron",
145
- cron_expression: t.schedule,
144
+ cron: t.schedule,
146
145
  headers: t.headers,
147
146
  body: t.body != null ? JSON.stringify(t.body) : void 0,
148
147
  timeout_ms: t.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runlater-js",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Delayed tasks, cron jobs, and reliable webhooks. No infrastructure required.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",