@digipair/skill-service 0.55.1 → 0.56.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 +6 -0
- package/index.esm.js +11 -6
- package/libs/skill-service/src/lib/skill-service.d.ts +1 -0
- package/package.json +1 -1
- package/schema.fr.json +60 -2
- package/schema.json +60 -2
package/index.cjs.js
CHANGED
|
@@ -13,9 +13,15 @@ let ServiceService = class ServiceService {
|
|
|
13
13
|
const { execute } = params;
|
|
14
14
|
return await engine.executePinsList(execute, context);
|
|
15
15
|
}
|
|
16
|
+
async action(params, _pinsSettingsList, context) {
|
|
17
|
+
const { execute } = params;
|
|
18
|
+
return await engine.executePinsList(execute, context);
|
|
19
|
+
}
|
|
16
20
|
};
|
|
17
21
|
const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
|
|
18
22
|
const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
|
|
23
|
+
const action = (params, pinsSettingsList, context)=>new ServiceService().action(params, pinsSettingsList, context);
|
|
19
24
|
|
|
25
|
+
exports.action = action;
|
|
20
26
|
exports.service = service;
|
|
21
27
|
exports.task = task;
|
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
|
|
23902
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
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
|
|
23909
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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
|
|
23928
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "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
|
|
23947
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23948
23948
|
}
|
|
23949
|
-
return
|
|
23949
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23950
23950
|
v: nextMatch1
|
|
23951
23951
|
};
|
|
23952
23952
|
};
|
|
@@ -27962,8 +27962,13 @@ let ServiceService = class ServiceService {
|
|
|
27962
27962
|
const { execute } = params;
|
|
27963
27963
|
return await executePinsList(execute, context);
|
|
27964
27964
|
}
|
|
27965
|
+
async action(params, _pinsSettingsList, context) {
|
|
27966
|
+
const { execute } = params;
|
|
27967
|
+
return await executePinsList(execute, context);
|
|
27968
|
+
}
|
|
27965
27969
|
};
|
|
27966
27970
|
const service = (params, pinsSettingsList, context)=>new ServiceService().service(params, pinsSettingsList, context);
|
|
27967
27971
|
const task = (params, pinsSettingsList, context)=>new ServiceService().task(params, pinsSettingsList, context);
|
|
27972
|
+
const action = (params, pinsSettingsList, context)=>new ServiceService().action(params, pinsSettingsList, context);
|
|
27968
27973
|
|
|
27969
|
-
export { service, task };
|
|
27974
|
+
export { action, service, task };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
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
|
+
export declare const action: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -9,7 +9,32 @@
|
|
|
9
9
|
},
|
|
10
10
|
"paths": {},
|
|
11
11
|
"components": {
|
|
12
|
-
"schemas": {
|
|
12
|
+
"schemas": {
|
|
13
|
+
"Parameter": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"tags": ["service"],
|
|
16
|
+
"summary": "Parameter",
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"summary": "Name",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"type": {
|
|
23
|
+
"summary": "Type",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"item": {
|
|
27
|
+
"summary": "Item",
|
|
28
|
+
"type": "object"
|
|
29
|
+
},
|
|
30
|
+
"properties": {
|
|
31
|
+
"summary": "Properties",
|
|
32
|
+
"type": "object"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["name", "type"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
13
38
|
},
|
|
14
39
|
"x-scene-blocks": {
|
|
15
40
|
"/service": {
|
|
@@ -35,7 +60,7 @@
|
|
|
35
60
|
"/task": {
|
|
36
61
|
"summary": "Tache",
|
|
37
62
|
"description": "Exécution d'une tache.",
|
|
38
|
-
"tags": ["service"
|
|
63
|
+
"tags": ["service"],
|
|
39
64
|
"metadata": [],
|
|
40
65
|
"parameters": [
|
|
41
66
|
{
|
|
@@ -51,6 +76,39 @@
|
|
|
51
76
|
}
|
|
52
77
|
}
|
|
53
78
|
]
|
|
79
|
+
},
|
|
80
|
+
"/action": {
|
|
81
|
+
"summary": "Action",
|
|
82
|
+
"description": "Execution of an action.",
|
|
83
|
+
"tags": ["service"],
|
|
84
|
+
"metadata": [
|
|
85
|
+
{
|
|
86
|
+
"name": "schema",
|
|
87
|
+
"summary": "Input parameters",
|
|
88
|
+
"required": true,
|
|
89
|
+
"description": "Input parameters",
|
|
90
|
+
"schema": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/components/schemas/Parameter"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"parameters": [
|
|
99
|
+
{
|
|
100
|
+
"name": "execute",
|
|
101
|
+
"summary": "Execute",
|
|
102
|
+
"required": true,
|
|
103
|
+
"description": "Commands to execute",
|
|
104
|
+
"schema": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
54
112
|
}
|
|
55
113
|
}
|
|
56
114
|
}
|
package/schema.json
CHANGED
|
@@ -9,7 +9,32 @@
|
|
|
9
9
|
},
|
|
10
10
|
"paths": {},
|
|
11
11
|
"components": {
|
|
12
|
-
"schemas": {
|
|
12
|
+
"schemas": {
|
|
13
|
+
"Parameter": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"tags": ["service"],
|
|
16
|
+
"summary": "Parameter",
|
|
17
|
+
"properties": {
|
|
18
|
+
"name": {
|
|
19
|
+
"summary": "Name",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"type": {
|
|
23
|
+
"summary": "Type",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"item": {
|
|
27
|
+
"summary": "Item",
|
|
28
|
+
"type": "object"
|
|
29
|
+
},
|
|
30
|
+
"properties": {
|
|
31
|
+
"summary": "Properties",
|
|
32
|
+
"type": "object"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["name", "type"]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
13
38
|
},
|
|
14
39
|
"x-scene-blocks": {
|
|
15
40
|
"/service": {
|
|
@@ -35,7 +60,7 @@
|
|
|
35
60
|
"/task": {
|
|
36
61
|
"summary": "Task",
|
|
37
62
|
"description": "Execution of a task.",
|
|
38
|
-
"tags": ["service"
|
|
63
|
+
"tags": ["service"],
|
|
39
64
|
"metadata": [],
|
|
40
65
|
"parameters": [
|
|
41
66
|
{
|
|
@@ -51,6 +76,39 @@
|
|
|
51
76
|
}
|
|
52
77
|
}
|
|
53
78
|
]
|
|
79
|
+
},
|
|
80
|
+
"/action": {
|
|
81
|
+
"summary": "Action",
|
|
82
|
+
"description": "Execution of an action.",
|
|
83
|
+
"tags": ["service"],
|
|
84
|
+
"metadata": [
|
|
85
|
+
{
|
|
86
|
+
"name": "schema",
|
|
87
|
+
"summary": "Input parameters",
|
|
88
|
+
"required": true,
|
|
89
|
+
"description": "Input parameters",
|
|
90
|
+
"schema": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"items": {
|
|
93
|
+
"$ref": "#/components/schemas/Parameter"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"parameters": [
|
|
99
|
+
{
|
|
100
|
+
"name": "execute",
|
|
101
|
+
"summary": "Execute",
|
|
102
|
+
"required": true,
|
|
103
|
+
"description": "Commands to execute",
|
|
104
|
+
"schema": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
54
112
|
}
|
|
55
113
|
}
|
|
56
114
|
}
|