@epilot/entity-mapping-client 0.4.1 → 0.5.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/definition.js +1 -1
- package/dist/openapi-runtime.json +153 -0
- package/dist/openapi.d.ts +5 -1
- package/dist/openapi.json +1358 -1358
- package/package.json +4 -4
- package/LICENSE +0 -21
package/dist/openapi.json
CHANGED
|
@@ -1,1422 +1,1422 @@
|
|
|
1
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
|
-
"responses": {
|
|
39
|
-
"201": {
|
|
40
|
-
"description": "The updated entity mapping config",
|
|
41
|
-
"content": {
|
|
42
|
-
"application/json": {
|
|
43
|
-
"schema": {
|
|
44
|
-
"$ref": "#/components/schemas/MappingConfig"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
2
|
+
"openapi": "3.0.3",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "Entity Mapping API",
|
|
5
|
+
"description": "API Backend for mapping source entity into target entities",
|
|
6
|
+
"version": "1.0.0"
|
|
7
|
+
},
|
|
8
|
+
"tags": [
|
|
9
|
+
{
|
|
10
|
+
"name": "mappings",
|
|
11
|
+
"description": "Entity Mapping Configs"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"security": [
|
|
15
|
+
{
|
|
16
|
+
"EpilotAuth": []
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/v1/mappings": {
|
|
21
|
+
"post": {
|
|
22
|
+
"operationId": "storeConfig",
|
|
23
|
+
"summary": "storeConfig",
|
|
24
|
+
"description": "Store new MappingConfig",
|
|
25
|
+
"tags": [
|
|
26
|
+
"mappings"
|
|
27
|
+
],
|
|
28
|
+
"requestBody": {
|
|
29
|
+
"description": "Mapping Config to store",
|
|
30
|
+
"content": {
|
|
31
|
+
"application/json": {
|
|
32
|
+
"schema": {
|
|
33
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
34
|
+
}
|
|
50
35
|
}
|
|
36
|
+
}
|
|
51
37
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
],
|
|
60
|
-
"parameters": [
|
|
61
|
-
{
|
|
62
|
-
"name": "id",
|
|
63
|
-
"in": "path",
|
|
64
|
-
"required": true,
|
|
65
|
-
"description": "Mapping Config Id",
|
|
66
|
-
"schema": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"example": "uuidv4"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
],
|
|
72
|
-
"responses": {
|
|
73
|
-
"200": {
|
|
74
|
-
"description": "Entity Mapping Config",
|
|
75
|
-
"content": {
|
|
76
|
-
"application/json": {
|
|
77
|
-
"schema": {
|
|
78
|
-
"$ref": "#/components/schemas/MappingConfig"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
38
|
+
"responses": {
|
|
39
|
+
"201": {
|
|
40
|
+
"description": "The updated entity mapping config",
|
|
41
|
+
"content": {
|
|
42
|
+
"application/json": {
|
|
43
|
+
"schema": {
|
|
44
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
83
45
|
}
|
|
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
|
-
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"/v1/mappings/{id}": {
|
|
53
|
+
"get": {
|
|
54
|
+
"operationId": "getConfig",
|
|
55
|
+
"summary": "getConfig",
|
|
56
|
+
"description": "Get latest version of a mapping config by id",
|
|
57
|
+
"tags": [
|
|
58
|
+
"mappings"
|
|
59
|
+
],
|
|
60
|
+
"parameters": [
|
|
61
|
+
{
|
|
62
|
+
"name": "id",
|
|
63
|
+
"in": "path",
|
|
64
|
+
"required": true,
|
|
65
|
+
"description": "Mapping Config Id",
|
|
66
|
+
"schema": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"example": "uuidv4"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"responses": {
|
|
73
|
+
"200": {
|
|
74
|
+
"description": "Entity Mapping Config",
|
|
75
|
+
"content": {
|
|
76
|
+
"application/json": {
|
|
77
|
+
"schema": {
|
|
78
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
115
79
|
}
|
|
80
|
+
}
|
|
116
81
|
}
|
|
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
|
-
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"delete": {
|
|
86
|
+
"operationId": "deleteConfig",
|
|
87
|
+
"summary": "deleteConfig",
|
|
88
|
+
"description": "Delete entity mapping config",
|
|
89
|
+
"tags": [
|
|
90
|
+
"mappings"
|
|
91
|
+
],
|
|
92
|
+
"parameters": [
|
|
93
|
+
{
|
|
94
|
+
"name": "id",
|
|
95
|
+
"in": "path",
|
|
96
|
+
"required": true,
|
|
97
|
+
"description": "Mapping Config Id",
|
|
98
|
+
"schema": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"example": "uuidv4"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"responses": {
|
|
105
|
+
"200": {
|
|
106
|
+
"description": "The deleted mapping config",
|
|
107
|
+
"content": {
|
|
108
|
+
"application/json": {
|
|
109
|
+
"schema": {
|
|
110
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
149
111
|
}
|
|
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
|
-
"content": {
|
|
184
|
-
"application/json": {
|
|
185
|
-
"schema": {
|
|
186
|
-
"$ref": "#/components/schemas/MappingConfig"
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"/v1/mappings/{id}/versions": {
|
|
119
|
+
"get": {
|
|
120
|
+
"operationId": "getAllVersions",
|
|
121
|
+
"summary": "getAllVersions",
|
|
122
|
+
"description": "Get all version of MappingConfig",
|
|
123
|
+
"tags": [
|
|
124
|
+
"mappings"
|
|
125
|
+
],
|
|
126
|
+
"parameters": [
|
|
127
|
+
{
|
|
128
|
+
"name": "id",
|
|
129
|
+
"in": "path",
|
|
130
|
+
"required": true,
|
|
131
|
+
"description": "Mapping Config Id",
|
|
132
|
+
"schema": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"example": "uuidv4"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"responses": {
|
|
139
|
+
"200": {
|
|
140
|
+
"description": "All versions of a MappingConfig",
|
|
141
|
+
"content": {
|
|
142
|
+
"application/json": {
|
|
143
|
+
"schema": {
|
|
144
|
+
"$ref": "#/components/schemas/MappingConfigsResp"
|
|
191
145
|
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"post": {
|
|
152
|
+
"operationId": "storeNewVersion",
|
|
153
|
+
"summary": "storeNewVersion",
|
|
154
|
+
"description": "Store new version of MappingConfig",
|
|
155
|
+
"tags": [
|
|
156
|
+
"mappings"
|
|
157
|
+
],
|
|
158
|
+
"parameters": [
|
|
159
|
+
{
|
|
160
|
+
"name": "id",
|
|
161
|
+
"in": "path",
|
|
162
|
+
"required": true,
|
|
163
|
+
"description": "Mapping Config Id",
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"example": "uuidv4"
|
|
192
167
|
}
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"requestBody": {
|
|
171
|
+
"description": "Mapping Config to store",
|
|
172
|
+
"content": {
|
|
173
|
+
"application/json": {
|
|
174
|
+
"schema": {
|
|
175
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
193
179
|
},
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
],
|
|
202
|
-
"parameters": [
|
|
203
|
-
{
|
|
204
|
-
"name": "id",
|
|
205
|
-
"in": "path",
|
|
206
|
-
"required": true,
|
|
207
|
-
"description": "Mapping Config Id",
|
|
208
|
-
"schema": {
|
|
209
|
-
"type": "string",
|
|
210
|
-
"example": "uuidv4"
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"name": "version",
|
|
215
|
-
"in": "path",
|
|
216
|
-
"required": true,
|
|
217
|
-
"description": "Version to be loaded",
|
|
218
|
-
"schema": {
|
|
219
|
-
"type": "number",
|
|
220
|
-
"example": 3
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
],
|
|
224
|
-
"responses": {
|
|
225
|
-
"200": {
|
|
226
|
-
"description": "Entity Mapping Config",
|
|
227
|
-
"content": {
|
|
228
|
-
"application/json": {
|
|
229
|
-
"schema": {
|
|
230
|
-
"$ref": "#/components/schemas/MappingConfig"
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
180
|
+
"responses": {
|
|
181
|
+
"200": {
|
|
182
|
+
"description": "The updated entity mapping config",
|
|
183
|
+
"content": {
|
|
184
|
+
"application/json": {
|
|
185
|
+
"schema": {
|
|
186
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
235
187
|
}
|
|
188
|
+
}
|
|
236
189
|
}
|
|
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
|
-
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"/v1/mappings/{id}/versions/{version}": {
|
|
195
|
+
"get": {
|
|
196
|
+
"operationId": "getConfigVersion",
|
|
197
|
+
"summary": "getConfigVersion",
|
|
198
|
+
"description": "Get specific version of a mapping config by id & version",
|
|
199
|
+
"tags": [
|
|
200
|
+
"mappings"
|
|
201
|
+
],
|
|
202
|
+
"parameters": [
|
|
203
|
+
{
|
|
204
|
+
"name": "id",
|
|
205
|
+
"in": "path",
|
|
206
|
+
"required": true,
|
|
207
|
+
"description": "Mapping Config Id",
|
|
208
|
+
"schema": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"example": "uuidv4"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "version",
|
|
215
|
+
"in": "path",
|
|
216
|
+
"required": true,
|
|
217
|
+
"description": "Version to be loaded",
|
|
218
|
+
"schema": {
|
|
219
|
+
"type": "number",
|
|
220
|
+
"example": 3
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"responses": {
|
|
225
|
+
"200": {
|
|
226
|
+
"description": "Entity Mapping Config",
|
|
227
|
+
"content": {
|
|
228
|
+
"application/json": {
|
|
229
|
+
"schema": {
|
|
230
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
278
231
|
}
|
|
232
|
+
}
|
|
279
233
|
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"/v1/mappings:execute": {
|
|
239
|
+
"post": {
|
|
240
|
+
"operationId": "executeMapping",
|
|
241
|
+
"summary": "executeMapping",
|
|
242
|
+
"description": "Execute entity mapping based on a config",
|
|
243
|
+
"parameters": [
|
|
244
|
+
{
|
|
245
|
+
"name": "preview_mode",
|
|
246
|
+
"in": "query",
|
|
247
|
+
"required": false,
|
|
248
|
+
"description": "True, if you want to preview the entities which will result",
|
|
249
|
+
"schema": {
|
|
250
|
+
"type": "boolean",
|
|
251
|
+
"example": true
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"requestBody": {
|
|
256
|
+
"content": {
|
|
257
|
+
"application/json": {
|
|
258
|
+
"schema": {
|
|
259
|
+
"$ref": "#/components/schemas/ExecuteMappingReq"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
280
263
|
},
|
|
281
|
-
"
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
"content": {
|
|
292
|
-
"application/json": {
|
|
293
|
-
"schema": {
|
|
294
|
-
"$ref": "#/components/schemas/SearchMappingReq"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
"responses": {
|
|
300
|
-
"200": {
|
|
301
|
-
"description": "Entity Mapping Config",
|
|
302
|
-
"content": {
|
|
303
|
-
"application/json": {
|
|
304
|
-
"schema": {
|
|
305
|
-
"$ref": "#/components/schemas/MappingConfig"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
264
|
+
"tags": [
|
|
265
|
+
"mappings"
|
|
266
|
+
],
|
|
267
|
+
"responses": {
|
|
268
|
+
"200": {
|
|
269
|
+
"description": "The target entities which were mapped",
|
|
270
|
+
"content": {
|
|
271
|
+
"application/json": {
|
|
272
|
+
"schema": {
|
|
273
|
+
"$ref": "#/components/schemas/ExecuteMappingResp"
|
|
310
274
|
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"/v1/mappings:search": {
|
|
282
|
+
"post": {
|
|
283
|
+
"operationId": "searchConfigs",
|
|
284
|
+
"summary": "searchConfigs",
|
|
285
|
+
"description": "Search mapping configs",
|
|
286
|
+
"tags": [
|
|
287
|
+
"mappings"
|
|
288
|
+
],
|
|
289
|
+
"requestBody": {
|
|
290
|
+
"description": "Search Mapping Configs",
|
|
291
|
+
"content": {
|
|
292
|
+
"application/json": {
|
|
293
|
+
"schema": {
|
|
294
|
+
"$ref": "#/components/schemas/SearchMappingReq"
|
|
295
|
+
}
|
|
311
296
|
}
|
|
297
|
+
}
|
|
312
298
|
},
|
|
313
|
-
"
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
],
|
|
321
|
-
"parameters": [
|
|
322
|
-
{
|
|
323
|
-
"in": "query",
|
|
324
|
-
"name": "from",
|
|
325
|
-
"schema": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"format": "datetime"
|
|
328
|
-
},
|
|
329
|
-
"required": false,
|
|
330
|
-
"description": "filter the history from this date on"
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
"in": "query",
|
|
334
|
-
"name": "to",
|
|
335
|
-
"schema": {
|
|
336
|
-
"type": "string",
|
|
337
|
-
"format": "datetime"
|
|
338
|
-
},
|
|
339
|
-
"required": false,
|
|
340
|
-
"description": "filter the history to this date on"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"in": "query",
|
|
344
|
-
"name": "targetEntityId",
|
|
345
|
-
"schema": {
|
|
346
|
-
"type": "string",
|
|
347
|
-
"format": "uuid"
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
"in": "query",
|
|
352
|
-
"name": "sourceEntityId",
|
|
353
|
-
"schema": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"format": "uuid"
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
"responses": {
|
|
360
|
-
"200": {
|
|
361
|
-
"description": "Query result of mapping history",
|
|
362
|
-
"content": {
|
|
363
|
-
"application/json": {
|
|
364
|
-
"schema": {
|
|
365
|
-
"properties": {
|
|
366
|
-
"results": {
|
|
367
|
-
"type": "array",
|
|
368
|
-
"items": {
|
|
369
|
-
"$ref": "#/components/schemas/MappingHistoryResp"
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
299
|
+
"responses": {
|
|
300
|
+
"200": {
|
|
301
|
+
"description": "Entity Mapping Config",
|
|
302
|
+
"content": {
|
|
303
|
+
"application/json": {
|
|
304
|
+
"schema": {
|
|
305
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
377
306
|
}
|
|
307
|
+
}
|
|
378
308
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"/v1/mappings/history": {
|
|
314
|
+
"get": {
|
|
315
|
+
"operationId": "queryMappingHistory",
|
|
316
|
+
"summary": "queryMappingHistory",
|
|
317
|
+
"description": "Get the Mapping History",
|
|
318
|
+
"tags": [
|
|
319
|
+
"mappings"
|
|
320
|
+
],
|
|
321
|
+
"parameters": [
|
|
322
|
+
{
|
|
323
|
+
"in": "query",
|
|
324
|
+
"name": "from",
|
|
325
|
+
"schema": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"format": "datetime"
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"description": "filter the history from this date on"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"in": "query",
|
|
334
|
+
"name": "to",
|
|
335
|
+
"schema": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"format": "datetime"
|
|
338
|
+
},
|
|
339
|
+
"required": false,
|
|
340
|
+
"description": "filter the history to this date on"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"in": "query",
|
|
344
|
+
"name": "targetEntityId",
|
|
345
|
+
"schema": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"format": "uuid"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"in": "query",
|
|
352
|
+
"name": "sourceEntityId",
|
|
353
|
+
"schema": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"format": "uuid"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"responses": {
|
|
360
|
+
"200": {
|
|
361
|
+
"description": "Query result of mapping history",
|
|
362
|
+
"content": {
|
|
363
|
+
"application/json": {
|
|
364
|
+
"schema": {
|
|
365
|
+
"properties": {
|
|
366
|
+
"results": {
|
|
367
|
+
"type": "array",
|
|
368
|
+
"items": {
|
|
369
|
+
"$ref": "#/components/schemas/MappingHistoryResp"
|
|
370
|
+
}
|
|
407
371
|
}
|
|
372
|
+
}
|
|
408
373
|
}
|
|
374
|
+
}
|
|
409
375
|
}
|
|
376
|
+
}
|
|
410
377
|
}
|
|
378
|
+
}
|
|
411
379
|
},
|
|
412
|
-
"
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
380
|
+
"/v1/relations:execute": {
|
|
381
|
+
"post": {
|
|
382
|
+
"operationId": "executeRelations",
|
|
383
|
+
"summary": "executeRelations",
|
|
384
|
+
"description": "Execute relation mapping between source entity and target entities",
|
|
385
|
+
"requestBody": {
|
|
386
|
+
"content": {
|
|
387
|
+
"application/json": {
|
|
388
|
+
"schema": {
|
|
389
|
+
"$ref": "#/components/schemas/ExecuteRelationsReq"
|
|
390
|
+
}
|
|
418
391
|
}
|
|
392
|
+
}
|
|
419
393
|
},
|
|
420
|
-
"
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
394
|
+
"tags": [
|
|
395
|
+
"mappings"
|
|
396
|
+
],
|
|
397
|
+
"responses": {
|
|
398
|
+
"200": {
|
|
399
|
+
"description": "The relations which were for both source entity and main entity",
|
|
400
|
+
"content": {
|
|
401
|
+
"application/json": {
|
|
402
|
+
"schema": {
|
|
403
|
+
"$ref": "#/components/schemas/ExecuteRelationsResp"
|
|
427
404
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"components": {
|
|
413
|
+
"securitySchemes": {
|
|
414
|
+
"EpilotAuth": {
|
|
415
|
+
"type": "http",
|
|
416
|
+
"scheme": "bearer",
|
|
417
|
+
"description": "Epilot Bearer Token"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"schemas": {
|
|
421
|
+
"SearchMappingReq": {
|
|
422
|
+
"type": "object",
|
|
423
|
+
"properties": {
|
|
424
|
+
"source": {
|
|
425
|
+
"$ref": "#/components/schemas/SourceConfig"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"MappingConfigsResp": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"properties": {
|
|
432
|
+
"configs": {
|
|
433
|
+
"$ref": "#/components/schemas/MappingConfigs"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"required": [
|
|
437
|
+
"configs"
|
|
438
|
+
]
|
|
439
|
+
},
|
|
440
|
+
"MappingConfigs": {
|
|
441
|
+
"type": "array",
|
|
442
|
+
"items": {
|
|
443
|
+
"$ref": "#/components/schemas/MappingConfig"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"MappingConfig": {
|
|
447
|
+
"type": "object",
|
|
448
|
+
"properties": {
|
|
449
|
+
"id": {
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"org_id": {
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
"version": {
|
|
456
|
+
"type": "number"
|
|
457
|
+
},
|
|
458
|
+
"source": {
|
|
459
|
+
"$ref": "#/components/schemas/SourceConfig"
|
|
460
|
+
},
|
|
461
|
+
"targets": {
|
|
462
|
+
"type": "array",
|
|
463
|
+
"items": {
|
|
464
|
+
"$ref": "#/components/schemas/TargetConfig"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"created_at": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"format": "date-time"
|
|
470
|
+
},
|
|
471
|
+
"updated_at": {
|
|
472
|
+
"type": "string",
|
|
473
|
+
"format": "date-time"
|
|
474
|
+
},
|
|
475
|
+
"created_by": {
|
|
476
|
+
"$ref": "#/components/schemas/Owner",
|
|
477
|
+
"description": "User / service who created the entity mapping config",
|
|
478
|
+
"example": {
|
|
479
|
+
"type": "internal_service"
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
"last_updated_by": {
|
|
483
|
+
"$ref": "#/components/schemas/Owner",
|
|
484
|
+
"description": "User / service who last updated entity mapping config",
|
|
485
|
+
"example": {
|
|
486
|
+
"type": "user",
|
|
487
|
+
"org_id": 255151,
|
|
488
|
+
"user_id": 99252
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"required": [
|
|
493
|
+
"id",
|
|
494
|
+
"org_id",
|
|
495
|
+
"version",
|
|
496
|
+
"source",
|
|
497
|
+
"targets"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"Owner": {
|
|
501
|
+
"type": "object",
|
|
502
|
+
"properties": {
|
|
503
|
+
"type": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"enum": [
|
|
506
|
+
"user",
|
|
507
|
+
"internal_service"
|
|
508
|
+
]
|
|
509
|
+
},
|
|
510
|
+
"org_id": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"user_id": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"required": [
|
|
518
|
+
"type"
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
"ExecuteRelationsReq": {
|
|
522
|
+
"type": "object",
|
|
523
|
+
"description": "Build relations between a source entity and one or more target entities, dynamically identified",
|
|
524
|
+
"properties": {
|
|
525
|
+
"source_ref": {
|
|
526
|
+
"$ref": "#/components/schemas/EntityRef",
|
|
527
|
+
"description": "Entity for which to add relations."
|
|
528
|
+
},
|
|
529
|
+
"target": {
|
|
530
|
+
"type": "object",
|
|
531
|
+
"properties": {
|
|
532
|
+
"main_entity_ref": {
|
|
533
|
+
"$ref": "#/components/schemas/EntityRef",
|
|
534
|
+
"description": "Main Entity from where to locate target entities. Eg. submisssion entity"
|
|
535
|
+
},
|
|
536
|
+
"relation_attributes": {
|
|
441
537
|
"type": "array",
|
|
538
|
+
"description": "Relation mappings",
|
|
442
539
|
"items": {
|
|
443
|
-
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"MappingConfig": {
|
|
447
|
-
"type": "object",
|
|
448
|
-
"properties": {
|
|
449
|
-
"id": {
|
|
450
|
-
"type": "string"
|
|
451
|
-
},
|
|
452
|
-
"org_id": {
|
|
453
|
-
"type": "string"
|
|
454
|
-
},
|
|
455
|
-
"version": {
|
|
456
|
-
"type": "number"
|
|
457
|
-
},
|
|
458
|
-
"source": {
|
|
459
|
-
"$ref": "#/components/schemas/SourceConfig"
|
|
460
|
-
},
|
|
461
|
-
"targets": {
|
|
462
|
-
"type": "array",
|
|
463
|
-
"items": {
|
|
464
|
-
"$ref": "#/components/schemas/TargetConfig"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
"created_at": {
|
|
468
|
-
"type": "string",
|
|
469
|
-
"format": "date-time"
|
|
470
|
-
},
|
|
471
|
-
"updated_at": {
|
|
472
|
-
"type": "string",
|
|
473
|
-
"format": "date-time"
|
|
474
|
-
},
|
|
475
|
-
"created_by": {
|
|
476
|
-
"$ref": "#/components/schemas/Owner",
|
|
477
|
-
"description": "User / service who created the entity mapping config",
|
|
478
|
-
"example": {
|
|
479
|
-
"type": "internal_service"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
"last_updated_by": {
|
|
483
|
-
"$ref": "#/components/schemas/Owner",
|
|
484
|
-
"description": "User / service who last updated entity mapping config",
|
|
485
|
-
"example": {
|
|
486
|
-
"type": "user",
|
|
487
|
-
"org_id": 255151,
|
|
488
|
-
"user_id": 99252
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
"required": [
|
|
493
|
-
"id",
|
|
494
|
-
"org_id",
|
|
495
|
-
"version",
|
|
496
|
-
"source",
|
|
497
|
-
"targets"
|
|
498
|
-
]
|
|
499
|
-
},
|
|
500
|
-
"Owner": {
|
|
501
|
-
"type": "object",
|
|
502
|
-
"properties": {
|
|
503
|
-
"type": {
|
|
504
|
-
"type": "string",
|
|
505
|
-
"enum": [
|
|
506
|
-
"user",
|
|
507
|
-
"internal_service"
|
|
508
|
-
]
|
|
509
|
-
},
|
|
510
|
-
"org_id": {
|
|
511
|
-
"type": "string"
|
|
512
|
-
},
|
|
513
|
-
"user_id": {
|
|
514
|
-
"type": "string"
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
"required": [
|
|
518
|
-
"type"
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
"ExecuteRelationsReq": {
|
|
522
|
-
"type": "object",
|
|
523
|
-
"description": "Build relations between a source entity and one or more target entities, dynamically identified",
|
|
524
|
-
"properties": {
|
|
525
|
-
"source_ref": {
|
|
526
|
-
"$ref": "#/components/schemas/EntityRef",
|
|
527
|
-
"description": "Entity for which to add relations."
|
|
528
|
-
},
|
|
529
|
-
"target": {
|
|
530
|
-
"type": "object",
|
|
531
|
-
"properties": {
|
|
532
|
-
"main_entity_ref": {
|
|
533
|
-
"$ref": "#/components/schemas/EntityRef",
|
|
534
|
-
"description": "Main Entity from where to locate target entities. Eg. submisssion entity"
|
|
535
|
-
},
|
|
536
|
-
"relation_attributes": {
|
|
537
|
-
"type": "array",
|
|
538
|
-
"description": "Relation mappings",
|
|
539
|
-
"items": {
|
|
540
|
-
"$ref": "#/components/schemas/RelationAttribute"
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
"linkback": {
|
|
544
|
-
"type": "object",
|
|
545
|
-
"description": "For cases where you want to store a relation between main entity (eg. submission) and current source entity.",
|
|
546
|
-
"properties": {
|
|
547
|
-
"attribute": {
|
|
548
|
-
"type": "string",
|
|
549
|
-
"default": "mapped_entities",
|
|
550
|
-
"description": "Relation attribute on the main entity (submission) where the target entity will be linked. Set to false to disable linkback\n"
|
|
551
|
-
},
|
|
552
|
-
"relation_tags": {
|
|
553
|
-
"type": "array",
|
|
554
|
-
"description": "Relation tags (labels) to include in main entity linkback relation attribute",
|
|
555
|
-
"items": {
|
|
556
|
-
"type": "string"
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
"required": [
|
|
561
|
-
"attribute",
|
|
562
|
-
"relation_tags"
|
|
563
|
-
]
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
"required": [
|
|
567
|
-
"main_entity_ref",
|
|
568
|
-
"relation_attributes"
|
|
569
|
-
]
|
|
570
|
-
},
|
|
571
|
-
"additional_relations": {
|
|
572
|
-
"type": "array",
|
|
573
|
-
"items": {
|
|
574
|
-
"$ref": "#/components/schemas/RelationItem"
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
},
|
|
578
|
-
"required": [
|
|
579
|
-
"source_ref"
|
|
580
|
-
]
|
|
581
|
-
},
|
|
582
|
-
"ExecuteRelationsResp": {
|
|
583
|
-
"type": "object",
|
|
584
|
-
"properties": {
|
|
585
|
-
"relations": {
|
|
586
|
-
"type": "array",
|
|
587
|
-
"items": {
|
|
588
|
-
"$ref": "#/components/schemas/NewRelationItem"
|
|
589
|
-
}
|
|
590
|
-
}
|
|
540
|
+
"$ref": "#/components/schemas/RelationAttribute"
|
|
591
541
|
}
|
|
592
|
-
|
|
593
|
-
|
|
542
|
+
},
|
|
543
|
+
"linkback": {
|
|
594
544
|
"type": "object",
|
|
545
|
+
"description": "For cases where you want to store a relation between main entity (eg. submission) and current source entity.",
|
|
595
546
|
"properties": {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
"
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
"type": "array",
|
|
607
|
-
"items": {
|
|
608
|
-
"type": "string"
|
|
609
|
-
}
|
|
547
|
+
"attribute": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"default": "mapped_entities",
|
|
550
|
+
"description": "Relation attribute on the main entity (submission) where the target entity will be linked. Set to false to disable linkback\n"
|
|
551
|
+
},
|
|
552
|
+
"relation_tags": {
|
|
553
|
+
"type": "array",
|
|
554
|
+
"description": "Relation tags (labels) to include in main entity linkback relation attribute",
|
|
555
|
+
"items": {
|
|
556
|
+
"type": "string"
|
|
610
557
|
}
|
|
558
|
+
}
|
|
611
559
|
},
|
|
612
560
|
"required": [
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
"relation_attr"
|
|
561
|
+
"attribute",
|
|
562
|
+
"relation_tags"
|
|
616
563
|
]
|
|
564
|
+
}
|
|
617
565
|
},
|
|
618
|
-
"
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
"
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
"
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
"_id": {
|
|
698
|
-
"type": "string"
|
|
699
|
-
},
|
|
700
|
-
"_schema": {
|
|
701
|
-
"type": "string"
|
|
702
|
-
},
|
|
703
|
-
"_title": {
|
|
704
|
-
"type": "string"
|
|
705
|
-
},
|
|
706
|
-
"_org": {
|
|
707
|
-
"type": "string"
|
|
708
|
-
},
|
|
709
|
-
"_tags": {
|
|
710
|
-
"type": "array",
|
|
711
|
-
"items": {
|
|
712
|
-
"type": "string"
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
"_created_at": {
|
|
716
|
-
"type": "string"
|
|
717
|
-
},
|
|
718
|
-
"_updated_at": {
|
|
719
|
-
"type": "string"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
"additionalProperties": true
|
|
723
|
-
},
|
|
724
|
-
"EntityRef": {
|
|
725
|
-
"type": "object",
|
|
726
|
-
"properties": {
|
|
727
|
-
"entity_id": {
|
|
728
|
-
"type": "string",
|
|
729
|
-
"description": "id of the source entity to be mapped"
|
|
730
|
-
},
|
|
731
|
-
"entity_schema": {
|
|
732
|
-
"description": "schema of the source entity",
|
|
733
|
-
"type": "string",
|
|
734
|
-
"example": "submission"
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
"required": [
|
|
738
|
-
"entity_id"
|
|
739
|
-
]
|
|
740
|
-
},
|
|
741
|
-
"SourceConfig": {
|
|
742
|
-
"type": "object",
|
|
743
|
-
"properties": {
|
|
744
|
-
"type": {
|
|
745
|
-
"type": "string",
|
|
746
|
-
"enum": [
|
|
747
|
-
"journey",
|
|
748
|
-
"entity"
|
|
749
|
-
]
|
|
750
|
-
},
|
|
751
|
-
"config": {
|
|
752
|
-
"anyOf": [
|
|
753
|
-
{
|
|
754
|
-
"$ref": "#/components/schemas/JourneyRef"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"$ref": "#/components/schemas/EntityRef"
|
|
758
|
-
}
|
|
759
|
-
]
|
|
760
|
-
}
|
|
761
|
-
}
|
|
566
|
+
"required": [
|
|
567
|
+
"main_entity_ref",
|
|
568
|
+
"relation_attributes"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"additional_relations": {
|
|
572
|
+
"type": "array",
|
|
573
|
+
"items": {
|
|
574
|
+
"$ref": "#/components/schemas/RelationItem"
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"source_ref"
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
"ExecuteRelationsResp": {
|
|
583
|
+
"type": "object",
|
|
584
|
+
"properties": {
|
|
585
|
+
"relations": {
|
|
586
|
+
"type": "array",
|
|
587
|
+
"items": {
|
|
588
|
+
"$ref": "#/components/schemas/NewRelationItem"
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"NewRelationItem": {
|
|
594
|
+
"type": "object",
|
|
595
|
+
"properties": {
|
|
596
|
+
"source_entity_id": {
|
|
597
|
+
"type": "string"
|
|
598
|
+
},
|
|
599
|
+
"target_entity_id": {
|
|
600
|
+
"type": "string"
|
|
601
|
+
},
|
|
602
|
+
"relation_attr": {
|
|
603
|
+
"type": "string"
|
|
604
|
+
},
|
|
605
|
+
"tags": {
|
|
606
|
+
"type": "array",
|
|
607
|
+
"items": {
|
|
608
|
+
"type": "string"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
"required": [
|
|
613
|
+
"source_entity_id",
|
|
614
|
+
"target_entity_id",
|
|
615
|
+
"relation_attr"
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
"RelationItem": {
|
|
619
|
+
"type": "object",
|
|
620
|
+
"properties": {
|
|
621
|
+
"entity_id": {
|
|
622
|
+
"type": "string"
|
|
623
|
+
},
|
|
624
|
+
"attribute": {
|
|
625
|
+
"type": "string"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"required": [
|
|
629
|
+
"entity_id",
|
|
630
|
+
"attribute"
|
|
631
|
+
]
|
|
632
|
+
},
|
|
633
|
+
"ExecuteMappingReq": {
|
|
634
|
+
"type": "object",
|
|
635
|
+
"description": "Pass either source or source_entity",
|
|
636
|
+
"properties": {
|
|
637
|
+
"source_ref": {
|
|
638
|
+
"$ref": "#/components/schemas/EntityRef",
|
|
639
|
+
"description": "A reference (id and schema) to the entity to be used as source."
|
|
640
|
+
},
|
|
641
|
+
"targets": {
|
|
642
|
+
"type": "array",
|
|
643
|
+
"items": {
|
|
644
|
+
"$ref": "#/components/schemas/TargetConfig"
|
|
762
645
|
},
|
|
763
|
-
"
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
646
|
+
"description": "Mapping Configuration to apply."
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"required": [
|
|
650
|
+
"source_ref",
|
|
651
|
+
"targets"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
"ExecuteMappingResp": {
|
|
655
|
+
"type": "object",
|
|
656
|
+
"properties": {
|
|
657
|
+
"mapped_entities": {
|
|
658
|
+
"type": "array",
|
|
659
|
+
"items": {
|
|
660
|
+
"$ref": "#/components/schemas/Entity"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"failures": {
|
|
664
|
+
"type": "array",
|
|
665
|
+
"items": {
|
|
666
|
+
"$ref": "#/components/schemas/MappingFailure"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"required": [
|
|
671
|
+
"mapped_entities"
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
"MappingFailure": {
|
|
675
|
+
"type": "object",
|
|
676
|
+
"properties": {
|
|
677
|
+
"target": {
|
|
678
|
+
"$ref": "#/components/schemas/TargetConfig"
|
|
679
|
+
},
|
|
680
|
+
"error": {
|
|
681
|
+
"type": "object",
|
|
682
|
+
"properties": {
|
|
683
|
+
"isSilent": {
|
|
684
|
+
"type": "boolean"
|
|
685
|
+
},
|
|
686
|
+
"message": {
|
|
687
|
+
"type": "string"
|
|
688
|
+
}
|
|
770
689
|
},
|
|
771
|
-
"
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
690
|
+
"additionalProperties": true
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"Entity": {
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"_id": {
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
"_schema": {
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"_title": {
|
|
704
|
+
"type": "string"
|
|
705
|
+
},
|
|
706
|
+
"_org": {
|
|
707
|
+
"type": "string"
|
|
708
|
+
},
|
|
709
|
+
"_tags": {
|
|
710
|
+
"type": "array",
|
|
711
|
+
"items": {
|
|
712
|
+
"type": "string"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"_created_at": {
|
|
716
|
+
"type": "string"
|
|
717
|
+
},
|
|
718
|
+
"_updated_at": {
|
|
719
|
+
"type": "string"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
"additionalProperties": true
|
|
723
|
+
},
|
|
724
|
+
"EntityRef": {
|
|
725
|
+
"type": "object",
|
|
726
|
+
"properties": {
|
|
727
|
+
"entity_id": {
|
|
728
|
+
"type": "string",
|
|
729
|
+
"description": "id of the source entity to be mapped"
|
|
730
|
+
},
|
|
731
|
+
"entity_schema": {
|
|
732
|
+
"description": "schema of the source entity",
|
|
733
|
+
"type": "string",
|
|
734
|
+
"example": "submission"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
"required": [
|
|
738
|
+
"entity_id"
|
|
739
|
+
]
|
|
740
|
+
},
|
|
741
|
+
"SourceConfig": {
|
|
742
|
+
"type": "object",
|
|
743
|
+
"properties": {
|
|
744
|
+
"type": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"enum": [
|
|
747
|
+
"journey",
|
|
748
|
+
"entity"
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
"config": {
|
|
752
|
+
"anyOf": [
|
|
753
|
+
{
|
|
754
|
+
"$ref": "#/components/schemas/JourneyRef"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"$ref": "#/components/schemas/EntityRef"
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"JourneyRef": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"journey_id": {
|
|
767
|
+
"type": "string"
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
"TargetConfig": {
|
|
772
|
+
"type": "object",
|
|
773
|
+
"properties": {
|
|
774
|
+
"id": {
|
|
775
|
+
"type": "string",
|
|
776
|
+
"description": "Identifier for target configuration. Useful for later usages when trying to identify which target config to map to."
|
|
777
|
+
},
|
|
778
|
+
"name": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"description": "A name for this configuration"
|
|
781
|
+
},
|
|
782
|
+
"allow_failure": {
|
|
783
|
+
"type": "boolean",
|
|
784
|
+
"description": "Pass it as true, when you don't want failures to interrupt the mapping process."
|
|
785
|
+
},
|
|
786
|
+
"target_schema": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"description": "Schema of target entity"
|
|
789
|
+
},
|
|
790
|
+
"target_unique": {
|
|
791
|
+
"type": "array",
|
|
792
|
+
"description": "Unique key for target entity (see upsertEntity of Entity API)",
|
|
793
|
+
"items": {
|
|
794
|
+
"type": "string"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
"conditionMode": {
|
|
798
|
+
"description": "Mode of how conditions are considered valid",
|
|
799
|
+
"type": "string",
|
|
800
|
+
"enum": [
|
|
801
|
+
"oneOf",
|
|
802
|
+
"anyOf",
|
|
803
|
+
"allOf"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
"conditions": {
|
|
807
|
+
"type": "array",
|
|
808
|
+
"description": "Conditions necessary to hold for the target entity to be mapped",
|
|
809
|
+
"items": {
|
|
810
|
+
"$ref": "#/components/schemas/MapCondition"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"mapping_attributes": {
|
|
814
|
+
"type": "array",
|
|
815
|
+
"description": "Attribute mappings",
|
|
816
|
+
"items": {
|
|
817
|
+
"anyOf": [
|
|
818
|
+
{
|
|
819
|
+
"$ref": "#/components/schemas/MappingAttributeV2"
|
|
846
820
|
},
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
"mapping_attributes"
|
|
850
|
-
]
|
|
851
|
-
},
|
|
852
|
-
"MapCondition": {
|
|
853
|
-
"type": "object",
|
|
854
|
-
"properties": {
|
|
855
|
-
"_exists": {
|
|
856
|
-
"$ref": "#/components/schemas/ConditionNode"
|
|
857
|
-
},
|
|
858
|
-
"_equals": {
|
|
859
|
-
"$ref": "#/components/schemas/ConditionNode"
|
|
860
|
-
},
|
|
861
|
-
"_not_exists": {
|
|
862
|
-
"$ref": "#/components/schemas/ConditionNode"
|
|
863
|
-
},
|
|
864
|
-
"_any_of": {
|
|
865
|
-
"$ref": "#/components/schemas/ConditionNode"
|
|
866
|
-
}
|
|
821
|
+
{
|
|
822
|
+
"$ref": "#/components/schemas/MappingAttribute"
|
|
867
823
|
}
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
},
|
|
827
|
+
"relation_attributes": {
|
|
828
|
+
"type": "array",
|
|
829
|
+
"description": "Relation mappings",
|
|
830
|
+
"items": {
|
|
831
|
+
"$ref": "#/components/schemas/RelationAttribute"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"linkback_relation_attribute": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"default": "mapped_entities",
|
|
837
|
+
"description": "Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback\n"
|
|
838
|
+
},
|
|
839
|
+
"linkback_relation_tags": {
|
|
840
|
+
"type": "array",
|
|
841
|
+
"description": "Relation tags (labels) to include in main entity linkback relation attribute",
|
|
842
|
+
"items": {
|
|
843
|
+
"type": "string"
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": [
|
|
848
|
+
"target_schema",
|
|
849
|
+
"mapping_attributes"
|
|
850
|
+
]
|
|
851
|
+
},
|
|
852
|
+
"MapCondition": {
|
|
853
|
+
"type": "object",
|
|
854
|
+
"properties": {
|
|
855
|
+
"_exists": {
|
|
856
|
+
"$ref": "#/components/schemas/ConditionNode"
|
|
857
|
+
},
|
|
858
|
+
"_equals": {
|
|
859
|
+
"$ref": "#/components/schemas/ConditionNode"
|
|
860
|
+
},
|
|
861
|
+
"_not_exists": {
|
|
862
|
+
"$ref": "#/components/schemas/ConditionNode"
|
|
863
|
+
},
|
|
864
|
+
"_any_of": {
|
|
865
|
+
"$ref": "#/components/schemas/ConditionNode"
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"ConditionNode": {
|
|
870
|
+
"type": "object",
|
|
871
|
+
"properties": {
|
|
872
|
+
"source": {
|
|
873
|
+
"type": "string"
|
|
874
|
+
},
|
|
875
|
+
"value": {
|
|
876
|
+
"oneOf": [
|
|
877
|
+
{
|
|
878
|
+
"type": "string"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"type": "number"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"type": "object"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"type": "array",
|
|
888
|
+
"items": {
|
|
889
|
+
"type": "object"
|
|
894
890
|
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
891
|
+
}
|
|
892
|
+
]
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"RelationAttribute": {
|
|
897
|
+
"type": "object",
|
|
898
|
+
"properties": {
|
|
899
|
+
"target": {
|
|
900
|
+
"type": "string",
|
|
901
|
+
"description": "Target attribute to store the relation in"
|
|
902
|
+
},
|
|
903
|
+
"target_tags": {
|
|
904
|
+
"type": "array",
|
|
905
|
+
"description": "Relation tags (labels) to set for the stored relations",
|
|
906
|
+
"items": {
|
|
907
|
+
"type": "string"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"target_tags_include_source": {
|
|
911
|
+
"type": "boolean",
|
|
912
|
+
"description": "Include all relation tags (labels) present on the main entity relation",
|
|
913
|
+
"default": false
|
|
914
|
+
},
|
|
915
|
+
"source_filter": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"description": "A filter to identify which source entities to pick as relations from main entity",
|
|
918
|
+
"properties": {
|
|
919
|
+
"limit": {
|
|
920
|
+
"type": "integer",
|
|
921
|
+
"description": "Limit relations to maximum number (default, all matched relations)",
|
|
922
|
+
"minimum": 0
|
|
923
|
+
},
|
|
924
|
+
"schema": {
|
|
925
|
+
"type": "string",
|
|
926
|
+
"description": "Filter by specific schema"
|
|
927
|
+
},
|
|
928
|
+
"attribute": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"description": "Filter by a specific relation attribute on the main entity"
|
|
931
|
+
},
|
|
932
|
+
"relation_tag": {
|
|
933
|
+
"type": "string",
|
|
934
|
+
"description": "Filter by relation tag (label) on the main entity"
|
|
935
|
+
},
|
|
936
|
+
"tag": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"description": "Filter by a specific tag on the related entity"
|
|
939
|
+
},
|
|
940
|
+
"self": {
|
|
941
|
+
"type": "boolean",
|
|
942
|
+
"description": "Picks main entity as relation (overrides other filters)",
|
|
943
|
+
"default": false
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"related_to": {
|
|
948
|
+
"type": "object",
|
|
949
|
+
"additionalProperties": true,
|
|
950
|
+
"deprecated": true
|
|
951
|
+
},
|
|
952
|
+
"mode": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"enum": [
|
|
955
|
+
"append",
|
|
956
|
+
"prepend",
|
|
957
|
+
"set"
|
|
958
|
+
]
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
"required": [
|
|
962
|
+
"target",
|
|
963
|
+
"mode"
|
|
964
|
+
]
|
|
965
|
+
},
|
|
966
|
+
"MappingAttributeV2": {
|
|
967
|
+
"type": "object",
|
|
968
|
+
"properties": {
|
|
969
|
+
"target": {
|
|
970
|
+
"type": "string",
|
|
971
|
+
"description": "Target JSON path for the attribute to set"
|
|
972
|
+
},
|
|
973
|
+
"operation": {
|
|
974
|
+
"$ref": "#/components/schemas/OperationNode"
|
|
975
|
+
},
|
|
976
|
+
"origin": {
|
|
977
|
+
"$ref": "#/components/schemas/AttributeOrigin"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"required": [
|
|
981
|
+
"target",
|
|
982
|
+
"operation"
|
|
983
|
+
],
|
|
984
|
+
"example": {
|
|
985
|
+
"target": "_tags",
|
|
986
|
+
"operation": {
|
|
987
|
+
"_append": [
|
|
988
|
+
"new",
|
|
989
|
+
"tags"
|
|
990
|
+
],
|
|
991
|
+
"_uniq": true
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"AttributeOrigin": {
|
|
996
|
+
"type": "string",
|
|
997
|
+
"description": "Origin of an attribute.",
|
|
998
|
+
"enum": [
|
|
999
|
+
"system_recommendation",
|
|
1000
|
+
"user_manually"
|
|
1001
|
+
]
|
|
1002
|
+
},
|
|
1003
|
+
"OperationNode": {
|
|
1004
|
+
"description": "Mapping operation nodes are either primitive values or operation node objects",
|
|
1005
|
+
"oneOf": [
|
|
1006
|
+
{
|
|
1007
|
+
"$ref": "#/components/schemas/OperationObjectNode"
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1011
|
+
}
|
|
1012
|
+
]
|
|
1013
|
+
},
|
|
1014
|
+
"OperationObjectNode": {
|
|
1015
|
+
"type": "object",
|
|
1016
|
+
"properties": {
|
|
1017
|
+
"_set": {
|
|
1018
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1019
|
+
},
|
|
1020
|
+
"_append": {
|
|
1021
|
+
"description": "Append to array",
|
|
1022
|
+
"items": {
|
|
1023
|
+
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"_uniq": {
|
|
1027
|
+
"description": "Unique array",
|
|
1028
|
+
"oneOf": [
|
|
1029
|
+
{
|
|
1030
|
+
"type": "boolean",
|
|
1031
|
+
"example": true
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"type": "array",
|
|
1035
|
+
"description": "Unique key consisting of object keys",
|
|
1036
|
+
"example": [
|
|
1037
|
+
"email"
|
|
983
1038
|
],
|
|
984
|
-
"
|
|
985
|
-
|
|
986
|
-
"operation": {
|
|
987
|
-
"_append": [
|
|
988
|
-
"new",
|
|
989
|
-
"tags"
|
|
990
|
-
],
|
|
991
|
-
"_uniq": true
|
|
992
|
-
}
|
|
1039
|
+
"items": {
|
|
1040
|
+
"type": "string"
|
|
993
1041
|
}
|
|
994
|
-
|
|
995
|
-
|
|
1042
|
+
}
|
|
1043
|
+
]
|
|
1044
|
+
},
|
|
1045
|
+
"_copy": {
|
|
1046
|
+
"description": "Copy JSONPath value from source entity context",
|
|
1047
|
+
"type": "string",
|
|
1048
|
+
"example": "contact.first_name"
|
|
1049
|
+
},
|
|
1050
|
+
"_template": {
|
|
1051
|
+
"description": "Define handlebars template to output a string",
|
|
1052
|
+
"type": "string",
|
|
1053
|
+
"example": "{{contact.first_name}} {{contact.last_name}}"
|
|
1054
|
+
},
|
|
1055
|
+
"_random": {
|
|
1056
|
+
"description": "Generate random ids / numbers",
|
|
1057
|
+
"$ref": "#/components/schemas/RandomOperation"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"additionalProperties": true
|
|
1061
|
+
},
|
|
1062
|
+
"PrimitiveJSONValue": {
|
|
1063
|
+
"description": "Represents any primitive JSON value",
|
|
1064
|
+
"anyOf": [
|
|
1065
|
+
{
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"type": "boolean"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"type": "number"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"type": "object",
|
|
1076
|
+
"additionalProperties": true
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": "array"
|
|
1080
|
+
}
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
"RandomOperation": {
|
|
1084
|
+
"oneOf": [
|
|
1085
|
+
{
|
|
1086
|
+
"type": "object",
|
|
1087
|
+
"properties": {
|
|
1088
|
+
"type": {
|
|
996
1089
|
"type": "string",
|
|
997
|
-
"description": "Origin of an attribute.",
|
|
998
1090
|
"enum": [
|
|
999
|
-
|
|
1000
|
-
|
|
1091
|
+
"uuid",
|
|
1092
|
+
"nanoid"
|
|
1001
1093
|
]
|
|
1094
|
+
}
|
|
1002
1095
|
},
|
|
1003
|
-
"
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1012
|
-
]
|
|
1013
|
-
},
|
|
1014
|
-
"OperationObjectNode": {
|
|
1015
|
-
"type": "object",
|
|
1016
|
-
"properties": {
|
|
1017
|
-
"_set": {
|
|
1018
|
-
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1019
|
-
},
|
|
1020
|
-
"_append": {
|
|
1021
|
-
"description": "Append to array",
|
|
1022
|
-
"items": {
|
|
1023
|
-
"$ref": "#/components/schemas/PrimitiveJSONValue"
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
"_uniq": {
|
|
1027
|
-
"description": "Unique array",
|
|
1028
|
-
"oneOf": [
|
|
1029
|
-
{
|
|
1030
|
-
"type": "boolean",
|
|
1031
|
-
"example": true
|
|
1032
|
-
},
|
|
1033
|
-
{
|
|
1034
|
-
"type": "array",
|
|
1035
|
-
"description": "Unique key consisting of object keys",
|
|
1036
|
-
"example": [
|
|
1037
|
-
"email"
|
|
1038
|
-
],
|
|
1039
|
-
"items": {
|
|
1040
|
-
"type": "string"
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
]
|
|
1044
|
-
},
|
|
1045
|
-
"_copy": {
|
|
1046
|
-
"description": "Copy JSONPath value from source entity context",
|
|
1047
|
-
"type": "string",
|
|
1048
|
-
"example": "contact.first_name"
|
|
1049
|
-
},
|
|
1050
|
-
"_template": {
|
|
1051
|
-
"description": "Define handlebars template to output a string",
|
|
1052
|
-
"type": "string",
|
|
1053
|
-
"example": "{{contact.first_name}} {{contact.last_name}}"
|
|
1054
|
-
},
|
|
1055
|
-
"_random": {
|
|
1056
|
-
"description": "Generate random ids / numbers",
|
|
1057
|
-
"$ref": "#/components/schemas/RandomOperation"
|
|
1058
|
-
}
|
|
1059
|
-
},
|
|
1060
|
-
"additionalProperties": true
|
|
1061
|
-
},
|
|
1062
|
-
"PrimitiveJSONValue": {
|
|
1063
|
-
"description": "Represents any primitive JSON value",
|
|
1064
|
-
"anyOf": [
|
|
1065
|
-
{
|
|
1066
|
-
"type": "string"
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"type": "boolean"
|
|
1070
|
-
},
|
|
1071
|
-
{
|
|
1072
|
-
"type": "number"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
"type": "object",
|
|
1076
|
-
"additionalProperties": true
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
"type": "array"
|
|
1080
|
-
}
|
|
1081
|
-
]
|
|
1082
|
-
},
|
|
1083
|
-
"RandomOperation": {
|
|
1084
|
-
"oneOf": [
|
|
1085
|
-
{
|
|
1086
|
-
"type": "object",
|
|
1087
|
-
"properties": {
|
|
1088
|
-
"type": {
|
|
1089
|
-
"type": "string",
|
|
1090
|
-
"enum": [
|
|
1091
|
-
"uuid",
|
|
1092
|
-
"nanoid"
|
|
1093
|
-
]
|
|
1094
|
-
}
|
|
1095
|
-
},
|
|
1096
|
-
"required": [
|
|
1097
|
-
"type"
|
|
1098
|
-
]
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
"type": "object",
|
|
1102
|
-
"properties": {
|
|
1103
|
-
"type": {
|
|
1104
|
-
"type": "string",
|
|
1105
|
-
"enum": [
|
|
1106
|
-
"number"
|
|
1107
|
-
]
|
|
1108
|
-
},
|
|
1109
|
-
"min": {
|
|
1110
|
-
"type": "number",
|
|
1111
|
-
"default": 0
|
|
1112
|
-
},
|
|
1113
|
-
"max": {
|
|
1114
|
-
"type": "number",
|
|
1115
|
-
"default": 1
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"required": [
|
|
1119
|
-
"type"
|
|
1120
|
-
]
|
|
1121
|
-
}
|
|
1122
|
-
]
|
|
1123
|
-
},
|
|
1124
|
-
"MappingAttribute": {
|
|
1125
|
-
"anyOf": [
|
|
1126
|
-
{
|
|
1127
|
-
"$ref": "#/components/schemas/SetValueMapper"
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
"$ref": "#/components/schemas/CopyValueMapper"
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
"$ref": "#/components/schemas/AppendValueMapper"
|
|
1134
|
-
}
|
|
1135
|
-
]
|
|
1136
|
-
},
|
|
1137
|
-
"MappingAttributeMode": {
|
|
1096
|
+
"required": [
|
|
1097
|
+
"type"
|
|
1098
|
+
]
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"type": "object",
|
|
1102
|
+
"properties": {
|
|
1103
|
+
"type": {
|
|
1138
1104
|
"type": "string",
|
|
1139
1105
|
"enum": [
|
|
1140
|
-
|
|
1141
|
-
"append_if_exists",
|
|
1142
|
-
"set_value"
|
|
1143
|
-
],
|
|
1144
|
-
"description": "- copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.\n"
|
|
1145
|
-
},
|
|
1146
|
-
"SetValueMapper": {
|
|
1147
|
-
"type": "object",
|
|
1148
|
-
"deprecated": true,
|
|
1149
|
-
"properties": {
|
|
1150
|
-
"mode": {
|
|
1151
|
-
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1152
|
-
},
|
|
1153
|
-
"target": {
|
|
1154
|
-
"type": "string",
|
|
1155
|
-
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1156
|
-
},
|
|
1157
|
-
"value": {
|
|
1158
|
-
"description": "Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.\n"
|
|
1159
|
-
}
|
|
1160
|
-
},
|
|
1161
|
-
"required": [
|
|
1162
|
-
"mode",
|
|
1163
|
-
"target",
|
|
1164
|
-
"value"
|
|
1165
|
-
]
|
|
1166
|
-
},
|
|
1167
|
-
"CopyValueMapper": {
|
|
1168
|
-
"type": "object",
|
|
1169
|
-
"deprecated": true,
|
|
1170
|
-
"properties": {
|
|
1171
|
-
"mode": {
|
|
1172
|
-
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1173
|
-
},
|
|
1174
|
-
"target": {
|
|
1175
|
-
"type": "string",
|
|
1176
|
-
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1177
|
-
},
|
|
1178
|
-
"source": {
|
|
1179
|
-
"type": "string",
|
|
1180
|
-
"description": "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
|
|
1181
|
-
}
|
|
1182
|
-
},
|
|
1183
|
-
"required": [
|
|
1184
|
-
"mode",
|
|
1185
|
-
"target",
|
|
1186
|
-
"source"
|
|
1106
|
+
"number"
|
|
1187
1107
|
]
|
|
1108
|
+
},
|
|
1109
|
+
"min": {
|
|
1110
|
+
"type": "number",
|
|
1111
|
+
"default": 0
|
|
1112
|
+
},
|
|
1113
|
+
"max": {
|
|
1114
|
+
"type": "number",
|
|
1115
|
+
"default": 1
|
|
1116
|
+
}
|
|
1188
1117
|
},
|
|
1189
|
-
"
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
"
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1118
|
+
"required": [
|
|
1119
|
+
"type"
|
|
1120
|
+
]
|
|
1121
|
+
}
|
|
1122
|
+
]
|
|
1123
|
+
},
|
|
1124
|
+
"MappingAttribute": {
|
|
1125
|
+
"anyOf": [
|
|
1126
|
+
{
|
|
1127
|
+
"$ref": "#/components/schemas/SetValueMapper"
|
|
1128
|
+
},
|
|
1129
|
+
{
|
|
1130
|
+
"$ref": "#/components/schemas/CopyValueMapper"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"$ref": "#/components/schemas/AppendValueMapper"
|
|
1134
|
+
}
|
|
1135
|
+
]
|
|
1136
|
+
},
|
|
1137
|
+
"MappingAttributeMode": {
|
|
1138
|
+
"type": "string",
|
|
1139
|
+
"enum": [
|
|
1140
|
+
"copy_if_exists",
|
|
1141
|
+
"append_if_exists",
|
|
1142
|
+
"set_value"
|
|
1143
|
+
],
|
|
1144
|
+
"description": "- copy_if_exists - it replaces the target attribute with the source value - append_if_exists - it currently replaces target attribute with array like values. Useful when you have multiple values to be added into one attribute. - set_value - it sets a value to a predefined value. Must be used together with value property.\n"
|
|
1145
|
+
},
|
|
1146
|
+
"SetValueMapper": {
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"deprecated": true,
|
|
1149
|
+
"properties": {
|
|
1150
|
+
"mode": {
|
|
1151
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1152
|
+
},
|
|
1153
|
+
"target": {
|
|
1154
|
+
"type": "string",
|
|
1155
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1156
|
+
},
|
|
1157
|
+
"value": {
|
|
1158
|
+
"description": "Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.\n"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"required": [
|
|
1162
|
+
"mode",
|
|
1163
|
+
"target",
|
|
1164
|
+
"value"
|
|
1165
|
+
]
|
|
1166
|
+
},
|
|
1167
|
+
"CopyValueMapper": {
|
|
1168
|
+
"type": "object",
|
|
1169
|
+
"deprecated": true,
|
|
1170
|
+
"properties": {
|
|
1171
|
+
"mode": {
|
|
1172
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1173
|
+
},
|
|
1174
|
+
"target": {
|
|
1175
|
+
"type": "string",
|
|
1176
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1177
|
+
},
|
|
1178
|
+
"source": {
|
|
1179
|
+
"type": "string",
|
|
1180
|
+
"description": "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
|
|
1181
|
+
}
|
|
1182
|
+
},
|
|
1183
|
+
"required": [
|
|
1184
|
+
"mode",
|
|
1185
|
+
"target",
|
|
1186
|
+
"source"
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
"AppendValueMapper": {
|
|
1190
|
+
"type": "object",
|
|
1191
|
+
"deprecated": true,
|
|
1192
|
+
"properties": {
|
|
1193
|
+
"mode": {
|
|
1194
|
+
"$ref": "#/components/schemas/MappingAttributeMode"
|
|
1195
|
+
},
|
|
1196
|
+
"target": {
|
|
1197
|
+
"type": "string",
|
|
1198
|
+
"description": "JSON like target path for the attribute. Eg. last_name"
|
|
1199
|
+
},
|
|
1200
|
+
"source": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"description": "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
|
|
1203
|
+
},
|
|
1204
|
+
"value_json": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"description": "To be provided only when mapping json objects into a target attribute. Eg array of addresses.\n"
|
|
1207
|
+
},
|
|
1208
|
+
"target_unique": {
|
|
1209
|
+
"type": "array",
|
|
1210
|
+
"items": {
|
|
1211
|
+
"type": "string"
|
|
1235
1212
|
},
|
|
1236
|
-
"
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1213
|
+
"description": "Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]\n"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
"required": [
|
|
1217
|
+
"mode",
|
|
1218
|
+
"target",
|
|
1219
|
+
"value_json"
|
|
1220
|
+
]
|
|
1221
|
+
},
|
|
1222
|
+
"MappingHistoryResp": {
|
|
1223
|
+
"type": "object",
|
|
1224
|
+
"properties": {
|
|
1225
|
+
"results": {
|
|
1226
|
+
"type": "array",
|
|
1227
|
+
"items": {
|
|
1228
|
+
"$ref": "#/components/schemas/MappingHistoryEntry"
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
"required": [
|
|
1233
|
+
"results"
|
|
1234
|
+
]
|
|
1235
|
+
},
|
|
1236
|
+
"MappingHistoryEntry": {
|
|
1237
|
+
"type": "object",
|
|
1238
|
+
"properties": {
|
|
1239
|
+
"id": {
|
|
1240
|
+
"type": "string",
|
|
1241
|
+
"example": "uuidv4"
|
|
1242
|
+
},
|
|
1243
|
+
"timestamp": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"format": "ISO datetime"
|
|
1246
|
+
},
|
|
1247
|
+
"source_entity_snapshot": {
|
|
1248
|
+
"$ref": "#/components/schemas/Entity"
|
|
1249
|
+
},
|
|
1250
|
+
"mapped_entities_snapshot": {
|
|
1251
|
+
"type": "array",
|
|
1252
|
+
"items": {
|
|
1253
|
+
"$ref": "#/components/schemas/Entity"
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
"target_configs_snapshot": {
|
|
1257
|
+
"type": "array",
|
|
1258
|
+
"items": {
|
|
1259
|
+
"$ref": "#/components/schemas/TargetConfig"
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
"required": [
|
|
1264
|
+
"id",
|
|
1265
|
+
"timestamp",
|
|
1266
|
+
"source_entity_snapshot",
|
|
1267
|
+
"target_configs_snapshot",
|
|
1268
|
+
"mapped_entities_snapshot"
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
"MappingSource": {
|
|
1272
|
+
"type": "object",
|
|
1273
|
+
"properties": {
|
|
1274
|
+
"key": {
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"description": "Key aiming to identify source"
|
|
1277
|
+
},
|
|
1278
|
+
"sub_properties": {
|
|
1279
|
+
"description": "Each item describes a property under the main source and a possibly, a default value for its target attribute",
|
|
1280
|
+
"type": "array",
|
|
1281
|
+
"items": {
|
|
1282
|
+
"$ref": "#/components/schemas/MappingSourceProperty"
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
"source_type": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"description": "Data Structure type of source"
|
|
1288
|
+
},
|
|
1289
|
+
"possible_target_types": {
|
|
1290
|
+
"type": "array",
|
|
1291
|
+
"items": {
|
|
1292
|
+
"$ref": "#/components/schemas/MappingSourceTargetType"
|
|
1270
1293
|
},
|
|
1271
|
-
"
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
"
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
},
|
|
1300
|
-
"title": {
|
|
1301
|
-
"type": "string",
|
|
1302
|
-
"description": "Human readable name of the Source"
|
|
1303
|
-
},
|
|
1304
|
-
"sub_title": {
|
|
1305
|
-
"type": "string",
|
|
1306
|
-
"description": "Human readable type of the source"
|
|
1307
|
-
},
|
|
1308
|
-
"target_settings": {
|
|
1309
|
-
"type": "object",
|
|
1310
|
-
"properties": {
|
|
1311
|
-
"allowed_ui_actions": {
|
|
1312
|
-
"type": "array",
|
|
1313
|
-
"items": {
|
|
1314
|
-
"type": "string",
|
|
1315
|
-
"enum": [
|
|
1316
|
-
"schema-select",
|
|
1317
|
-
"attribute-select",
|
|
1318
|
-
"target-delete",
|
|
1319
|
-
"target-add",
|
|
1320
|
-
"target"
|
|
1321
|
-
]
|
|
1322
|
-
},
|
|
1323
|
-
"description": "Describes which actions the user can perform on each target, if specified. If not specified, all actions are allowed"
|
|
1324
|
-
},
|
|
1325
|
-
"locked": {
|
|
1326
|
-
"type": "string",
|
|
1327
|
-
"enum": [
|
|
1328
|
-
"each",
|
|
1329
|
-
"first"
|
|
1330
|
-
],
|
|
1331
|
-
"description": "Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions"
|
|
1332
|
-
},
|
|
1333
|
-
"isSingleTarget": {
|
|
1334
|
-
"type": "boolean",
|
|
1335
|
-
"description": "Whether all source mappings flow into a single attribute (e.g. address)"
|
|
1336
|
-
},
|
|
1337
|
-
"visibility": {
|
|
1338
|
-
"description": "Determines whether a mapping target should be shown or not. Use if there are targets which cannot be manipulated by the UI. E.g journey_data",
|
|
1339
|
-
"type": "object",
|
|
1340
|
-
"properties": {
|
|
1341
|
-
"mode": {
|
|
1342
|
-
"type": "string",
|
|
1343
|
-
"enum": [
|
|
1344
|
-
"hide",
|
|
1345
|
-
"show",
|
|
1346
|
-
"message"
|
|
1347
|
-
]
|
|
1348
|
-
},
|
|
1349
|
-
"if": {
|
|
1350
|
-
"type": "object",
|
|
1351
|
-
"additionalProperties": {
|
|
1352
|
-
"type": "string"
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
"message": {
|
|
1356
|
-
"type": "string"
|
|
1357
|
-
}
|
|
1358
|
-
},
|
|
1359
|
-
"required": [
|
|
1360
|
-
"mode",
|
|
1361
|
-
"if"
|
|
1362
|
-
]
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1294
|
+
"description": "Data Structure Type of the underlaying output value"
|
|
1295
|
+
},
|
|
1296
|
+
"initial_relation": {
|
|
1297
|
+
"description": "Initial value of a relation to be added",
|
|
1298
|
+
"$ref": "#/components/schemas/RelationAttribute"
|
|
1299
|
+
},
|
|
1300
|
+
"title": {
|
|
1301
|
+
"type": "string",
|
|
1302
|
+
"description": "Human readable name of the Source"
|
|
1303
|
+
},
|
|
1304
|
+
"sub_title": {
|
|
1305
|
+
"type": "string",
|
|
1306
|
+
"description": "Human readable type of the source"
|
|
1307
|
+
},
|
|
1308
|
+
"target_settings": {
|
|
1309
|
+
"type": "object",
|
|
1310
|
+
"properties": {
|
|
1311
|
+
"allowed_ui_actions": {
|
|
1312
|
+
"type": "array",
|
|
1313
|
+
"items": {
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"enum": [
|
|
1316
|
+
"schema-select",
|
|
1317
|
+
"attribute-select",
|
|
1318
|
+
"target-delete",
|
|
1319
|
+
"target-add",
|
|
1320
|
+
"target"
|
|
1321
|
+
]
|
|
1366
1322
|
},
|
|
1367
|
-
"
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1323
|
+
"description": "Describes which actions the user can perform on each target, if specified. If not specified, all actions are allowed"
|
|
1324
|
+
},
|
|
1325
|
+
"locked": {
|
|
1326
|
+
"type": "string",
|
|
1327
|
+
"enum": [
|
|
1328
|
+
"each",
|
|
1329
|
+
"first",
|
|
1330
|
+
"system_recommendation"
|
|
1331
|
+
],
|
|
1332
|
+
"description": "Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions"
|
|
1333
|
+
},
|
|
1334
|
+
"isSingleTarget": {
|
|
1335
|
+
"type": "boolean",
|
|
1336
|
+
"description": "Whether all source mappings flow into a single attribute (e.g. address)"
|
|
1337
|
+
},
|
|
1338
|
+
"visibility": {
|
|
1339
|
+
"description": "Determines whether a mapping target should be shown or not. Use if there are targets which cannot be manipulated by the UI. E.g journey_data",
|
|
1374
1340
|
"type": "object",
|
|
1375
1341
|
"properties": {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
"
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
"$ref": "#/components/schemas/MappingSourceTargetType"
|
|
1389
|
-
},
|
|
1390
|
-
"description": "Data Structure Type of the underlaying output value"
|
|
1342
|
+
"mode": {
|
|
1343
|
+
"type": "string",
|
|
1344
|
+
"enum": [
|
|
1345
|
+
"hide",
|
|
1346
|
+
"show",
|
|
1347
|
+
"message"
|
|
1348
|
+
]
|
|
1349
|
+
},
|
|
1350
|
+
"if": {
|
|
1351
|
+
"type": "object",
|
|
1352
|
+
"additionalProperties": {
|
|
1353
|
+
"type": "string"
|
|
1391
1354
|
}
|
|
1355
|
+
},
|
|
1356
|
+
"message": {
|
|
1357
|
+
"type": "string"
|
|
1358
|
+
}
|
|
1392
1359
|
},
|
|
1393
1360
|
"required": [
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
]
|
|
1397
|
-
},
|
|
1398
|
-
"MappingSourceTargetType": {
|
|
1399
|
-
"type": "string",
|
|
1400
|
-
"enum": [
|
|
1401
|
-
"string",
|
|
1402
|
-
"date",
|
|
1403
|
-
"datetime",
|
|
1404
|
-
"boolean",
|
|
1405
|
-
"number",
|
|
1406
|
-
"image",
|
|
1407
|
-
"file",
|
|
1408
|
-
"address",
|
|
1409
|
-
"email",
|
|
1410
|
-
"phone",
|
|
1411
|
-
"select",
|
|
1412
|
-
"multiselect"
|
|
1361
|
+
"mode",
|
|
1362
|
+
"if"
|
|
1413
1363
|
]
|
|
1364
|
+
}
|
|
1414
1365
|
}
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
"required": [
|
|
1369
|
+
"key",
|
|
1370
|
+
"title",
|
|
1371
|
+
"source_type"
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1374
|
+
"MappingSourceProperty": {
|
|
1375
|
+
"type": "object",
|
|
1376
|
+
"properties": {
|
|
1377
|
+
"value": {
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
},
|
|
1380
|
+
"label": {
|
|
1381
|
+
"type": "string"
|
|
1382
|
+
},
|
|
1383
|
+
"initial_target_value": {
|
|
1384
|
+
"type": "string"
|
|
1385
|
+
},
|
|
1386
|
+
"raw": {
|
|
1387
|
+
"type": "boolean",
|
|
1388
|
+
"description": "Whether the raw value should be used, or whether the value is enriched by a path"
|
|
1389
|
+
},
|
|
1390
|
+
"possible_target_types": {
|
|
1391
|
+
"type": "array",
|
|
1392
|
+
"items": {
|
|
1393
|
+
"$ref": "#/components/schemas/MappingSourceTargetType"
|
|
1394
|
+
},
|
|
1395
|
+
"description": "Data Structure Type of the underlaying output value"
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
"required": [
|
|
1399
|
+
"value",
|
|
1400
|
+
"label"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1403
|
+
"MappingSourceTargetType": {
|
|
1404
|
+
"type": "string",
|
|
1405
|
+
"enum": [
|
|
1406
|
+
"string",
|
|
1407
|
+
"date",
|
|
1408
|
+
"datetime",
|
|
1409
|
+
"boolean",
|
|
1410
|
+
"number",
|
|
1411
|
+
"image",
|
|
1412
|
+
"file",
|
|
1413
|
+
"address",
|
|
1414
|
+
"email",
|
|
1415
|
+
"phone",
|
|
1416
|
+
"select",
|
|
1417
|
+
"multiselect"
|
|
1418
|
+
]
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
1422
|
}
|