eligius 1.3.1 → 1.4.1
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/dist/index.d.ts +980 -104
- package/dist/index.js +1146 -185
- package/dist/index.js.map +1 -1
- package/jsonschema/endable-action-template.json +186 -0
- package/jsonschema/endable-action.json +186 -0
- package/jsonschema/event-action.json +93 -0
- package/jsonschema/operation-templates/announce-to-screen-reader.json +43 -0
- package/jsonschema/operation-templates/clear-storage.json +43 -0
- package/jsonschema/operation-templates/compare-date.json +41 -0
- package/jsonschema/operation-templates/concatenate-strings.json +45 -0
- package/jsonschema/operation-templates/continue-for-each.json +1 -1
- package/jsonschema/operation-templates/filter-array.json +51 -0
- package/jsonschema/operation-templates/find-in-array.json +51 -0
- package/jsonschema/operation-templates/for-each.json +1 -1
- package/jsonschema/operation-templates/format-date.json +39 -0
- package/jsonschema/operation-templates/format-text.json +37 -0
- package/jsonschema/operation-templates/get-controller-from-element.json +1 -1
- package/jsonschema/operation-templates/get-current-time.json +26 -0
- package/jsonschema/operation-templates/get-focused-element.json +26 -0
- package/jsonschema/operation-templates/get-form-data.json +26 -0
- package/jsonschema/operation-templates/get-scroll-position.json +26 -0
- package/jsonschema/operation-templates/get-text-content.json +26 -0
- package/jsonschema/operation-templates/http-delete.json +45 -0
- package/jsonschema/operation-templates/http-post.json +51 -0
- package/jsonschema/operation-templates/http-put.json +51 -0
- package/jsonschema/operation-templates/is-element-in-viewport.json +26 -0
- package/jsonschema/operation-templates/load-from-storage.json +43 -0
- package/jsonschema/operation-templates/map-array.json +39 -0
- package/jsonschema/operation-templates/remove-controller-from-element.json +1 -1
- package/jsonschema/operation-templates/replace-string.json +43 -0
- package/jsonschema/operation-templates/replace-text.json +43 -0
- package/jsonschema/operation-templates/save-to-storage.json +49 -0
- package/jsonschema/operation-templates/scroll-to-element.json +45 -0
- package/jsonschema/operation-templates/scroll-to-position.json +49 -0
- package/jsonschema/operation-templates/set-focus.json +26 -0
- package/jsonschema/operation-templates/set-form-value.json +37 -0
- package/jsonschema/operation-templates/sort-array.json +49 -0
- package/jsonschema/operation-templates/split-string.json +43 -0
- package/jsonschema/operation-templates/substring-text.json +45 -0
- package/jsonschema/operation-templates/toggle-form-element.json +39 -0
- package/jsonschema/operation-templates/validate-form.json +39 -0
- package/jsonschema/operations/announce-to-screen-reader.json +47 -0
- package/jsonschema/operations/clear-storage.json +47 -0
- package/jsonschema/operations/compare-date.json +46 -0
- package/jsonschema/operations/concatenate-strings.json +49 -0
- package/jsonschema/operations/continue-for-each.json +1 -1
- package/jsonschema/operations/filter-array.json +53 -0
- package/jsonschema/operations/find-in-array.json +53 -0
- package/jsonschema/operations/for-each.json +1 -1
- package/jsonschema/operations/format-date.json +43 -0
- package/jsonschema/operations/format-text.json +41 -0
- package/jsonschema/operations/get-controller-from-element.json +1 -1
- package/jsonschema/operations/get-current-time.json +26 -0
- package/jsonschema/operations/get-focused-element.json +26 -0
- package/jsonschema/operations/get-form-data.json +26 -0
- package/jsonschema/operations/get-scroll-position.json +26 -0
- package/jsonschema/operations/get-text-content.json +26 -0
- package/jsonschema/operations/http-delete.json +49 -0
- package/jsonschema/operations/http-post.json +55 -0
- package/jsonschema/operations/http-put.json +55 -0
- package/jsonschema/operations/is-element-in-viewport.json +26 -0
- package/jsonschema/operations/load-from-storage.json +48 -0
- package/jsonschema/operations/map-array.json +43 -0
- package/jsonschema/operations/remove-controller-from-element.json +1 -1
- package/jsonschema/operations/replace-string.json +48 -0
- package/jsonschema/operations/replace-text.json +48 -0
- package/jsonschema/operations/save-to-storage.json +55 -0
- package/jsonschema/operations/scroll-to-element.json +47 -0
- package/jsonschema/operations/scroll-to-position.json +54 -0
- package/jsonschema/operations/set-focus.json +26 -0
- package/jsonschema/operations/set-form-value.json +41 -0
- package/jsonschema/operations/sort-array.json +51 -0
- package/jsonschema/operations/split-string.json +47 -0
- package/jsonschema/operations/substring-text.json +49 -0
- package/jsonschema/operations/toggle-form-element.json +43 -0
- package/jsonschema/operations/validate-form.json +41 -0
- package/jsonschema/timeline-action.json +186 -0
- package/package.json +7 -6
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/split-string-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The splitString schema",
|
|
7
|
+
"description": "Splits a string into an array by delimiter (string or regex).",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "splitString"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"delimiter": {
|
|
31
|
+
"$id": "#/properties/operationData/delimiter",
|
|
32
|
+
"type": "array"
|
|
33
|
+
},
|
|
34
|
+
"limit": {
|
|
35
|
+
"$id": "#/properties/operationData/limit",
|
|
36
|
+
"type": [
|
|
37
|
+
"number"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/substring-text-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The substringText schema",
|
|
7
|
+
"description": "Extracts a substring from text between start and end indices.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "substringText"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"start": {
|
|
31
|
+
"$id": "#/properties/operationData/start",
|
|
32
|
+
"type": [
|
|
33
|
+
"number"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"end": {
|
|
37
|
+
"$id": "#/properties/operationData/end",
|
|
38
|
+
"type": [
|
|
39
|
+
"number"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/toggle-form-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The toggleFormElement schema",
|
|
7
|
+
"description": "Enables or disables form input elements (inputs, selects, textareas, buttons).\n\nSets the `disabled` property on the element. When `enabled` is true, removes the disabled\nattribute; when false, adds the disabled attribute.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "toggleFormElement"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"enabled": {
|
|
31
|
+
"$id": "#/properties/operationData/enabled",
|
|
32
|
+
"type": [
|
|
33
|
+
"boolean"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/validate-form-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The validateForm schema",
|
|
7
|
+
"description": "Validates form fields against HTML5 validation and custom rules.\n\nUses HTML5 validation API (checkValidity()) for native validation, and supports\ncustom validation rules for: required, minLength, maxLength, pattern (regex), and email format.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "validateForm"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"validationRules": {
|
|
31
|
+
"$id": "#/properties/operationData/validationRules",
|
|
32
|
+
"type": [
|
|
33
|
+
"object"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/announce-to-screen-reader-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The announceToScreenReader schema",
|
|
7
|
+
"description": "Announces a message to screen readers using an ARIA live region.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "announceToScreenReader"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"message"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"message": {
|
|
35
|
+
"$id": "#/properties/operationData/message",
|
|
36
|
+
"type": [
|
|
37
|
+
"string"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"priority": {
|
|
41
|
+
"$id": "#/properties/operationData/priority",
|
|
42
|
+
"type": "array"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/clear-storage-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The clearStorage schema",
|
|
7
|
+
"description": "Clears data from browser storage (localStorage or sessionStorage).\n\nIf `key` is provided, removes only that key. If `key` is omitted, clears all storage.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "clearStorage"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"storageType"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"key": {
|
|
35
|
+
"$id": "#/properties/operationData/key",
|
|
36
|
+
"type": [
|
|
37
|
+
"string"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"storageType": {
|
|
41
|
+
"$id": "#/properties/operationData/storageType",
|
|
42
|
+
"type": "array"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/compare-date-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The compareDate schema",
|
|
7
|
+
"description": "Compares two dates.\ncomparison: -1 (before), 0 (equal), 1 (after)",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "compareDate"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"date1",
|
|
32
|
+
"date2"
|
|
33
|
+
],
|
|
34
|
+
"properties": {
|
|
35
|
+
"date1": {
|
|
36
|
+
"$id": "#/properties/operationData/date1",
|
|
37
|
+
"type": "array"
|
|
38
|
+
},
|
|
39
|
+
"date2": {
|
|
40
|
+
"$id": "#/properties/operationData/date2",
|
|
41
|
+
"type": "array"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/concatenate-strings-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The concatenateStrings schema",
|
|
7
|
+
"description": "Concatenates multiple strings with an optional separator.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "concatenateStrings"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"strings"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"strings": {
|
|
35
|
+
"$id": "#/properties/operationData/strings",
|
|
36
|
+
"type": [
|
|
37
|
+
"array"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"separator": {
|
|
41
|
+
"$id": "#/properties/operationData/separator",
|
|
42
|
+
"type": [
|
|
43
|
+
"string"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/continue-for-each-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The continueForEach schema",
|
|
7
|
-
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
7
|
+
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest\nof the operations in the current iteration.",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName"
|
|
10
10
|
],
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/filter-array-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The filterArray schema",
|
|
7
|
+
"description": "Filters an array based on property equality or custom predicate function.\n\nOperates on arrayData passed from previous operations.\nSupports two filtering modes:\n1. Property equality: `filterProperty` and `filterValue` to filter by property match\n2. Custom predicate: `filterPredicate` function for complex filtering logic",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "filterArray"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [],
|
|
31
|
+
"properties": {
|
|
32
|
+
"filterProperty": {
|
|
33
|
+
"$id": "#/properties/operationData/filterProperty",
|
|
34
|
+
"type": [
|
|
35
|
+
"string"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"filterValue": {
|
|
39
|
+
"$id": "#/properties/operationData/filterValue",
|
|
40
|
+
"type": [
|
|
41
|
+
"object"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"filterPredicate": {
|
|
45
|
+
"$id": "#/properties/operationData/filterPredicate",
|
|
46
|
+
"type": [
|
|
47
|
+
"string"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/find-in-array-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The findInArray schema",
|
|
7
|
+
"description": "Finds the first element in an array matching criteria.\n\nOperates on arrayData passed from previous operations.\nSupports two search modes:\n1. Property equality: `findProperty` and `findValue` to find by property match\n2. Custom predicate: `findPredicate` function for complex search logic\n\nReturns `undefined` for `foundItem` and `-1` for `foundIndex` if no match found.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "findInArray"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [],
|
|
31
|
+
"properties": {
|
|
32
|
+
"findProperty": {
|
|
33
|
+
"$id": "#/properties/operationData/findProperty",
|
|
34
|
+
"type": [
|
|
35
|
+
"string"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"findValue": {
|
|
39
|
+
"$id": "#/properties/operationData/findValue",
|
|
40
|
+
"type": [
|
|
41
|
+
"object"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"findPredicate": {
|
|
45
|
+
"$id": "#/properties/operationData/findPredicate",
|
|
46
|
+
"type": [
|
|
47
|
+
"string"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/for-each-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The forEach schema",
|
|
7
|
-
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.\n\nThe {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
|
|
7
|
+
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.\n\nThe {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the\nloop iterations.",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName",
|
|
10
10
|
"operationData"
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/format-date-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The formatDate schema",
|
|
7
|
+
"description": "Formats a date using Intl.DateTimeFormat or simple patterns.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "formatDate"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"format"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"format": {
|
|
35
|
+
"$id": "#/properties/operationData/format",
|
|
36
|
+
"type": [
|
|
37
|
+
"string"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/format-text-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The formatText schema",
|
|
7
|
+
"description": "Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.\n\nOperates on textContent passed from previous operations (e.g., getTextContent).\n\nTransformations:\n- `uppercase`: Convert all characters to uppercase\n- `lowercase`: Convert all characters to lowercase\n- `capitalize`: Capitalize only the first letter\n- `titlecase`: Capitalize first letter of each word\n- `trim`: Remove leading and trailing whitespace",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "formatText"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"transformation"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"transformation": {
|
|
35
|
+
"$id": "#/properties/operationData/transformation",
|
|
36
|
+
"type": "array"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-current-time-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getCurrentTime schema",
|
|
7
|
+
"description": "Gets the current time as timestamp and Date object.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "getCurrentTime"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-focused-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getFocusedElement schema",
|
|
7
|
+
"description": "Gets the currently focused element.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "getFocusedElement"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-form-data-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getFormData schema",
|
|
7
|
+
"description": "Extracts all input, select, and textarea values from form element into operation data.\n\nThis operation reads form field values and returns them as an object with field names as keys.\nOnly processes form elements that are enabled and not hidden. Handles checkboxes, radio buttons,\nselect elements, textareas, and text inputs.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "getFormData"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|