@digipair/skill-service 0.67.0 → 0.68.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
@@ -17,11 +17,17 @@ let ServiceService = class ServiceService {
17
17
  const { execute } = params;
18
18
  return await engine.executePinsList(execute, context);
19
19
  }
20
+ async trigger(params, _pinsSettingsList, context) {
21
+ const { execute } = params;
22
+ return await engine.executePinsList(execute, context);
23
+ }
20
24
  };
21
25
  const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
22
26
  const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
23
27
  const action = (params, pinsSettingsList, context)=>new ServiceService().action(params, pinsSettingsList, context);
28
+ const trigger = (params, pinsSettingsList, context)=>new ServiceService().trigger(params, pinsSettingsList, context);
24
29
 
25
30
  exports.action = action;
26
31
  exports.service = service;
27
32
  exports.task = task;
33
+ exports.trigger = trigger;
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 nextMatch = nextMatch1, tokens = tokens1, i = i1, {
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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "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 nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23947
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23948
23948
  }
23949
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23949
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27988,9 +27988,14 @@ let ServiceService = class ServiceService {
27988
27988
  const { execute } = params;
27989
27989
  return await executePinsList(execute, context);
27990
27990
  }
27991
+ async trigger(params, _pinsSettingsList, context) {
27992
+ const { execute } = params;
27993
+ return await executePinsList(execute, context);
27994
+ }
27991
27995
  };
27992
27996
  const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
27993
27997
  const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
27994
27998
  const action = (params, pinsSettingsList, context)=>new ServiceService().action(params, pinsSettingsList, context);
27999
+ const trigger = (params, pinsSettingsList, context)=>new ServiceService().trigger(params, pinsSettingsList, context);
27995
28000
 
27996
- export { action, service, task };
28001
+ export { action, service, task, trigger };
@@ -2,3 +2,4 @@ import { PinsSettings } from '@digipair/engine';
2
2
  export declare const service: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
3
3
  export declare const task: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
4
4
  export declare const action: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
5
+ export declare const trigger: (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.67.0",
3
+ "version": "0.68.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.fr.json CHANGED
@@ -125,6 +125,51 @@
125
125
  }
126
126
  }
127
127
  ]
128
+ },
129
+ "/trigger": {
130
+ "summary": "Déclencheur",
131
+ "description": "Déclenchement d'une exécution d'actions.",
132
+ "tags": ["service"],
133
+ "metadata": [
134
+ {
135
+ "name": "tags",
136
+ "summary": "Tags",
137
+ "required": true,
138
+ "description": "Tags du déclencheur",
139
+ "schema": {
140
+ "type": "array",
141
+ "items": {
142
+ "type": "string"
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "name": "parameters",
148
+ "summary": "Paramètres",
149
+ "required": true,
150
+ "description": "Paramètres du déclencheur",
151
+ "schema": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/components/schemas/Parameter"
155
+ }
156
+ }
157
+ }
158
+ ],
159
+ "parameters": [
160
+ {
161
+ "name": "execute",
162
+ "summary": "Execute",
163
+ "required": true,
164
+ "description": "Commandes à exécuter.",
165
+ "schema": {
166
+ "type": "array",
167
+ "items": {
168
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
169
+ }
170
+ }
171
+ }
172
+ ]
128
173
  }
129
174
  }
130
175
  }
package/schema.json CHANGED
@@ -90,7 +90,52 @@
90
90
  "name": "tags",
91
91
  "summary": "Tags",
92
92
  "required": true,
93
- "description": "Tags de l'action",
93
+ "description": "Action tags",
94
+ "schema": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ },
101
+ {
102
+ "name": "parameters",
103
+ "summary": "Parameters",
104
+ "required": true,
105
+ "description": "Input parameters",
106
+ "schema": {
107
+ "type": "array",
108
+ "items": {
109
+ "$ref": "#/components/schemas/Parameter"
110
+ }
111
+ }
112
+ }
113
+ ],
114
+ "parameters": [
115
+ {
116
+ "name": "execute",
117
+ "summary": "Execute",
118
+ "required": true,
119
+ "description": "Commands to execute",
120
+ "schema": {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
124
+ }
125
+ }
126
+ }
127
+ ]
128
+ },
129
+ "/trigger": {
130
+ "summary": "Trigger",
131
+ "description": "Executable trigger.",
132
+ "tags": ["service"],
133
+ "metadata": [
134
+ {
135
+ "name": "tags",
136
+ "summary": "Tags",
137
+ "required": true,
138
+ "description": "Trigger tags",
94
139
  "schema": {
95
140
  "type": "array",
96
141
  "items": {
File without changes