@digipair/skill-factory 0.76.0 → 0.77.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
@@ -25,7 +25,16 @@ let FactoryService = class FactoryService {
25
25
  return result;
26
26
  }
27
27
  async keepAlive(_params, _pinsSettingsList, _context) {
28
- throw 'DIGIPAIR_KEEPALIVE';
28
+ throw {
29
+ type: 'DIGIPAIR_KEEPALIVE'
30
+ };
31
+ }
32
+ async stop(params, _pinsSettingsList, _context) {
33
+ const { value = {} } = params;
34
+ throw {
35
+ type: 'DIGIPAIR_STOP',
36
+ value
37
+ };
29
38
  }
30
39
  async task(params, _pinsSettingsList, context) {
31
40
  const { execute } = params;
package/index.esm.js CHANGED
@@ -28001,7 +28001,16 @@ let FactoryService = class FactoryService {
28001
28001
  return result;
28002
28002
  }
28003
28003
  async keepAlive(_params, _pinsSettingsList, _context) {
28004
- throw 'DIGIPAIR_KEEPALIVE';
28004
+ throw {
28005
+ type: 'DIGIPAIR_KEEPALIVE'
28006
+ };
28007
+ }
28008
+ async stop(params, _pinsSettingsList, _context) {
28009
+ const { value = {} } = params;
28010
+ throw {
28011
+ type: 'DIGIPAIR_STOP',
28012
+ value
28013
+ };
28005
28014
  }
28006
28015
  async task(params, _pinsSettingsList, context) {
28007
28016
  const { execute } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-factory",
3
- "version": "0.76.0",
3
+ "version": "0.77.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -93,6 +93,25 @@
93
93
  "parameters": [],
94
94
  "x-events": []
95
95
  }
96
+ },
97
+ "/stop": {
98
+ "post": {
99
+ "tags": ["service"],
100
+ "summary": "Stop",
101
+ "description": "Stop le raisonnement",
102
+ "parameters": [
103
+ {
104
+ "name": "value",
105
+ "required": false,
106
+ "summary": "Valeur",
107
+ "description": "Valeur à retourner",
108
+ "schema": {
109
+ "type": "object"
110
+ }
111
+ }
112
+ ],
113
+ "x-events": []
114
+ }
96
115
  }
97
116
  },
98
117
  "x-scene-blocks": {
@@ -121,18 +140,6 @@
121
140
  "description": "Action exécutable.",
122
141
  "tags": ["service"],
123
142
  "metadata": [
124
- {
125
- "name": "tags",
126
- "summary": "Tags",
127
- "required": true,
128
- "description": "Tags de l'action",
129
- "schema": {
130
- "type": "array",
131
- "items": {
132
- "type": "string"
133
- }
134
- }
135
- },
136
143
  {
137
144
  "name": "parameters",
138
145
  "summary": "Paramètres",
package/schema.json CHANGED
@@ -93,6 +93,25 @@
93
93
  "parameters": [],
94
94
  "x-events": []
95
95
  }
96
+ },
97
+ "/stop": {
98
+ "post": {
99
+ "tags": ["service"],
100
+ "summary": "Stop",
101
+ "description": "Stop the reasoning",
102
+ "parameters": [
103
+ {
104
+ "name": "value",
105
+ "required": false,
106
+ "summary": "Value",
107
+ "description": "Value to return",
108
+ "schema": {
109
+ "type": "object"
110
+ }
111
+ }
112
+ ],
113
+ "x-events": []
114
+ }
96
115
  }
97
116
  },
98
117
  "components": {
@@ -153,18 +172,6 @@
153
172
  "description": "Executable action.",
154
173
  "tags": ["service"],
155
174
  "metadata": [
156
- {
157
- "name": "tags",
158
- "summary": "Tags",
159
- "required": true,
160
- "description": "Action tags",
161
- "schema": {
162
- "type": "array",
163
- "items": {
164
- "type": "string"
165
- }
166
- }
167
- },
168
175
  {
169
176
  "name": "parameters",
170
177
  "summary": "Parameters",