forked from elasticio/odata-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.json
99 lines (99 loc) · 2.95 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"title": "OData",
"buildType": "docker",
"description": "A component designed to work with OData services.",
"version": "3.0.3",
"credentials": {
"fields": {
"auth": {
"required": false,
"viewClass": "HTTPAuthView"
},
"resourceServerUrl": {
"viewClass": "TextFieldView",
"label": "The URL of the OData service to consume",
"required": true,
"placeholder": "https://example.com/odataService"
}
}
},
"triggers": {
"getObjectsPolling": {
"main": "./lib/triggers/getObjectsPolling.js",
"type": "polling",
"title": "Fetch new and updated objects (getObjects - Polling)",
"help": {
"description": "Get objects which have recently been modified or created",
"link": "/components/odata/index.html#get-objects-polling"
},
"fields": {
"objectType": {
"label": "Object type to fetch",
"required": true,
"viewClass": "SelectView",
"model": "getObjects",
"prompt": "Select an object"
}
},
"metadata": {
"out": {}
}
}
},
"actions": {
"upsertObject": {
"main": "./lib/actions/upsertObject.js",
"title": "Upsert Object By ID",
"help": {
"description": "Update an existing entry with the id provided. Otherwise create a new entry.",
"link": "/components/odata/index.html#upsert-object-by-id"
},
"dynamicMetadata": true,
"fields": {
"objectType": {
"label": "Object Type to Upsert",
"required": true,
"viewClass": "SelectView",
"model": "getObjects",
"prompt": "Select an object"
}
}
},
"lookupObjectByFields": {
"main": "./lib/actions/lookupObjectByFields.js",
"title": "Lookup Object By Field",
"help": {
"description": "Given a field and a field value that matches exactly one record, find that matching record.",
"link": "/components/odata/index.html#lookup-object-by-field"
},
"fields": {
"objectType": {
"label": "Object Type to Lookup",
"required": true,
"viewClass": "SelectView",
"model": "getObjects",
"prompt": "Select an object"
},
"fieldName": {
"label": "Name of Field to Match",
"required": true,
"viewClass": "SelectView",
"model": "getFieldsForObject",
"prompt": "Select a Field"
},
"allowEmptyCriteria": {
"label": "Allow Empty Criteria",
"required": true,
"viewClass": "SelectView",
"prompt": "Select a value",
"model": {
"1": "Yes",
"0": "No"
},
"note": "Should the lookup operation be skipped (i.e. this component becomes a No-op which emits the empty message) if all criteria are empty?"
}
},
"dynamicMetadata": true
}
}
}