@ldsg/schedules 0.3.30 → 0.3.31

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,4 +1,3 @@
1
- import { ExtendExpressApp } from '@ldsg/application';
2
1
  import { Resource } from '@ldsg/resource';
3
2
  import { ScheduleInfo } from '@ldsg/schedule';
4
3
  import { Agenda, Job } from 'agenda';
@@ -16,7 +15,7 @@ export declare class SchedulesResource extends Resource<SchedulesSpecificResourc
16
15
  agenda: Agenda;
17
16
  getScheduleInfoList: GetScheduleInfoList;
18
17
  executeWorkflow: (params: JobData) => Promise<void>;
19
- extendExpressApp: ExtendExpressApp;
18
+ init: () => Promise<void>;
20
19
  scheduleJob: (params: ScheduleJobParams) => Promise<Job>;
21
20
  cancelJob: (params: CancelJobParams) => Promise<void>;
22
21
  stopSchedules: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAmB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAEhG,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C;AAED,UAAU,sBAAsB;IAC9B,gBAAgB,EAAE,YAAY,EAAE,CAAC;CAClC;AAED,KAAK,mBAAmB,GAAG,MAAM,sBAAsB,CAAC;AAIxD,qBAAa,iBAAkB,SAAQ,QAA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D;IAEF,SAAS,GAAU,QAAQ,eAAe,mBAOxC;IAEF,aAAa,sBAEX;CACH"}
package/dist/resource.js CHANGED
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SchedulesResource = void 0;
7
+ const mongo_backend_1 = require("@agendajs/mongo-backend");
7
8
  const resource_1 = require("@ldsg/resource");
8
9
  const agenda_1 = require("agenda");
9
- const mongo_backend_1 = require("@agendajs/mongo-backend");
10
10
  const lodash_1 = __importDefault(require("lodash"));
11
11
  const JOB_NAME = 'executeWorkflow';
12
12
  class SchedulesResource extends resource_1.Resource {
@@ -42,7 +42,7 @@ class SchedulesResource extends resource_1.Resource {
42
42
  variables: workflowVariables || {}
43
43
  });
44
44
  };
45
- this.extendExpressApp = async (params) => {
45
+ this.init = async () => {
46
46
  var _a;
47
47
  const { getFilteredResource, getResourcesFromSettings, settings: { processEvery } } = this;
48
48
  const databaseResourceFromSettings = getResourcesFromSettings().databaseResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/schedules",
3
- "version": "0.3.30",
3
+ "version": "0.3.31",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,11 +15,11 @@
15
15
  "agenda": "^6.2.5",
16
16
  "lodash": "^4.17.21",
17
17
  "zod": "^4.1.11",
18
- "@ldsg/database": "0.3.30",
19
- "@ldsg/handler": "0.3.30",
20
- "@ldsg/resource-definition": "0.3.30",
21
- "@ldsg/resource": "0.3.30",
22
- "@ldsg/schedule": "0.3.30"
18
+ "@ldsg/database": "0.3.31",
19
+ "@ldsg/handler": "0.3.31",
20
+ "@ldsg/resource": "0.3.31",
21
+ "@ldsg/schedule": "0.3.31",
22
+ "@ldsg/resource-definition": "0.3.31"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.5.2",
@@ -29,8 +29,8 @@
29
29
  "ts-jest": "^29.1.5",
30
30
  "ts-node": "^10.9.2",
31
31
  "typescript": "^5.8.3",
32
- "@ldsg/types": "0.3.30",
33
- "@ldsg/application": "0.3.30"
32
+ "@ldsg/application": "0.3.31",
33
+ "@ldsg/types": "0.3.31"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"