@punks/backend-entity-manager 0.0.370 → 0.0.373

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.
@@ -6,6 +6,7 @@ export declare enum TaskConcurrency {
6
6
  export type TaskSettings = {
7
7
  cronExpression?: string;
8
8
  concurrency: TaskConcurrency;
9
+ description?: string;
9
10
  };
10
11
  export type TaskProps = TaskSettings & {
11
12
  name: string;
@@ -7,4 +7,8 @@ export declare class TasksRegistry {
7
7
  props: TaskProps;
8
8
  instance: ITask;
9
9
  };
10
+ getTasks(): {
11
+ props: TaskProps;
12
+ instance: ITask;
13
+ }[];
10
14
  }
@@ -7,4 +7,8 @@ export declare class TasksService {
7
7
  constructor(jobShell: TaskShell, registry: TasksRegistry);
8
8
  triggerTask(name: string): Promise<void>;
9
9
  invokeTask(name: string): Promise<void>;
10
+ getTasks(): Promise<{
11
+ props: import("../../../../decorators/tasks").TaskProps;
12
+ instance: import("../../../../../../abstractions").ITask;
13
+ }[]>;
10
14
  }
package/dist/index.d.ts CHANGED
@@ -1622,6 +1622,7 @@ declare enum TaskConcurrency {
1622
1622
  type TaskSettings = {
1623
1623
  cronExpression?: string;
1624
1624
  concurrency: TaskConcurrency;
1625
+ description?: string;
1625
1626
  };
1626
1627
  type TaskProps = TaskSettings & {
1627
1628
  name: string;
@@ -2905,6 +2906,10 @@ declare class TasksRegistry {
2905
2906
  props: TaskProps;
2906
2907
  instance: ITask;
2907
2908
  };
2909
+ getTasks(): {
2910
+ props: TaskProps;
2911
+ instance: ITask;
2912
+ }[];
2908
2913
  }
2909
2914
 
2910
2915
  declare class TasksService {
@@ -2914,6 +2919,10 @@ declare class TasksService {
2914
2919
  constructor(jobShell: TaskShell, registry: TasksRegistry);
2915
2920
  triggerTask(name: string): Promise<void>;
2916
2921
  invokeTask(name: string): Promise<void>;
2922
+ getTasks(): Promise<{
2923
+ props: TaskProps;
2924
+ instance: ITask;
2925
+ }[]>;
2917
2926
  }
2918
2927
 
2919
2928
  declare const createExpressFileResponse: (res: Response, file: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.370",
3
+ "version": "0.0.373",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -47,7 +47,7 @@
47
47
  "@nestjs/swagger": "^7.3.0",
48
48
  "@nestjs/testing": "^10.4.1",
49
49
  "@nestjs/typeorm": "^10.0.0",
50
- "@punks/backend-core": "0.0.68",
50
+ "@punks/backend-core": "0.0.71",
51
51
  "@rollup/plugin-commonjs": "^21.0.1",
52
52
  "@rollup/plugin-json": "^6.0.0",
53
53
  "@rollup/plugin-node-resolve": "^13.0.6",
@@ -111,7 +111,7 @@
111
111
  "@nestjs/swagger": "^7.3.0",
112
112
  "@nestjs/testing": "^10.4.1",
113
113
  "@nestjs/typeorm": "^10.0.0",
114
- "@punks/backend-core": "0.0.68",
114
+ "@punks/backend-core": "0.0.71",
115
115
  "@sanity/client": "^6.10.0",
116
116
  "@sendgrid/mail": "^7.7.0",
117
117
  "bcrypt": "^5.1.0",
@@ -1 +0,0 @@
1
- export declare function floorDateToSecond(date: Date): Date;
@@ -1 +0,0 @@
1
- export declare function floorDateToSecond(date: Date): Date;