nucleus-core-ts 0.9.862 → 0.9.863
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/dist/index.d.ts +27 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,31 @@ export function usePubSub(config: any): {
|
|
|
25
25
|
getEventsByTopic: (topic: any) => never[];
|
|
26
26
|
};
|
|
27
27
|
export var serverFetch: ServerFetch;
|
|
28
|
+
declare function parseCron2(expression: any): {
|
|
29
|
+
ok: boolean;
|
|
30
|
+
error: string;
|
|
31
|
+
fields?: undefined;
|
|
32
|
+
} | {
|
|
33
|
+
ok: boolean;
|
|
34
|
+
fields: {
|
|
35
|
+
minutes: Set<any> | undefined;
|
|
36
|
+
hours: Set<any> | undefined;
|
|
37
|
+
daysOfMonth: Set<any> | undefined;
|
|
38
|
+
months: Set<any> | undefined;
|
|
39
|
+
daysOfWeek: Set<any> | undefined;
|
|
40
|
+
anyDayOfMonth: boolean;
|
|
41
|
+
anyDayOfWeek: boolean;
|
|
42
|
+
};
|
|
43
|
+
error?: undefined;
|
|
44
|
+
};
|
|
45
|
+
export function matchesCron(fields: any, when: any, timeZone: any): any;
|
|
46
|
+
export function isDue(input: any): {
|
|
47
|
+
due: boolean;
|
|
48
|
+
error: string | undefined;
|
|
49
|
+
} | {
|
|
50
|
+
due: boolean;
|
|
51
|
+
error?: undefined;
|
|
52
|
+
};
|
|
28
53
|
export function generateVerificationEndpoints(config: any): {
|
|
29
54
|
VERIFICATION_STATUS: {
|
|
30
55
|
method: string;
|
|
@@ -212,6 +237,7 @@ export function generateAdminEndpoints(config: any): {
|
|
|
212
237
|
_error: undefined;
|
|
213
238
|
};
|
|
214
239
|
};
|
|
240
|
+
export function describeCron(expression: any, timeZone: any): string | undefined;
|
|
215
241
|
export function decodeHeaderList(header: any): any;
|
|
216
242
|
export function createServerFactory(endpoints: any, config: any, getCookies: any, getHeaders: any): (endpointKey: any, payload: any) => Promise<{
|
|
217
243
|
isSuccess: boolean;
|
|
@@ -7689,4 +7715,4 @@ declare class ScopedLogger {
|
|
|
7689
7715
|
warn(message: any, context: any): void;
|
|
7690
7716
|
error(message: any, error: any, context: any): void;
|
|
7691
7717
|
}
|
|
7692
|
-
export {};
|
|
7718
|
+
export { parseCron2 as parseCron };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,16 @@ export { AzureEmailService } from './src/Services/Email/AzureEmailService';
|
|
|
9
9
|
export type { EmailAttachment, EmailPayload, EmailSendResult, EmailService, } from './src/Services/Email/types';
|
|
10
10
|
export type { GmailServiceConfig } from './src/Services/Gmail';
|
|
11
11
|
export { GmailService } from './src/Services/Gmail';
|
|
12
|
+
export type { CronFields } from './src/Shared/cron';
|
|
13
|
+
/**
|
|
14
|
+
* Cron parsing and "is it due", for apps that schedule their own work.
|
|
15
|
+
*
|
|
16
|
+
* The framework already runs two schedules on this — integration imports and
|
|
17
|
+
* backups — and an app that wants a third (a nightly job of its own) had to
|
|
18
|
+
* either hand-roll a parser or settle for `setInterval`, which drifts and
|
|
19
|
+
* cannot express "at three in the morning". Exported so the schedule an
|
|
20
|
+
* operator configures means the same thing everywhere.
|
|
21
|
+
*/
|
|
22
|
+
export { describeCron, isDue, matchesCron, parseCron } from './src/Shared/cron';
|
|
12
23
|
export type * from './src/types';
|
|
13
24
|
export { decodeHeaderList } from './src/Utils/headerList';
|