@digipair/skill-basic 0.39.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.d.ts +1 -0
- package/index.cjs.js +59 -0
- package/index.d.ts +1 -0
- package/index.esm.js +27512 -0
- package/libs/skill-basic/src/index.d.ts +1 -0
- package/libs/skill-basic/src/lib/skill-basic.d.ts +8 -0
- package/package.json +7 -0
- package/schema.fr.json +186 -0
- package/schema.json +186 -0
@@ -0,0 +1 @@
|
|
1
|
+
export * from './lib/skill-basic';
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { PinsSettings } from '@digipair/engine';
|
3
|
+
export declare const transform: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
4
|
+
export declare const setVariable: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
5
|
+
export declare const interval: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<NodeJS.Timeout>;
|
6
|
+
export declare const defer: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<NodeJS.Timeout>;
|
7
|
+
export declare const stopInterval: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
|
8
|
+
export declare const stopDefer: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
|
package/package.json
ADDED
package/schema.fr.json
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
{
|
2
|
+
"openapi": "3.0.0",
|
3
|
+
"info": {
|
4
|
+
"title": "@digipair/skill-basic",
|
5
|
+
"summary": "Gestion des données",
|
6
|
+
"description": "Cette compétence permet manipuler et transformer les données.",
|
7
|
+
"version": "0.1.0",
|
8
|
+
"x-icon": "📝"
|
9
|
+
},
|
10
|
+
"paths": {
|
11
|
+
"/transform": {
|
12
|
+
"post": {
|
13
|
+
"tags": ["web", "service", "spatial"],
|
14
|
+
"summary": "Transformer la donnée",
|
15
|
+
"description": "Transforme une valeur grace aus mécaniques standard de transformation de données du moteur",
|
16
|
+
"parameters": [
|
17
|
+
{
|
18
|
+
"name": "value",
|
19
|
+
"summary": "Valeur",
|
20
|
+
"required": false,
|
21
|
+
"description": "Valeur à transformer",
|
22
|
+
"schema": {
|
23
|
+
"type": "object"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "execute",
|
28
|
+
"summary": "Exécute",
|
29
|
+
"required": false,
|
30
|
+
"description": "Actions à appliquer sur la donnée",
|
31
|
+
"schema": {
|
32
|
+
"type": "array",
|
33
|
+
"items": {
|
34
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"x-events": []
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"/setVariable": {
|
43
|
+
"post": {
|
44
|
+
"tags": ["web", "service", "spatial"],
|
45
|
+
"summary": "Enregistrer la variable",
|
46
|
+
"description": "Enregistre la variable dans le contexte de la compétence",
|
47
|
+
"parameters": [
|
48
|
+
{
|
49
|
+
"name": "name",
|
50
|
+
"summary": "Nom",
|
51
|
+
"required": true,
|
52
|
+
"description": "Nom de la variable",
|
53
|
+
"schema": {
|
54
|
+
"type": "object"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "value",
|
59
|
+
"summary": "Valeur",
|
60
|
+
"required": false,
|
61
|
+
"description": "Valeur à enregistrer",
|
62
|
+
"schema": {
|
63
|
+
"type": "object"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"name": "execute",
|
68
|
+
"summary": "Exécute",
|
69
|
+
"required": false,
|
70
|
+
"description": "Actions à appliquer sur la donnée enregistrée",
|
71
|
+
"schema": {
|
72
|
+
"type": "array",
|
73
|
+
"items": {
|
74
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"x-events": []
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"/defer": {
|
83
|
+
"post": {
|
84
|
+
"tags": ["web", "service", "spatial"],
|
85
|
+
"summary": "Différer l'exécution",
|
86
|
+
"description": "Diffère l'exécution d'une action",
|
87
|
+
"parameters": [
|
88
|
+
{
|
89
|
+
"name": "time",
|
90
|
+
"summary": "Temps",
|
91
|
+
"required": true,
|
92
|
+
"description": "Temps en millisecondes avant l'exécution",
|
93
|
+
"schema": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"name": "execute",
|
99
|
+
"summary": "Exécute",
|
100
|
+
"required": true,
|
101
|
+
"description": "Actions à différer",
|
102
|
+
"schema": {
|
103
|
+
"type": "array",
|
104
|
+
"items": {
|
105
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"x-events": []
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"/interval": {
|
114
|
+
"post": {
|
115
|
+
"tags": ["web", "service", "spatial"],
|
116
|
+
"summary": "Intervalle",
|
117
|
+
"description": "Exécute une action à intervalle régulier",
|
118
|
+
"parameters": [
|
119
|
+
{
|
120
|
+
"name": "time",
|
121
|
+
"summary": "Temps",
|
122
|
+
"required": true,
|
123
|
+
"description": "Temps en millisecondes entre chaque exécution",
|
124
|
+
"schema": {
|
125
|
+
"type": "number"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"name": "execute",
|
130
|
+
"summary": "Exécute",
|
131
|
+
"required": true,
|
132
|
+
"description": "Actions à exécuter",
|
133
|
+
"schema": {
|
134
|
+
"type": "array",
|
135
|
+
"items": {
|
136
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"x-events": []
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"/stopInterval": {
|
145
|
+
"post": {
|
146
|
+
"tags": ["web", "service", "spatial"],
|
147
|
+
"summary": "Arrêter l'intervalle",
|
148
|
+
"description": "Arrête l'intervalle d'exécution",
|
149
|
+
"parameters": [
|
150
|
+
{
|
151
|
+
"name": "id",
|
152
|
+
"summary": "ID",
|
153
|
+
"required": true,
|
154
|
+
"description": "ID de l'intervalle à arrêter",
|
155
|
+
"schema": {
|
156
|
+
"type": "object"
|
157
|
+
}
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"x-events": []
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"/stopDefer": {
|
164
|
+
"post": {
|
165
|
+
"tags": ["web", "service", "spatial"],
|
166
|
+
"summary": "Arrêter le différé",
|
167
|
+
"description": "Arrête le différé d'exécution",
|
168
|
+
"parameters": [
|
169
|
+
{
|
170
|
+
"name": "id",
|
171
|
+
"summary": "ID",
|
172
|
+
"required": true,
|
173
|
+
"description": "ID du différé à arrêter",
|
174
|
+
"schema": {
|
175
|
+
"type": "object"
|
176
|
+
}
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"x-events": []
|
180
|
+
}
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"components": {
|
184
|
+
"schemas": {}
|
185
|
+
}
|
186
|
+
}
|
package/schema.json
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
{
|
2
|
+
"openapi": "3.0.0",
|
3
|
+
"info": {
|
4
|
+
"title": "@digipair/skill-basic",
|
5
|
+
"summary": "Data Management",
|
6
|
+
"description": "This skill allows for the manipulation and transformation of data.",
|
7
|
+
"version": "0.1.0",
|
8
|
+
"x-icon": "📝"
|
9
|
+
},
|
10
|
+
"paths": {
|
11
|
+
"/transform": {
|
12
|
+
"post": {
|
13
|
+
"tags": ["web", "service", "spatial"],
|
14
|
+
"summary": "Transform the data",
|
15
|
+
"description": "Transforms a value using the standard data transformation mechanics of the engine.",
|
16
|
+
"parameters": [
|
17
|
+
{
|
18
|
+
"name": "value",
|
19
|
+
"summary": "Value",
|
20
|
+
"required": false,
|
21
|
+
"description": "Value to be transformed",
|
22
|
+
"schema": {
|
23
|
+
"type": "object"
|
24
|
+
}
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "execute",
|
28
|
+
"summary": "Execute",
|
29
|
+
"required": false,
|
30
|
+
"description": "Actions to apply to the data",
|
31
|
+
"schema": {
|
32
|
+
"type": "array",
|
33
|
+
"items": {
|
34
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"x-events": []
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"/setVariable": {
|
43
|
+
"post": {
|
44
|
+
"tags": ["web", "service", "spatial"],
|
45
|
+
"summary": "Save the variable",
|
46
|
+
"description": "Saves the variable in the context of the skill.",
|
47
|
+
"parameters": [
|
48
|
+
{
|
49
|
+
"name": "name",
|
50
|
+
"summary": "Name",
|
51
|
+
"required": true,
|
52
|
+
"description": "Name of the variable",
|
53
|
+
"schema": {
|
54
|
+
"type": "object"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "value",
|
59
|
+
"summary": "Value",
|
60
|
+
"required": false,
|
61
|
+
"description": "Value to be saved",
|
62
|
+
"schema": {
|
63
|
+
"type": "object"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"name": "execute",
|
68
|
+
"summary": "Execute",
|
69
|
+
"required": false,
|
70
|
+
"description": "Actions to apply to the saved data",
|
71
|
+
"schema": {
|
72
|
+
"type": "array",
|
73
|
+
"items": {
|
74
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"x-events": []
|
80
|
+
}
|
81
|
+
},
|
82
|
+
"/defer": {
|
83
|
+
"post": {
|
84
|
+
"tags": ["web", "service", "spatial"],
|
85
|
+
"summary": "Defer",
|
86
|
+
"description": "Executes an action after a delay",
|
87
|
+
"parameters": [
|
88
|
+
{
|
89
|
+
"name": "time",
|
90
|
+
"summary": "Time",
|
91
|
+
"required": true,
|
92
|
+
"description": "Time in milliseconds to wait before executing",
|
93
|
+
"schema": {
|
94
|
+
"type": "number"
|
95
|
+
}
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"name": "execute",
|
99
|
+
"summary": "Execute",
|
100
|
+
"required": true,
|
101
|
+
"description": "Actions to execute",
|
102
|
+
"schema": {
|
103
|
+
"type": "array",
|
104
|
+
"items": {
|
105
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"x-events": []
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"/interval": {
|
114
|
+
"post": {
|
115
|
+
"tags": ["web", "service", "spatial"],
|
116
|
+
"summary": "Interval",
|
117
|
+
"description": "Executes an action at regular intervals",
|
118
|
+
"parameters": [
|
119
|
+
{
|
120
|
+
"name": "time",
|
121
|
+
"summary": "Time",
|
122
|
+
"required": true,
|
123
|
+
"description": "Time in milliseconds between each execution",
|
124
|
+
"schema": {
|
125
|
+
"type": "number"
|
126
|
+
}
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"name": "execute",
|
130
|
+
"summary": "Execute",
|
131
|
+
"required": true,
|
132
|
+
"description": "Actions to execute",
|
133
|
+
"schema": {
|
134
|
+
"type": "array",
|
135
|
+
"items": {
|
136
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"x-events": []
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"/stopInterval": {
|
145
|
+
"post": {
|
146
|
+
"tags": ["web", "service", "spatial"],
|
147
|
+
"summary": "Stop the interval",
|
148
|
+
"description": "Stops the interval from executing",
|
149
|
+
"parameters": [
|
150
|
+
{
|
151
|
+
"name": "id",
|
152
|
+
"summary": "ID",
|
153
|
+
"required": true,
|
154
|
+
"description": "ID of the interval to stop",
|
155
|
+
"schema": {
|
156
|
+
"type": "object"
|
157
|
+
}
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"x-events": []
|
161
|
+
}
|
162
|
+
},
|
163
|
+
"/stopDefer": {
|
164
|
+
"post": {
|
165
|
+
"tags": ["web", "service", "spatial"],
|
166
|
+
"summary": "Stop the defer",
|
167
|
+
"description": "Stops the deferred action from executing",
|
168
|
+
"parameters": [
|
169
|
+
{
|
170
|
+
"name": "id",
|
171
|
+
"summary": "ID",
|
172
|
+
"required": true,
|
173
|
+
"description": "ID of the deferred action to stop",
|
174
|
+
"schema": {
|
175
|
+
"type": "object"
|
176
|
+
}
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"x-events": []
|
180
|
+
}
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"components": {
|
184
|
+
"schemas": {}
|
185
|
+
}
|
186
|
+
}
|