runlater-js 0.5.0 → 0.6.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 +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ interface SendOptions {
|
|
|
13
13
|
idempotencyKey?: string;
|
|
14
14
|
on_failure_url?: string;
|
|
15
15
|
on_recovery_url?: string;
|
|
16
|
+
script?: string;
|
|
16
17
|
}
|
|
17
18
|
interface DelayOptions extends SendOptions {
|
|
18
19
|
delay: string | number;
|
|
@@ -33,6 +34,7 @@ interface CronOptions {
|
|
|
33
34
|
enabled?: boolean;
|
|
34
35
|
on_failure_url?: string;
|
|
35
36
|
on_recovery_url?: string;
|
|
37
|
+
script?: string;
|
|
36
38
|
}
|
|
37
39
|
interface TaskResponse {
|
|
38
40
|
task_id: string;
|
|
@@ -70,6 +72,7 @@ interface Task {
|
|
|
70
72
|
notify_on_recovery: boolean | null;
|
|
71
73
|
on_failure_url: string | null;
|
|
72
74
|
on_recovery_url: string | null;
|
|
75
|
+
script: string | null;
|
|
73
76
|
next_run_at: string | null;
|
|
74
77
|
inserted_at: string;
|
|
75
78
|
updated_at: string;
|
|
@@ -84,6 +87,7 @@ interface Execution {
|
|
|
84
87
|
duration_ms: number | null;
|
|
85
88
|
error_message: string | null;
|
|
86
89
|
attempt: number;
|
|
90
|
+
script_logs: string[];
|
|
87
91
|
}
|
|
88
92
|
interface ListOptions {
|
|
89
93
|
queue?: string;
|
|
@@ -160,6 +164,7 @@ interface UpdateTaskOptions {
|
|
|
160
164
|
on_recovery_url?: string;
|
|
161
165
|
expected_status_codes?: string;
|
|
162
166
|
expected_body_pattern?: string;
|
|
167
|
+
script?: string | null;
|
|
163
168
|
}
|
|
164
169
|
interface CreateMonitorOptions {
|
|
165
170
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface SendOptions {
|
|
|
13
13
|
idempotencyKey?: string;
|
|
14
14
|
on_failure_url?: string;
|
|
15
15
|
on_recovery_url?: string;
|
|
16
|
+
script?: string;
|
|
16
17
|
}
|
|
17
18
|
interface DelayOptions extends SendOptions {
|
|
18
19
|
delay: string | number;
|
|
@@ -33,6 +34,7 @@ interface CronOptions {
|
|
|
33
34
|
enabled?: boolean;
|
|
34
35
|
on_failure_url?: string;
|
|
35
36
|
on_recovery_url?: string;
|
|
37
|
+
script?: string;
|
|
36
38
|
}
|
|
37
39
|
interface TaskResponse {
|
|
38
40
|
task_id: string;
|
|
@@ -70,6 +72,7 @@ interface Task {
|
|
|
70
72
|
notify_on_recovery: boolean | null;
|
|
71
73
|
on_failure_url: string | null;
|
|
72
74
|
on_recovery_url: string | null;
|
|
75
|
+
script: string | null;
|
|
73
76
|
next_run_at: string | null;
|
|
74
77
|
inserted_at: string;
|
|
75
78
|
updated_at: string;
|
|
@@ -84,6 +87,7 @@ interface Execution {
|
|
|
84
87
|
duration_ms: number | null;
|
|
85
88
|
error_message: string | null;
|
|
86
89
|
attempt: number;
|
|
90
|
+
script_logs: string[];
|
|
87
91
|
}
|
|
88
92
|
interface ListOptions {
|
|
89
93
|
queue?: string;
|
|
@@ -160,6 +164,7 @@ interface UpdateTaskOptions {
|
|
|
160
164
|
on_recovery_url?: string;
|
|
161
165
|
expected_status_codes?: string;
|
|
162
166
|
expected_body_pattern?: string;
|
|
167
|
+
script?: string | null;
|
|
163
168
|
}
|
|
164
169
|
interface CreateMonitorOptions {
|
|
165
170
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,8 @@ var Runlater = class {
|
|
|
142
142
|
retry_attempts: options.retries,
|
|
143
143
|
queue: options.queue,
|
|
144
144
|
callback_url: options.callback,
|
|
145
|
-
enabled: options.enabled
|
|
145
|
+
enabled: options.enabled,
|
|
146
|
+
script: options.script
|
|
146
147
|
}
|
|
147
148
|
});
|
|
148
149
|
return res.data;
|
|
@@ -175,7 +176,8 @@ var Runlater = class {
|
|
|
175
176
|
retry_attempts: t.retries,
|
|
176
177
|
queue: t.queue,
|
|
177
178
|
callback_url: t.callback,
|
|
178
|
-
enabled: t.enabled
|
|
179
|
+
enabled: t.enabled,
|
|
180
|
+
script: t.script
|
|
179
181
|
}));
|
|
180
182
|
}
|
|
181
183
|
if (options.monitors) {
|
|
@@ -208,7 +210,8 @@ var Runlater = class {
|
|
|
208
210
|
timeout_ms: options.timeout,
|
|
209
211
|
retry_attempts: options.retries,
|
|
210
212
|
queue: options.queue,
|
|
211
|
-
callback_url: options.callback
|
|
213
|
+
callback_url: options.callback,
|
|
214
|
+
script: options.script
|
|
212
215
|
};
|
|
213
216
|
}
|
|
214
217
|
/** @internal */
|
package/dist/index.mjs
CHANGED
|
@@ -115,7 +115,8 @@ var Runlater = class {
|
|
|
115
115
|
retry_attempts: options.retries,
|
|
116
116
|
queue: options.queue,
|
|
117
117
|
callback_url: options.callback,
|
|
118
|
-
enabled: options.enabled
|
|
118
|
+
enabled: options.enabled,
|
|
119
|
+
script: options.script
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
return res.data;
|
|
@@ -148,7 +149,8 @@ var Runlater = class {
|
|
|
148
149
|
retry_attempts: t.retries,
|
|
149
150
|
queue: t.queue,
|
|
150
151
|
callback_url: t.callback,
|
|
151
|
-
enabled: t.enabled
|
|
152
|
+
enabled: t.enabled,
|
|
153
|
+
script: t.script
|
|
152
154
|
}));
|
|
153
155
|
}
|
|
154
156
|
if (options.monitors) {
|
|
@@ -181,7 +183,8 @@ var Runlater = class {
|
|
|
181
183
|
timeout_ms: options.timeout,
|
|
182
184
|
retry_attempts: options.retries,
|
|
183
185
|
queue: options.queue,
|
|
184
|
-
callback_url: options.callback
|
|
186
|
+
callback_url: options.callback,
|
|
187
|
+
script: options.script
|
|
185
188
|
};
|
|
186
189
|
}
|
|
187
190
|
/** @internal */
|