@polpo-ai/core 0.15.46 → 0.15.47
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.
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type { Schedule, ScheduleDriverRegistration } from "./types.js";
|
|
2
|
+
export type ScheduleDriverLifecycleResult = ScheduleDriverRegistration | void;
|
|
2
3
|
/**
|
|
3
4
|
* Delivery-provider lifecycle for a persisted schedule.
|
|
4
5
|
*
|
|
5
6
|
* Implementations register delivery only. A provider callback still has to
|
|
6
7
|
* create and claim a durable ScheduleRun before any invocation is dispatched.
|
|
8
|
+
*
|
|
9
|
+
* Lifecycle methods may return an updated registration when the provider
|
|
10
|
+
* resource changes as part of the operation. Drivers that keep the same
|
|
11
|
+
* provider resource can continue returning void.
|
|
7
12
|
*/
|
|
8
13
|
export interface ScheduleDriver {
|
|
9
14
|
register(schedule: Schedule): Promise<ScheduleDriverRegistration>;
|
|
10
15
|
update(schedule: Schedule): Promise<ScheduleDriverRegistration>;
|
|
11
|
-
pause(schedule: Schedule): Promise<
|
|
12
|
-
resume(schedule: Schedule): Promise<
|
|
13
|
-
delete(schedule: Schedule): Promise<
|
|
16
|
+
pause(schedule: Schedule): Promise<ScheduleDriverLifecycleResult>;
|
|
17
|
+
resume(schedule: Schedule): Promise<ScheduleDriverLifecycleResult>;
|
|
18
|
+
delete(schedule: Schedule): Promise<ScheduleDriverLifecycleResult>;
|
|
14
19
|
}
|
|
15
20
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/scheduling/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../src/scheduling/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,0BAA0B,EAC3B,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,6BAA6B,GACrC,0BAA0B,GAC1B,IAAI,CAAC;AAET;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAClE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAChE,KAAK,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAClE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;IACnE,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;CACpE"}
|
package/package.json
CHANGED