@digipair/skill-factory 0.69.0 → 0.69.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/index.cjs.js CHANGED
@@ -19,8 +19,8 @@ let FactoryService = class FactoryService {
19
19
  }
20
20
  return result;
21
21
  }
22
- async executeWithContext(params, _pinsSettingsList, _context) {
23
- const { execute, context } = params;
22
+ async execute(params, _pinsSettingsList, _context) {
23
+ const { execute, context = _context } = params;
24
24
  const result = await engine.executePinsList(execute, context);
25
25
  return result;
26
26
  }
@@ -43,14 +43,14 @@ let FactoryService = class FactoryService {
43
43
  let instance;
44
44
  const initialize = (launcher)=>(instance = new FactoryService()).initialize(launcher);
45
45
  const start = (params, pinsSettingsList, context)=>instance.start(params, pinsSettingsList, context);
46
- const executeWithContext = (params, pinsSettingsList, context)=>new FactoryService().executeWithContext(params, pinsSettingsList, context);
46
+ const execute = (params, pinsSettingsList, context)=>new FactoryService().execute(params, pinsSettingsList, context);
47
47
  const keepAlive = (params, pinsSettingsList, context)=>new FactoryService().keepAlive(params, pinsSettingsList, context);
48
48
  const task = (params, pinsSettingsList, context)=>new FactoryService().task(params, pinsSettingsList, context);
49
49
  const action = (params, pinsSettingsList, context)=>new FactoryService().action(params, pinsSettingsList, context);
50
50
  const trigger = (params, pinsSettingsList, context)=>new FactoryService().trigger(params, pinsSettingsList, context);
51
51
 
52
52
  exports.action = action;
53
- exports.executeWithContext = executeWithContext;
53
+ exports.execute = execute;
54
54
  exports.initialize = initialize;
55
55
  exports.keepAlive = keepAlive;
56
56
  exports.start = start;
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23902
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23909
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23928
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23947
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23948
23948
  }
23949
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23949
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27990,8 +27990,8 @@ let FactoryService = class FactoryService {
27990
27990
  }
27991
27991
  return result;
27992
27992
  }
27993
- async executeWithContext(params, _pinsSettingsList, _context) {
27994
- const { execute, context } = params;
27993
+ async execute(params, _pinsSettingsList, _context) {
27994
+ const { execute, context = _context } = params;
27995
27995
  const result = await executePinsList(execute, context);
27996
27996
  return result;
27997
27997
  }
@@ -28014,10 +28014,10 @@ let FactoryService = class FactoryService {
28014
28014
  let instance;
28015
28015
  const initialize = (launcher)=>(instance = new FactoryService()).initialize(launcher);
28016
28016
  const start = (params, pinsSettingsList, context)=>instance.start(params, pinsSettingsList, context);
28017
- const executeWithContext = (params, pinsSettingsList, context)=>new FactoryService().executeWithContext(params, pinsSettingsList, context);
28017
+ const execute = (params, pinsSettingsList, context)=>new FactoryService().execute(params, pinsSettingsList, context);
28018
28018
  const keepAlive = (params, pinsSettingsList, context)=>new FactoryService().keepAlive(params, pinsSettingsList, context);
28019
28019
  const task = (params, pinsSettingsList, context)=>new FactoryService().task(params, pinsSettingsList, context);
28020
28020
  const action = (params, pinsSettingsList, context)=>new FactoryService().action(params, pinsSettingsList, context);
28021
28021
  const trigger = (params, pinsSettingsList, context)=>new FactoryService().trigger(params, pinsSettingsList, context);
28022
28022
 
28023
- export { action, executeWithContext, initialize, keepAlive, start, task, trigger };
28023
+ export { action, execute, initialize, keepAlive, start, task, trigger };
@@ -1,7 +1,7 @@
1
1
  import { PinsSettings } from '@digipair/engine';
2
2
  export declare const initialize: (launcher: Function) => Promise<void>;
3
3
  export declare const start: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
- export declare const executeWithContext: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
+ export declare const execute: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
5
5
  export declare const keepAlive: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
6
6
  export declare const task: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
7
7
  export declare const action: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-factory",
3
- "version": "0.69.0",
3
+ "version": "0.69.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "x-events": []
55
55
  }
56
56
  },
57
- "/executeWithContext": {
57
+ "/execute": {
58
58
  "post": {
59
59
  "tags": ["service"],
60
60
  "summary": "Execute avec un contexte",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  {
76
76
  "name": "context",
77
- "required": true,
77
+ "required": false,
78
78
  "summary": "Contexte",
79
79
  "description": "Contexte d'exécution",
80
80
  "schema": {
package/schema.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "x-events": []
55
55
  }
56
56
  },
57
- "/executeWithContext": {
57
+ "/execute": {
58
58
  "post": {
59
59
  "tags": ["service"],
60
60
  "summary": "Execute with context",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  {
76
76
  "name": "context",
77
- "required": true,
77
+ "required": false,
78
78
  "summary": "Context",
79
79
  "description": "Context of the execution",
80
80
  "schema": {