@epilot/sdk 2.3.8 → 2.3.9

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