-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcomponent.json
More file actions
311 lines (311 loc) · 9.49 KB
/
Copy pathcomponent.json
File metadata and controls
311 lines (311 loc) · 9.49 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
{
"title": "example component",
"description": "An example component with implementations of OIH actions.",
"version": "2.0.1",
"credentials": {
"fields": {
"url": {
"viewClass": "TextFieldView",
"label": "API Base URI",
"required": true,
"placeholder": "http://localhost:3000"
},
"username": {
"viewClass": "TextFieldView",
"label": "Username",
"required": true,
"placeholder": "myUsername"
},
"password": {
"viewClass": "PasswordFieldView",
"label": "Password",
"required": true
}
}
},
"actions": {
"makeRawRequest": {
"main": "./src/actions/rawRequest.js",
"title": "Make Raw Request",
"help": {
"description": "Manually construct a request to send to the server.",
"link": "/example-component/#make-raw-request"
},
"fields": {
"doNotThrow404": {
"label": "Don't throw error on 404 Response",
"viewClass": "CheckBoxView"
}
},
"metadata": {
"in": "./src/schemas/actions/rawRequest.in.json",
"out": "./src/schemas/actions/rawRequest.out.json"
}
},
"lookupObject": {
"main": "./src/actions/lookupObject.js",
"title": "Lookup object (at most one)",
"help": {
"description": "Lookup Object by Unique Criteria",
"link": "/example-component/#lookup-object-at-most-one"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to lookup",
"required": true,
"order": 10,
"model": {
"products": "Products",
"users": "Users"
}
},
"lookupCriteria": {
"label": "Lookup Criteria",
"prompt": "Please select the unique field with which you want to lookup the object",
"viewClass": "SelectView",
"required": true,
"require": [
"objectType"
],
"order": 5,
"model": "getLookupCriteriaModel"
},
"allowCriteriaToBeOmitted": {
"label": "Allow criteria to be omitted",
"viewClass": "CheckBoxView",
"order": 4,
"note": "If selected, the `Lookup Criteria Value` field is not required"
},
"allowZeroResults": {
"label": "Allow zero results",
"viewClass": "CheckBoxView",
"order": 3,
"note": "When zero objects are found the empty object will be emitted instead of an error"
}
},
"dynamicMetadata": true
},
"upsertObject": {
"main": "./src/actions/upsertObject.js",
"title": "Upsert Object",
"help": {
"description": "Upsert Object",
"link": "/example-component/#upsert-object"
},
"fields": {
"objectType": {
"viewClass": "SelectView",
"order": 10,
"required": true,
"label": "Object type",
"prompt": "Select an Object Type",
"model": {
"users": "Users"
}
}
},
"dynamicMetadata": true
},
"deleteObject": {
"main": "./src/actions/deleteObject.js",
"title": "Delete Object",
"help": {
"description": "Delete Object",
"link": "/example-component/#delete-object"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to lookup",
"required": true,
"order": 10,
"model": {
"products": "Products",
"users": "Users"
}
},
"lookupCriteria": {
"label": "Lookup Criteria",
"prompt": "Please select the unique field with which you want to lookup the object",
"viewClass": "SelectView",
"required": true,
"require": [
"objectType"
],
"order": 5,
"model": "getLookupCriteriaModel"
}
},
"metadata": {
"in": "./src/schemas/actions/deleteObject.in.json",
"out": "./src/schemas/actions/deleteObject.out.json"
}
},
"lookupObjects": {
"main": "./src/actions/lookupObjects.js",
"title": "Lookup Objects (plural)",
"help": {
"description": "Lookup Objects (plural)",
"link": "/example-component/#lookup-objects-plural"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to lookup",
"required": true,
"order": 10,
"model": {
"products": "Products",
"users": "Users"
}
},
"emitBehavior": {
"order": 8,
"viewClass": "SelectView",
"label": "Emit Behavior",
"required": true,
"model": {
"emitAll": "Emit all",
"emitPage": "Emit page",
"emitIndividually": "Emit individually"
},
"prompt": "Select an emit behavior"
},
"termNumber": {
"order": 5,
"viewClass": "TextFieldView",
"label": "Number of search terms",
"required": false,
"placeholder": "Please specify a number of search terms",
"note": "Enter a positive integer number [1-99] or 0 to lookup all entities of chosen type"
}
},
"dynamicMetadata": true
},
"lookupObjectById": {
"main": "./src/actions/lookupObjectById.js",
"title": "Lookup Object By ID",
"help": {
"description": "Lookup Object By ID",
"link": "/example-component/#lookup-object-by-id"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to lookup",
"required": true,
"order": 10,
"model": {
"products": "Products",
"users": "Users"
}
}
},
"metadata": {
"in": "./src/schemas/actions/lookupObjectById.in.json",
"out": "./src/schemas/actions/lookupObjectById.out.json"
}
},
"deleteObjectById": {
"main": "./src/actions/deleteObjectById.js",
"title": "Delete Object By ID",
"help": {
"description": "Delete Object By ID",
"link": "/example-component/#delete-object-by-id"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to lookup",
"required": true,
"order": 10,
"model": {
"products": "Products",
"users": "Users"
}
}
},
"metadata": {
"in": "./src/schemas/actions/deleteObjectById.in.json",
"out": "./src/schemas/actions/deleteObjectById.out.json"
}
}
},
"triggers": {
"getNewAndUpdatedObjectsPolling": {
"main": "./src/triggers/getNewAndUpdatedObjectsPolling.js",
"title": "Get New and Updated Objects Polling",
"type": "polling",
"help": {
"description": "Poll for new and/or updated objects",
"link": "/example-component/#get-new-and-updated-objects-polling"
},
"fields": {
"objectType": {
"label": "Object Type",
"viewClass": "SelectView",
"prompt": "Please select the type of object to poll on",
"required": true,
"order": 10,
"model": {
"product": "Products",
"product-model": "Product models",
"locale": "Locales",
"attribute": "Attributes",
"attribute-group": "Attribute groups",
"family": "Families",
"category": "Categories"
}
},
"pollConfig": {
"label": "Time stamp field to poll on",
"viewClass": "SelectView",
"required": false,
"order": 8,
"placeholder": "Last Modified",
"model": {
"created": "Created",
"lastModified": "Last Modified"
},
"prompt": "Please select a Time stamp field to poll on. Default: Last Modified"
},
"emitBehavior": {
"order": 6,
"viewClass": "SelectView",
"label": "Emit Behavior",
"required": false,
"placeholder": "Emit individually",
"prompt": "Select an output method. Defaults to: Emit individually",
"model": {
"emitIndividually": "Emit individually",
"emitPage": "Emit page"
}
},
"startTime": {
"label": "Start Time",
"viewClass": "TextFieldView",
"order": 5,
"placeholder": "1970-01-01T00:00:00.000Z",
"note": "Beginning time to start polling from (inclusive) in format \"YYYY-MM-DD[T]HH:MM:SS[Z]\" where [] wraps a fixed character value. Defaults to 1970-01-01T00:00:00.000Z"
},
"endTime": {
"label": "End Time",
"viewClass": "TextFieldView",
"order": 4,
"placeholder": "1970-01-01T00:00:00.000Z",
"note": "End time to stop polling at (inclusive) in format \"YYYY-MM-DD[T]HH:MM:SS[Z]\" where [] wraps a fixed character value. Defaults to never"
}
},
"metadata": {
"in": {},
"out": {}
}
}
}
}