@punks/backend-entity-manager 0.0.370 → 0.0.371
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/cjs/index.js +6 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/decorators/tasks.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/tasks/providers/registry/index.d.ts +4 -0
- package/dist/cjs/types/platforms/nest/extensions/tasks/services/tasks-service/index.d.ts +4 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/decorators/tasks.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/tasks/providers/registry/index.d.ts +4 -0
- package/dist/esm/types/platforms/nest/extensions/tasks/services/tasks-service/index.d.ts +4 -0
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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/esm/index.js
CHANGED
|
@@ -34913,6 +34913,9 @@ let TasksRegistry = class TasksRegistry {
|
|
|
34913
34913
|
}
|
|
34914
34914
|
return task;
|
|
34915
34915
|
}
|
|
34916
|
+
getTasks() {
|
|
34917
|
+
return Array.from(this.tasks.values());
|
|
34918
|
+
}
|
|
34916
34919
|
};
|
|
34917
34920
|
TasksRegistry = __decorate([
|
|
34918
34921
|
Injectable()
|
|
@@ -34984,6 +34987,9 @@ let TasksService = TasksService_1 = class TasksService {
|
|
|
34984
34987
|
await this.jobShell.executeTask(task.instance, task.props, TaskRunType.OnDemand);
|
|
34985
34988
|
this.logger.log(`Manual task ${name} -> completed`);
|
|
34986
34989
|
}
|
|
34990
|
+
async getTasks() {
|
|
34991
|
+
return this.registry.getTasks();
|
|
34992
|
+
}
|
|
34987
34993
|
};
|
|
34988
34994
|
TasksService = TasksService_1 = __decorate([
|
|
34989
34995
|
Injectable(),
|