@owservable/actions 0.0.1 → 0.0.3

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/README.md CHANGED
@@ -1,5 +1,21 @@
1
1
  ![owservable](https://avatars0.githubusercontent.com/u/87773159?s=75)
2
2
 
3
- # actions
3
+ # @owservable/actions
4
4
 
5
- actions
5
+ - functions
6
+ - findAction
7
+ - runActionAsCommand
8
+ - getOptionAndDefaultValue
9
+
10
+
11
+ - interfaces
12
+ - ActionInterface
13
+ - ActionAsWorkerInterface
14
+ - ActionAsWatcherInterface
15
+ - ActionAsCommandInterface
16
+ - ActionAsCronjobInterface
17
+ - ActionAsControllerInterface
18
+
19
+
20
+ - abstracts
21
+ - Action
@@ -0,0 +1,8 @@
1
+ export default abstract class Action {
2
+ protected _signature: string;
3
+ protected _description: string;
4
+ protected _schedule: string;
5
+ signature(): string;
6
+ description(): string;
7
+ schedule(): string;
8
+ }
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class Action {
4
+ constructor() {
5
+ this._signature = '';
6
+ this._description = '';
7
+ this._schedule = '';
8
+ }
9
+ signature() {
10
+ return this._signature;
11
+ }
12
+ description() {
13
+ return this._description;
14
+ }
15
+ schedule() {
16
+ return this._schedule;
17
+ }
18
+ }
19
+ exports.default = Action;
20
+ //# sourceMappingURL=action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/abstracts/action.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,MAA8B,MAAM;IAApC;QACW,eAAU,GAAG,EAAE,CAAC;QAChB,iBAAY,GAAG,EAAE,CAAC;QAClB,cAAS,GAAG,EAAE,CAAC;IAa1B,CAAC;IAXO,SAAS;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAEM,WAAW;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;IAEM,QAAQ;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;CACD;AAhBD,yBAgBC"}
@@ -0,0 +1,5 @@
1
+ import ActionInterface from './action.interface';
2
+ export default interface ActionAsWatcherInterface extends ActionInterface {
3
+ asWatcher(): Promise<void>;
4
+ asWatcherInit?(): Promise<void>;
5
+ }
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=action.as.watcher.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.as.watcher.interface.js","sourceRoot":"","sources":["../../src/interfaces/action.as.watcher.interface.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC"}
@@ -3,9 +3,11 @@ import runActionAsCommand from './functions/run.action.as.command';
3
3
  import getOptionAndDefaultValue from './functions/get.option.and.default.value';
4
4
  import ActionInterface from './interfaces/action.interface';
5
5
  import ActionAsWorkerInterface from './interfaces/action.as.worker.interface';
6
+ import ActionAsWatcherInterface from './interfaces/action.as.watcher.interface';
7
+ import ActionAsCommandInterface from './interfaces/action.as.command.interface';
6
8
  import ActionAsCronjobInterface from './interfaces/action.as.cronjob.interface';
7
9
  import ActionAsControllerInterface from './interfaces/action.as.controller.interface';
8
- import ActionAsCommandInterface from './interfaces/action.as.command.interface';
9
- export { findAction, runActionAsCommand, getOptionAndDefaultValue, ActionInterface, ActionAsWorkerInterface, ActionAsCronjobInterface, ActionAsControllerInterface, ActionAsCommandInterface };
10
+ import Action from './abstracts/action';
11
+ export { findAction, runActionAsCommand, getOptionAndDefaultValue, ActionInterface, ActionAsWorkerInterface, ActionAsWatcherInterface, ActionAsCommandInterface, ActionAsCronjobInterface, ActionAsControllerInterface, Action };
10
12
  declare const OwservableActions: {};
11
13
  export default OwservableActions;
@@ -1,12 +1,14 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOptionAndDefaultValue = exports.runActionAsCommand = exports.findAction = void 0;
3
+ exports.Action = exports.getOptionAndDefaultValue = exports.runActionAsCommand = exports.findAction = void 0;
4
4
  const find_action_1 = require("./functions/find.action");
5
5
  exports.findAction = find_action_1.default;
6
6
  const run_action_as_command_1 = require("./functions/run.action.as.command");
7
7
  exports.runActionAsCommand = run_action_as_command_1.default;
8
8
  const get_option_and_default_value_1 = require("./functions/get.option.and.default.value");
9
9
  exports.getOptionAndDefaultValue = get_option_and_default_value_1.default;
10
+ const action_1 = require("./abstracts/action");
11
+ exports.Action = action_1.default;
10
12
  const OwservableActions = {};
11
13
  exports.default = OwservableActions;
12
14
  //# sourceMappingURL=owservable.actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"owservable.actions.js","sourceRoot":"","sources":["../src/owservable.actions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAGb,yDAAiD;AAahD,qBAbM,qBAAU,CAaN;AAZX,6EAAmE;AAalE,6BAbM,+BAAkB,CAaN;AAZnB,2FAAgF;AAa/E,mCAbM,sCAAwB,CAaN;AASzB,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,kBAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"owservable.actions.js","sourceRoot":"","sources":["../src/owservable.actions.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAGb,yDAAiD;AAiBhD,qBAjBM,qBAAU,CAiBN;AAhBX,6EAAmE;AAiBlE,6BAjBM,+BAAkB,CAiBN;AAhBnB,2FAAgF;AAiB/E,mCAjBM,sCAAwB,CAiBN;AANzB,+CAAwC;AAiBvC,iBAjBM,gBAAM,CAiBN;AAGP,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,kBAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owservable/actions",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "list subfolders by name",
5
5
  "engines": {
6
6
  "node": ">=16"