@tsed/agenda 6.95.8 → 6.96.1
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/package.json +4 -4
- package/lib/cjs/AgendaModule.d.ts +0 -15
- package/lib/cjs/constants/index.d.ts +0 -1
- package/lib/cjs/decorators/agenda.d.ts +0 -16
- package/lib/cjs/decorators/define.d.ts +0 -2
- package/lib/cjs/decorators/every.d.ts +0 -2
- package/lib/cjs/decorators/index.d.ts +0 -3
- package/lib/cjs/index.d.ts +0 -18
- package/lib/cjs/interfaces/AgendaStore.d.ts +0 -16
- package/lib/cjs/services/AgendaFactory.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/agenda",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.96.1",
|
|
4
4
|
"description": "Agenda package for Ts.ED framework",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"private": false,
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@tsed/common": "6.
|
|
26
|
-
"@tsed/core": "6.
|
|
27
|
-
"@tsed/di": "6.
|
|
25
|
+
"@tsed/common": "6.96.1",
|
|
26
|
+
"@tsed/core": "6.96.1",
|
|
27
|
+
"@tsed/di": "6.96.1",
|
|
28
28
|
"agenda": "^4.1.3"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AfterListen, Logger, OnDestroy } from "@tsed/common";
|
|
2
|
-
import { InjectorService, Provider } from "@tsed/di";
|
|
3
|
-
import { AgendaService } from "./services/AgendaFactory";
|
|
4
|
-
export declare class AgendaModule implements OnDestroy, AfterListen {
|
|
5
|
-
protected logger: Logger;
|
|
6
|
-
protected injector: InjectorService;
|
|
7
|
-
protected agenda: AgendaService;
|
|
8
|
-
private loadAgenda;
|
|
9
|
-
$afterListen(): Promise<any>;
|
|
10
|
-
$onDestroy(): Promise<any>;
|
|
11
|
-
protected getProviders(): Provider<any>[];
|
|
12
|
-
protected addAgendaDefinitionsForProvider(provider: Provider): void;
|
|
13
|
-
protected scheduleJobsForProvider(provider: Provider<any>): Promise<void>;
|
|
14
|
-
protected getNameForJob(propertyKey: string, namespace?: string, customName?: string): string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PROVIDER_TYPE_AGENDA = "PROVIDER_TYPE_AGENDA";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AgendaConfig } from "agenda";
|
|
2
|
-
declare global {
|
|
3
|
-
namespace TsED {
|
|
4
|
-
interface Configuration {
|
|
5
|
-
agenda?: {
|
|
6
|
-
/** * Enable Agenda jobs. Default false. */
|
|
7
|
-
enabled?: boolean;
|
|
8
|
-
} & AgendaConfig;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
interface AgendaOptions {
|
|
13
|
-
namespace?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function Agenda(options?: AgendaOptions): ClassDecorator;
|
|
16
|
-
export {};
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AgendaConfig } from "agenda";
|
|
2
|
-
declare global {
|
|
3
|
-
namespace TsED {
|
|
4
|
-
interface Configuration {
|
|
5
|
-
agenda?: {
|
|
6
|
-
/**
|
|
7
|
-
* Enable Agenda jobs. Default false.
|
|
8
|
-
*/
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
} & AgendaConfig;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export * from "./AgendaModule";
|
|
15
|
-
export * from "./constants";
|
|
16
|
-
export * from "./decorators";
|
|
17
|
-
export * from "./interfaces/AgendaStore";
|
|
18
|
-
export * from "./services/AgendaFactory";
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DefineOptions as AgendaDefineOptions, JobOptions } from "agenda";
|
|
2
|
-
export interface DefineOptions extends AgendaDefineOptions {
|
|
3
|
-
name?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type EveryOptions = JobOptions & DefineOptions;
|
|
6
|
-
export interface AgendaStore {
|
|
7
|
-
namespace?: string;
|
|
8
|
-
define?: {
|
|
9
|
-
[propertyKey: string]: DefineOptions;
|
|
10
|
-
};
|
|
11
|
-
every?: {
|
|
12
|
-
[propertyKey: string]: EveryOptions & {
|
|
13
|
-
interval: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
}
|