@digipair/skill-service 0.18.10 → 0.19.0

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
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
23510
23510
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23511
23511
  // match is required
23512
23512
  if (!match) {
23513
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23513
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23514
23514
  v: nextMatch1
23515
23515
  };
23516
23516
  }
23517
23517
  var token = match.token, offset = match.offset;
23518
23518
  i1 += offset;
23519
23519
  if (token === " ") {
23520
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23520
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23521
23521
  }
23522
23522
  tokens1 = _to_consumable_array$1(tokens1).concat([
23523
23523
  token
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
23536
23536
  if (contextKeys.some(function(el) {
23537
23537
  return el.startsWith(name);
23538
23538
  })) {
23539
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23539
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23540
23540
  }
23541
23541
  if (dateTimeIdentifiers.some(function(el) {
23542
23542
  return el === name;
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
23555
23555
  if (dateTimeIdentifiers.some(function(el) {
23556
23556
  return el.startsWith(name);
23557
23557
  })) {
23558
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23558
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23559
23559
  }
23560
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23560
+ return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23561
23561
  v: nextMatch1
23562
23562
  };
23563
23563
  };
@@ -27479,7 +27479,13 @@ let ServiceService = class ServiceService {
27479
27479
  const { execute } = params;
27480
27480
  return await executePinsList(execute, context);
27481
27481
  }
27482
+ async task(params, _pinsSettingsList, context) {
27483
+ const { execute } = params;
27484
+ return await executePinsList(execute, context);
27485
+ }
27482
27486
  };
27483
27487
  const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
27488
+ const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
27484
27489
 
27485
27490
  exports.service = service;
27491
+ exports.task = task;
package/index.esm.js CHANGED
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
23488
23488
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23489
23489
  // match is required
23490
23490
  if (!match) {
23491
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23491
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23492
23492
  v: nextMatch1
23493
23493
  };
23494
23494
  }
23495
23495
  var token = match.token, offset = match.offset;
23496
23496
  i1 += offset;
23497
23497
  if (token === " ") {
23498
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23498
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23499
23499
  }
23500
23500
  tokens1 = _to_consumable_array$1(tokens1).concat([
23501
23501
  token
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
23514
23514
  if (contextKeys.some(function(el) {
23515
23515
  return el.startsWith(name);
23516
23516
  })) {
23517
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23517
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23518
23518
  }
23519
23519
  if (dateTimeIdentifiers.some(function(el) {
23520
23520
  return el === name;
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
23533
23533
  if (dateTimeIdentifiers.some(function(el) {
23534
23534
  return el.startsWith(name);
23535
23535
  })) {
23536
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23536
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23537
23537
  }
23538
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23538
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23539
23539
  v: nextMatch1
23540
23540
  };
23541
23541
  };
@@ -27457,7 +27457,12 @@ let ServiceService = class ServiceService {
27457
27457
  const { execute } = params;
27458
27458
  return await executePinsList(execute, context);
27459
27459
  }
27460
+ async task(params, _pinsSettingsList, context) {
27461
+ const { execute } = params;
27462
+ return await executePinsList(execute, context);
27463
+ }
27460
27464
  };
27461
27465
  const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
27466
+ const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
27462
27467
 
27463
- export { service };
27468
+ export { service, task };
@@ -1,2 +1,3 @@
1
1
  import { PinsSettings } from '@digipair/engine';
2
2
  export declare const service: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
+ export declare const task: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-service",
3
- "version": "0.18.10",
3
+ "version": "0.19.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.json CHANGED
@@ -31,6 +31,26 @@
31
31
  }
32
32
  }
33
33
  ]
34
+ },
35
+ "/task": {
36
+ "summary": "Tache",
37
+ "description": "Exécution d'une tache.",
38
+ "tags": ["service"],
39
+ "metadata": [],
40
+ "parameters": [
41
+ {
42
+ "name": "execute",
43
+ "summary": "Exécute",
44
+ "required": true,
45
+ "description": "Commandes à exécuter",
46
+ "schema": {
47
+ "type": "array",
48
+ "items": {
49
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
50
+ }
51
+ }
52
+ }
53
+ ]
34
54
  }
35
55
  }
36
56
  }