@dbos-inc/dbos-sdk 5.1.9-preview → 5.2.3-preview

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,18 +1,25 @@
1
+ type FieldValue = number | string;
2
+ export declare function convertExpression(crontab: string): FieldValue[][];
1
3
  /**
2
4
  * Validates a Cron-Job expression pattern.
3
5
  * Throws on error.
4
6
  */
5
- export declare function validateCrontab(pattern: string): string;
7
+ export declare function validateCrontab(pattern: string): void;
6
8
  /**
7
9
  * Validates an IANA timezone string.
8
10
  * Throws on error.
9
11
  */
10
12
  export declare function validateTimezone(timezone: string): void;
11
- export declare function convertExpression(crontab: string): string;
12
13
  export declare class TimeMatcher {
13
14
  #private;
14
15
  constructor(pattern: string, timezone?: string);
15
16
  match(date: Date | number): boolean;
17
+ /**
18
+ * Returns the first matching instant strictly after `date`, walking the calendar day by day
19
+ * instead of scanning every second. If the schedule can never fire, returns a non-matching
20
+ * instant at the end of the search horizon.
21
+ */
16
22
  nextWakeupTime(date: Date | number): Date;
17
23
  }
24
+ export {};
18
25
  //# sourceMappingURL=crontab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"crontab.d.ts","sourceRoot":"","sources":["../../../src/scheduler/crontab.ts"],"names":[],"mappings":"AAqOA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,UAW9C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAMvD;AAmBD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,UAahD;AAeD,qBAAa,WAAW;;gBAMV,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAoB9C,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAmBzB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;CAoBnC"}
1
+ {"version":3,"file":"crontab.d.ts","sourceRoot":"","sources":["../../../src/scheduler/crontab.ts"],"names":[],"mappings":"AAuBA,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AA4LlC,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,EAAE,CAuBjE;AAqID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAErD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAMvD;AA4ID,qBAAa,WAAW;;gBAUV,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;IAc9C,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,OAAO;IAkBnC;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI;CAkE1C"}