@epilot/sdk 2.1.0 → 2.1.2

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 (490) hide show
  1. package/README.md +24 -0
  2. package/definitions/environments-runtime.json +1 -1
  3. package/definitions/partner-directory-runtime.json +1 -1
  4. package/definitions/partner-directory.json +795 -229
  5. package/dist/{README-W4B35MRN.cjs → README-6OOYWQYJ.cjs} +1 -1
  6. package/dist/{README-VG67PX4R.js → README-JUWX7KNV.js} +1 -1
  7. package/dist/{_index-S6LFD3ER.js → _index-NWNYWBIF.js} +48 -1
  8. package/dist/{_index-AMVZBT2K.cjs → _index-ONGE545F.cjs} +48 -1
  9. package/dist/access-token-2O6ULCCN.js +633 -0
  10. package/dist/access-token-RKP2A2F7.cjs +633 -0
  11. package/dist/access-token-runtime-KCKGT4O7.js +5 -0
  12. package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
  13. package/dist/address-HLBX47SQ.cjs +567 -0
  14. package/dist/address-IJF4N2UV.js +567 -0
  15. package/dist/address-runtime-2MNO2YRD.cjs +5 -0
  16. package/dist/address-runtime-YFCNBJBW.js +5 -0
  17. package/dist/address-suggestions-BYUTV7OU.js +574 -0
  18. package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
  19. package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
  20. package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
  21. package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
  22. package/dist/ai-agents-PKCHKKJS.js +1612 -0
  23. package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
  24. package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
  25. package/dist/apis/access-token.cjs +8 -8
  26. package/dist/apis/access-token.d.cts +2 -2
  27. package/dist/apis/access-token.d.ts +2 -2
  28. package/dist/apis/access-token.js +4 -4
  29. package/dist/apis/address-suggestions.cjs +8 -8
  30. package/dist/apis/address-suggestions.d.cts +2 -2
  31. package/dist/apis/address-suggestions.d.ts +2 -2
  32. package/dist/apis/address-suggestions.js +4 -4
  33. package/dist/apis/address.cjs +8 -8
  34. package/dist/apis/address.d.cts +2 -2
  35. package/dist/apis/address.d.ts +2 -2
  36. package/dist/apis/address.js +4 -4
  37. package/dist/apis/ai-agents.cjs +8 -8
  38. package/dist/apis/ai-agents.d.cts +2 -2
  39. package/dist/apis/ai-agents.d.ts +2 -2
  40. package/dist/apis/ai-agents.js +4 -4
  41. package/dist/apis/app.cjs +8 -8
  42. package/dist/apis/app.d.cts +2 -2
  43. package/dist/apis/app.d.ts +2 -2
  44. package/dist/apis/app.js +4 -4
  45. package/dist/apis/audit-logs.cjs +8 -8
  46. package/dist/apis/audit-logs.d.cts +2 -2
  47. package/dist/apis/audit-logs.d.ts +2 -2
  48. package/dist/apis/audit-logs.js +4 -4
  49. package/dist/apis/automation.cjs +8 -8
  50. package/dist/apis/automation.d.cts +2 -2
  51. package/dist/apis/automation.d.ts +2 -2
  52. package/dist/apis/automation.js +4 -4
  53. package/dist/apis/billing.cjs +8 -8
  54. package/dist/apis/billing.d.cts +2 -2
  55. package/dist/apis/billing.d.ts +2 -2
  56. package/dist/apis/billing.js +4 -4
  57. package/dist/apis/blueprint-manifest.cjs +8 -8
  58. package/dist/apis/blueprint-manifest.d.cts +2 -2
  59. package/dist/apis/blueprint-manifest.d.ts +2 -2
  60. package/dist/apis/blueprint-manifest.js +4 -4
  61. package/dist/apis/consent.cjs +8 -8
  62. package/dist/apis/consent.d.cts +2 -2
  63. package/dist/apis/consent.d.ts +2 -2
  64. package/dist/apis/consent.js +4 -4
  65. package/dist/apis/customer-portal.cjs +8 -8
  66. package/dist/apis/customer-portal.d.cts +2 -2
  67. package/dist/apis/customer-portal.d.ts +2 -2
  68. package/dist/apis/customer-portal.js +4 -4
  69. package/dist/apis/dashboard.cjs +8 -8
  70. package/dist/apis/dashboard.d.cts +2 -2
  71. package/dist/apis/dashboard.d.ts +2 -2
  72. package/dist/apis/dashboard.js +4 -4
  73. package/dist/apis/data-management.cjs +8 -8
  74. package/dist/apis/data-management.d.cts +2 -2
  75. package/dist/apis/data-management.d.ts +2 -2
  76. package/dist/apis/data-management.js +4 -4
  77. package/dist/apis/deduplication.cjs +8 -8
  78. package/dist/apis/deduplication.d.cts +2 -2
  79. package/dist/apis/deduplication.d.ts +2 -2
  80. package/dist/apis/deduplication.js +4 -4
  81. package/dist/apis/design.cjs +8 -8
  82. package/dist/apis/design.d.cts +2 -2
  83. package/dist/apis/design.d.ts +2 -2
  84. package/dist/apis/design.js +4 -4
  85. package/dist/apis/document.cjs +8 -8
  86. package/dist/apis/document.d.cts +2 -2
  87. package/dist/apis/document.d.ts +2 -2
  88. package/dist/apis/document.js +4 -4
  89. package/dist/apis/email-settings.cjs +8 -8
  90. package/dist/apis/email-settings.d.cts +2 -2
  91. package/dist/apis/email-settings.d.ts +2 -2
  92. package/dist/apis/email-settings.js +4 -4
  93. package/dist/apis/email-template.cjs +8 -8
  94. package/dist/apis/email-template.d.cts +2 -2
  95. package/dist/apis/email-template.d.ts +2 -2
  96. package/dist/apis/email-template.js +4 -4
  97. package/dist/apis/entity-mapping.cjs +8 -8
  98. package/dist/apis/entity-mapping.d.cts +2 -2
  99. package/dist/apis/entity-mapping.d.ts +2 -2
  100. package/dist/apis/entity-mapping.js +4 -4
  101. package/dist/apis/entity.cjs +8 -8
  102. package/dist/apis/entity.d.cts +2 -2
  103. package/dist/apis/entity.d.ts +2 -2
  104. package/dist/apis/entity.js +4 -4
  105. package/dist/apis/environments.cjs +8 -8
  106. package/dist/apis/environments.d.cts +2 -2
  107. package/dist/apis/environments.d.ts +2 -2
  108. package/dist/apis/environments.js +4 -4
  109. package/dist/apis/erp-integration.cjs +8 -8
  110. package/dist/apis/erp-integration.d.cts +2 -2
  111. package/dist/apis/erp-integration.d.ts +2 -2
  112. package/dist/apis/erp-integration.js +4 -4
  113. package/dist/apis/event-catalog.cjs +8 -8
  114. package/dist/apis/event-catalog.d.cts +2 -2
  115. package/dist/apis/event-catalog.d.ts +2 -2
  116. package/dist/apis/event-catalog.js +4 -4
  117. package/dist/apis/file.cjs +8 -8
  118. package/dist/apis/file.d.cts +2 -2
  119. package/dist/apis/file.d.ts +2 -2
  120. package/dist/apis/file.js +4 -4
  121. package/dist/apis/iban.cjs +8 -8
  122. package/dist/apis/iban.d.cts +2 -2
  123. package/dist/apis/iban.d.ts +2 -2
  124. package/dist/apis/iban.js +4 -4
  125. package/dist/apis/journey.cjs +8 -8
  126. package/dist/apis/journey.d.cts +2 -2
  127. package/dist/apis/journey.d.ts +2 -2
  128. package/dist/apis/journey.js +4 -4
  129. package/dist/apis/kanban.cjs +8 -8
  130. package/dist/apis/kanban.d.cts +2 -2
  131. package/dist/apis/kanban.d.ts +2 -2
  132. package/dist/apis/kanban.js +4 -4
  133. package/dist/apis/message.cjs +8 -8
  134. package/dist/apis/message.d.cts +2 -2
  135. package/dist/apis/message.d.ts +2 -2
  136. package/dist/apis/message.js +4 -4
  137. package/dist/apis/metering.cjs +8 -8
  138. package/dist/apis/metering.d.cts +2 -2
  139. package/dist/apis/metering.d.ts +2 -2
  140. package/dist/apis/metering.js +4 -4
  141. package/dist/apis/notes.cjs +8 -8
  142. package/dist/apis/notes.d.cts +2 -2
  143. package/dist/apis/notes.d.ts +2 -2
  144. package/dist/apis/notes.js +4 -4
  145. package/dist/apis/notification.cjs +8 -8
  146. package/dist/apis/notification.d.cts +2 -2
  147. package/dist/apis/notification.d.ts +2 -2
  148. package/dist/apis/notification.js +4 -4
  149. package/dist/apis/organization.cjs +8 -8
  150. package/dist/apis/organization.d.cts +2 -2
  151. package/dist/apis/organization.d.ts +2 -2
  152. package/dist/apis/organization.js +4 -4
  153. package/dist/apis/partner-directory.cjs +8 -8
  154. package/dist/apis/partner-directory.d.cts +4 -4
  155. package/dist/apis/partner-directory.d.ts +4 -4
  156. package/dist/apis/partner-directory.js +4 -4
  157. package/dist/apis/permissions.cjs +8 -8
  158. package/dist/apis/permissions.d.cts +2 -2
  159. package/dist/apis/permissions.d.ts +2 -2
  160. package/dist/apis/permissions.js +4 -4
  161. package/dist/apis/pricing-tier.cjs +8 -8
  162. package/dist/apis/pricing-tier.d.cts +2 -2
  163. package/dist/apis/pricing-tier.d.ts +2 -2
  164. package/dist/apis/pricing-tier.js +4 -4
  165. package/dist/apis/pricing.cjs +8 -8
  166. package/dist/apis/pricing.d.cts +2 -2
  167. package/dist/apis/pricing.d.ts +2 -2
  168. package/dist/apis/pricing.js +4 -4
  169. package/dist/apis/purpose.cjs +8 -8
  170. package/dist/apis/purpose.d.cts +2 -2
  171. package/dist/apis/purpose.d.ts +2 -2
  172. package/dist/apis/purpose.js +4 -4
  173. package/dist/apis/sandbox.cjs +8 -8
  174. package/dist/apis/sandbox.d.cts +2 -2
  175. package/dist/apis/sandbox.d.ts +2 -2
  176. package/dist/apis/sandbox.js +4 -4
  177. package/dist/apis/submission.cjs +8 -8
  178. package/dist/apis/submission.d.cts +2 -2
  179. package/dist/apis/submission.d.ts +2 -2
  180. package/dist/apis/submission.js +4 -4
  181. package/dist/apis/targeting.cjs +8 -8
  182. package/dist/apis/targeting.d.cts +2 -2
  183. package/dist/apis/targeting.d.ts +2 -2
  184. package/dist/apis/targeting.js +4 -4
  185. package/dist/apis/template-variables.cjs +8 -8
  186. package/dist/apis/template-variables.d.cts +2 -2
  187. package/dist/apis/template-variables.d.ts +2 -2
  188. package/dist/apis/template-variables.js +4 -4
  189. package/dist/apis/user.cjs +8 -8
  190. package/dist/apis/user.d.cts +2 -2
  191. package/dist/apis/user.d.ts +2 -2
  192. package/dist/apis/user.js +4 -4
  193. package/dist/apis/validation-rules.cjs +8 -8
  194. package/dist/apis/validation-rules.d.cts +2 -2
  195. package/dist/apis/validation-rules.d.ts +2 -2
  196. package/dist/apis/validation-rules.js +4 -4
  197. package/dist/apis/webhooks.cjs +8 -8
  198. package/dist/apis/webhooks.d.cts +2 -2
  199. package/dist/apis/webhooks.d.ts +2 -2
  200. package/dist/apis/webhooks.js +4 -4
  201. package/dist/apis/workflow-definition.cjs +8 -8
  202. package/dist/apis/workflow-definition.d.cts +2 -2
  203. package/dist/apis/workflow-definition.d.ts +2 -2
  204. package/dist/apis/workflow-definition.js +4 -4
  205. package/dist/apis/workflow.cjs +8 -8
  206. package/dist/apis/workflow.d.cts +2 -2
  207. package/dist/apis/workflow.d.ts +2 -2
  208. package/dist/apis/workflow.js +4 -4
  209. package/dist/app-5VPBDFW2.cjs +4047 -0
  210. package/dist/app-VJW2KKWE.js +4047 -0
  211. package/dist/app-runtime-SSNHSBR7.cjs +5 -0
  212. package/dist/app-runtime-U7RGV7KT.js +5 -0
  213. package/dist/audit-logs-F2NHDISQ.js +312 -0
  214. package/dist/audit-logs-RFEMBILB.cjs +312 -0
  215. package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
  216. package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
  217. package/dist/automation-HZASSUCS.cjs +4460 -0
  218. package/dist/automation-WEVRW77F.js +4460 -0
  219. package/dist/automation-runtime-L5UKEFLA.js +5 -0
  220. package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
  221. package/dist/billing-3VZPNG6M.cjs +796 -0
  222. package/dist/billing-ASWY7HC3.js +796 -0
  223. package/dist/billing-runtime-C6BMGWCX.js +5 -0
  224. package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
  225. package/dist/bin/cli.js +1 -1
  226. package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
  227. package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
  228. package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
  229. package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
  230. package/dist/{chunk-RXSS67VI.cjs → chunk-BFUNXZRX.cjs} +1 -1
  231. package/dist/{chunk-KPGC2D6E.js → chunk-I2XRA5AM.js} +1 -1
  232. package/dist/chunk-QTU4H6NQ.js +291 -0
  233. package/dist/chunk-T7LQKRUK.cjs +291 -0
  234. package/dist/consent-6SIH4NQS.cjs +342 -0
  235. package/dist/consent-7MNRAINV.js +342 -0
  236. package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
  237. package/dist/consent-runtime-OAPXBJH2.js +5 -0
  238. package/dist/customer-portal-L5DEQEGC.js +14142 -0
  239. package/dist/customer-portal-MXILX4KH.cjs +14142 -0
  240. package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
  241. package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
  242. package/dist/dashboard-RKUQLIME.cjs +483 -0
  243. package/dist/dashboard-UDL26RGG.js +483 -0
  244. package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
  245. package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
  246. package/dist/data-management-W5JQGGGH.js +925 -0
  247. package/dist/data-management-XFSRLFYA.cjs +925 -0
  248. package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
  249. package/dist/data-management-runtime-XZ347IUB.js +5 -0
  250. package/dist/deduplication-7RTGTLN5.cjs +193 -0
  251. package/dist/deduplication-RKLRTNZU.js +193 -0
  252. package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
  253. package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
  254. package/dist/design-AO6EGLHD.cjs +1352 -0
  255. package/dist/design-VLRA2WGV.js +1352 -0
  256. package/dist/design-runtime-3SKJA7QH.js +5 -0
  257. package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
  258. package/dist/document-OVTR7RVH.cjs +744 -0
  259. package/dist/document-SEZ45XAO.js +744 -0
  260. package/dist/document-runtime-GFEBGNMS.js +5 -0
  261. package/dist/document-runtime-RG3F4R6O.cjs +5 -0
  262. package/dist/email-settings-QGCIUWLC.js +2427 -0
  263. package/dist/email-settings-SEGEKVMF.cjs +2427 -0
  264. package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
  265. package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
  266. package/dist/email-template-26SANLRD.cjs +1308 -0
  267. package/dist/email-template-346NDG4D.js +1308 -0
  268. package/dist/email-template-runtime-QBB64BJQ.js +5 -0
  269. package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
  270. package/dist/entity-HSCBRIOS.js +9411 -0
  271. package/dist/entity-UKAWTND4.cjs +9411 -0
  272. package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
  273. package/dist/entity-mapping-UOGYYCZH.js +1506 -0
  274. package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
  275. package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
  276. package/dist/entity-runtime-QSFVEFJ6.js +5 -0
  277. package/dist/entity-runtime-XSAICIVR.cjs +5 -0
  278. package/dist/environments-5IS2ZJYQ.cjs +352 -0
  279. package/dist/environments-VCREW73K.js +352 -0
  280. package/dist/environments-runtime-BPR47PW7.js +5 -0
  281. package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
  282. package/dist/erp-integration-735KQ73W.js +5295 -0
  283. package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
  284. package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
  285. package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
  286. package/dist/event-catalog-MZYFJ23V.cjs +965 -0
  287. package/dist/event-catalog-ZUFXLY7B.js +965 -0
  288. package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
  289. package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
  290. package/dist/file-637CTR4Y.cjs +2744 -0
  291. package/dist/file-EJJBQEQI.js +2744 -0
  292. package/dist/file-runtime-B6AAGZQF.js +5 -0
  293. package/dist/file-runtime-SFZIKODF.cjs +5 -0
  294. package/dist/iban-ETTCKOHK.cjs +148 -0
  295. package/dist/iban-HXFDAF4I.js +148 -0
  296. package/dist/iban-runtime-EVXLFPPP.js +5 -0
  297. package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
  298. package/dist/index.cjs +105 -100
  299. package/dist/index.d.cts +21 -5
  300. package/dist/index.d.ts +21 -5
  301. package/dist/index.js +56 -51
  302. package/dist/journey-KW3ZFQAL.js +2194 -0
  303. package/dist/journey-XIMSLSZC.cjs +2194 -0
  304. package/dist/journey-runtime-SPBL3F32.cjs +5 -0
  305. package/dist/journey-runtime-YXIAOTMD.js +5 -0
  306. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  307. package/dist/kanban-M4P7R5TM.cjs +890 -0
  308. package/dist/kanban-QXQEQIF4.js +890 -0
  309. package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
  310. package/dist/kanban-runtime-R6EWHBFS.js +5 -0
  311. package/dist/message-2VOVRXBB.cjs +2447 -0
  312. package/dist/message-M62W3KP2.js +2447 -0
  313. package/dist/message-runtime-ITR7MPKT.cjs +5 -0
  314. package/dist/message-runtime-YMKW2N3R.js +5 -0
  315. package/dist/metering-KEMILE75.cjs +2198 -0
  316. package/dist/metering-W3TA6ZUQ.js +2198 -0
  317. package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
  318. package/dist/metering-runtime-NJ6NEUMB.js +5 -0
  319. package/dist/notes-4LVCGLBE.js +1427 -0
  320. package/dist/notes-OBM5POWI.cjs +1427 -0
  321. package/dist/notes-runtime-CVNAVKPP.js +5 -0
  322. package/dist/notes-runtime-E3YYF74V.cjs +5 -0
  323. package/dist/notification-EEYPLPUV.cjs +1381 -0
  324. package/dist/notification-MJQGIBM7.js +1381 -0
  325. package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
  326. package/dist/notification-runtime-KREP32YP.js +5 -0
  327. package/dist/organization-2UK7QZLQ.cjs +615 -0
  328. package/dist/organization-U5HPX627.js +615 -0
  329. package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
  330. package/dist/organization-runtime-P3WZ2BBU.js +5 -0
  331. package/dist/partner-directory-CG5CYJGB.cjs +1600 -0
  332. package/dist/partner-directory-THI7JEXK.js +7 -0
  333. package/dist/partner-directory-XJ7KI7EX.js +1600 -0
  334. package/dist/partner-directory-ZQIBKD5Q.cjs +7 -0
  335. package/dist/partner-directory-runtime-AUHVA5Q3.cjs +5 -0
  336. package/dist/partner-directory-runtime-GNVT7U7R.js +5 -0
  337. package/dist/partner-directory.d-BCIjHoGs.d.cts +2337 -0
  338. package/dist/partner-directory.d-BCIjHoGs.d.ts +2337 -0
  339. package/dist/permissions-SGPGANEP.js +1415 -0
  340. package/dist/permissions-WCOABHKQ.cjs +1415 -0
  341. package/dist/permissions-runtime-D74HOCVO.js +5 -0
  342. package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
  343. package/dist/pricing-3RNPCUR6.js +9362 -0
  344. package/dist/pricing-VYHPSVKM.cjs +9362 -0
  345. package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
  346. package/dist/pricing-runtime-JRR4FWFI.js +5 -0
  347. package/dist/pricing-tier-36WV4P4X.js +121 -0
  348. package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
  349. package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
  350. package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
  351. package/dist/purpose-JC2E7W3M.cjs +523 -0
  352. package/dist/purpose-QFQ4W255.js +523 -0
  353. package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
  354. package/dist/purpose-runtime-V5X5ESZV.js +5 -0
  355. package/dist/sandbox-CLZTN7IW.cjs +445 -0
  356. package/dist/sandbox-O2NWMZGJ.js +445 -0
  357. package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
  358. package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
  359. package/dist/submission-6FD67HIE.cjs +308 -0
  360. package/dist/submission-MWJU4L32.js +308 -0
  361. package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
  362. package/dist/submission-runtime-JPHKPQ77.js +5 -0
  363. package/dist/targeting-4CQDSEKL.cjs +1369 -0
  364. package/dist/targeting-RB7LBQMX.js +1369 -0
  365. package/dist/targeting-runtime-6JFMP262.cjs +5 -0
  366. package/dist/targeting-runtime-M2VSTKFT.js +5 -0
  367. package/dist/template-variables-JYHE2VCH.cjs +1447 -0
  368. package/dist/template-variables-XLIW4GY6.js +1447 -0
  369. package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
  370. package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
  371. package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
  372. package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
  373. package/dist/user-DKA6DDPX.cjs +2265 -0
  374. package/dist/user-O4JDAIRO.js +2265 -0
  375. package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
  376. package/dist/user-runtime-U4HYUWJU.js +5 -0
  377. package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
  378. package/dist/validation-rules-GCI64B57.js +1344 -0
  379. package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
  380. package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
  381. package/dist/webhooks-L3FXPRKT.cjs +1431 -0
  382. package/dist/webhooks-XXLU2KWP.js +1431 -0
  383. package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
  384. package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
  385. package/dist/workflow-VLNZNE3S.js +3834 -0
  386. package/dist/workflow-YJHUCGVK.cjs +3834 -0
  387. package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
  388. package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
  389. package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
  390. package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
  391. package/dist/workflow-runtime-RLZO2OQB.js +5 -0
  392. package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -0
  393. package/docs/partner-directory.md +295 -127
  394. package/package.json +3 -2
  395. package/dist/chunk-3XEP56SV.cjs +0 -204
  396. package/dist/chunk-ULBEEHG4.js +0 -204
  397. package/dist/partner-directory-2XMPQWWX.js +0 -7
  398. package/dist/partner-directory-WHNTKQ5E.cjs +0 -7
  399. package/dist/partner-directory.d-CRNkDF8q.d.cts +0 -1510
  400. package/dist/partner-directory.d-CRNkDF8q.d.ts +0 -1510
  401. /package/dist/{chunk-CPKBR34V.js → chunk-24T6CJTG.js} +0 -0
  402. /package/dist/{chunk-VQ7R36AC.js → chunk-265TE2OV.js} +0 -0
  403. /package/dist/{chunk-ZV6XYUXS.js → chunk-2BPBDRRO.js} +0 -0
  404. /package/dist/{chunk-KSXTBGIV.js → chunk-3XKBB5AE.js} +0 -0
  405. /package/dist/{chunk-GLO477NZ.js → chunk-3YSEO476.js} +0 -0
  406. /package/dist/{chunk-MKX4CKAB.cjs → chunk-46HU6232.cjs} +0 -0
  407. /package/dist/{chunk-JXBXDTFG.cjs → chunk-4G6LO3JY.cjs} +0 -0
  408. /package/dist/{chunk-Z4LUE424.cjs → chunk-4QCVVDTA.cjs} +0 -0
  409. /package/dist/{chunk-LQOLYXGQ.cjs → chunk-4W22EIRF.cjs} +0 -0
  410. /package/dist/{chunk-372VUPHN.js → chunk-4ZGZDE6D.js} +0 -0
  411. /package/dist/{chunk-IMT3IE5M.cjs → chunk-4ZMLRFDX.cjs} +0 -0
  412. /package/dist/{chunk-S7NDMDRX.js → chunk-5JPM6YUD.js} +0 -0
  413. /package/dist/{chunk-IS2VB342.js → chunk-5MFHAXBT.js} +0 -0
  414. /package/dist/{chunk-WOXXNKTE.js → chunk-5NKXJA43.js} +0 -0
  415. /package/dist/{chunk-S3ZNESMC.cjs → chunk-5WNEYQII.cjs} +0 -0
  416. /package/dist/{chunk-KA3TGFJP.js → chunk-6OYECNL2.js} +0 -0
  417. /package/dist/{chunk-T46LODOF.js → chunk-6UAS2VVG.js} +0 -0
  418. /package/dist/{chunk-PETLAONH.js → chunk-6VWCUZ5M.js} +0 -0
  419. /package/dist/{chunk-YZA5WZUS.js → chunk-75EI2Q64.js} +0 -0
  420. /package/dist/{chunk-2HOJWFQ4.js → chunk-75ZWZM3L.js} +0 -0
  421. /package/dist/{chunk-57QIBYDN.js → chunk-7IKQIVUS.js} +0 -0
  422. /package/dist/{chunk-DJKSULPK.js → chunk-A7AAVJGM.js} +0 -0
  423. /package/dist/{chunk-QLML3IP5.cjs → chunk-ANN2QTMY.cjs} +0 -0
  424. /package/dist/{chunk-A6JOROUC.cjs → chunk-BLNXQAMX.cjs} +0 -0
  425. /package/dist/{chunk-LCIJ4TJ4.cjs → chunk-BM6NCHPL.cjs} +0 -0
  426. /package/dist/{chunk-XR4QF6KQ.cjs → chunk-BPHOGIQM.cjs} +0 -0
  427. /package/dist/{chunk-K62XK7KU.js → chunk-BTTPWE2P.js} +0 -0
  428. /package/dist/{chunk-E26ZO7QM.cjs → chunk-COQMJFAB.cjs} +0 -0
  429. /package/dist/{chunk-QVAJ5JP4.js → chunk-CSK5ZUTS.js} +0 -0
  430. /package/dist/{chunk-3ZZ57K3S.cjs → chunk-D32L2HMX.cjs} +0 -0
  431. /package/dist/{chunk-TIJWJVKZ.js → chunk-D7Q4JGN7.js} +0 -0
  432. /package/dist/{chunk-CWSHYFVZ.js → chunk-DZ3P537S.js} +0 -0
  433. /package/dist/{chunk-MSASBR2Y.js → chunk-E2WMGOM5.js} +0 -0
  434. /package/dist/{chunk-XKI2OAYV.cjs → chunk-FARDEGPH.cjs} +0 -0
  435. /package/dist/{chunk-RWSA3LXE.cjs → chunk-G3VDRMOH.cjs} +0 -0
  436. /package/dist/{chunk-QDVPPRWI.cjs → chunk-G5FKTWUC.cjs} +0 -0
  437. /package/dist/{chunk-WMTYO5OX.cjs → chunk-GWKHOJGD.cjs} +0 -0
  438. /package/dist/{chunk-DNJ54L2G.js → chunk-H45V55VT.js} +0 -0
  439. /package/dist/{chunk-F472YLJG.cjs → chunk-HAZ3WP7V.cjs} +0 -0
  440. /package/dist/{chunk-NAWLLC3T.cjs → chunk-HHMXS5NC.cjs} +0 -0
  441. /package/dist/{chunk-DY2D2IW5.cjs → chunk-IGVVJMX7.cjs} +0 -0
  442. /package/dist/{chunk-KBOVBUBM.js → chunk-IJR3GZKC.js} +0 -0
  443. /package/dist/{chunk-73H6TVKN.js → chunk-IQOCHPWU.js} +0 -0
  444. /package/dist/{chunk-LSIWCIQV.js → chunk-JENQHXFI.js} +0 -0
  445. /package/dist/{chunk-G2REP2VZ.cjs → chunk-JICWF5VI.cjs} +0 -0
  446. /package/dist/{chunk-3HJEWWPS.cjs → chunk-JIUTCNTB.cjs} +0 -0
  447. /package/dist/{chunk-EBCHCYUO.js → chunk-JJWJLY42.js} +0 -0
  448. /package/dist/{chunk-SMGHAG5C.cjs → chunk-JXJC6WEW.cjs} +0 -0
  449. /package/dist/{chunk-HPYHWTTA.cjs → chunk-K2UZPY6U.cjs} +0 -0
  450. /package/dist/{chunk-VGTUK3QD.cjs → chunk-L66IX6GX.cjs} +0 -0
  451. /package/dist/{chunk-NLSZVGHK.cjs → chunk-LKRBFBFN.cjs} +0 -0
  452. /package/dist/{chunk-TLWCYLNA.js → chunk-LLZYRINH.js} +0 -0
  453. /package/dist/{chunk-4SWC43JO.cjs → chunk-M2SSGV7K.cjs} +0 -0
  454. /package/dist/{chunk-PVSS2WPM.cjs → chunk-M2UDF7PY.cjs} +0 -0
  455. /package/dist/{chunk-5SNJAD6F.cjs → chunk-M56QQHVA.cjs} +0 -0
  456. /package/dist/{chunk-QKERXNJJ.cjs → chunk-MB6NKETA.cjs} +0 -0
  457. /package/dist/{chunk-H4VSK4KF.js → chunk-MEUS7LCE.js} +0 -0
  458. /package/dist/{chunk-RD7E4OSJ.cjs → chunk-N5NFJW7Y.cjs} +0 -0
  459. /package/dist/{chunk-FXOX3X7E.cjs → chunk-NEVFKRDU.cjs} +0 -0
  460. /package/dist/{chunk-O4LRVGOY.js → chunk-O4JDWMYD.js} +0 -0
  461. /package/dist/{chunk-IH4CMOML.js → chunk-OEBV2PMV.js} +0 -0
  462. /package/dist/{chunk-VVVATFGK.cjs → chunk-OXJOO2YF.cjs} +0 -0
  463. /package/dist/{chunk-WOSSSFXB.js → chunk-PSQMDY3B.js} +0 -0
  464. /package/dist/{chunk-AJKH25H2.cjs → chunk-QOAWSFXA.cjs} +0 -0
  465. /package/dist/{chunk-UKKJMCNH.js → chunk-QT44OHHL.js} +0 -0
  466. /package/dist/{chunk-B3ZGAG7B.js → chunk-QTR3RH4N.js} +0 -0
  467. /package/dist/{chunk-3N67SSL3.js → chunk-RELUU5QZ.js} +0 -0
  468. /package/dist/{chunk-YYBIU5BQ.js → chunk-RJ3DWFSK.js} +0 -0
  469. /package/dist/{chunk-ARWMTXJV.cjs → chunk-RUZRPIHW.cjs} +0 -0
  470. /package/dist/{chunk-4VFQTSJQ.js → chunk-RW5JOHG7.js} +0 -0
  471. /package/dist/{chunk-EPAIOB5U.cjs → chunk-RXMOHUBP.cjs} +0 -0
  472. /package/dist/{chunk-MRZ7LGKZ.js → chunk-SBSIGQDU.js} +0 -0
  473. /package/dist/{chunk-TRJLYZHD.js → chunk-SITPUXIR.js} +0 -0
  474. /package/dist/{chunk-OGQKJTXF.js → chunk-SZMCMLOQ.js} +0 -0
  475. /package/dist/{chunk-VVQB5W7U.cjs → chunk-T67ZXTVG.cjs} +0 -0
  476. /package/dist/{chunk-HPSGM6QP.js → chunk-TME4YJNP.js} +0 -0
  477. /package/dist/{chunk-MRTAFRO7.js → chunk-TPA4HEAO.js} +0 -0
  478. /package/dist/{chunk-F376L6PP.cjs → chunk-TTNPMFXL.cjs} +0 -0
  479. /package/dist/{chunk-OG2DMGU6.cjs → chunk-TXDVGTQD.cjs} +0 -0
  480. /package/dist/{chunk-XZYZLSUO.cjs → chunk-UNCVJH6J.cjs} +0 -0
  481. /package/dist/{chunk-MHNSZ4HE.js → chunk-UUVJYJHD.js} +0 -0
  482. /package/dist/{chunk-C6UTZEHH.js → chunk-VSZEOCIE.js} +0 -0
  483. /package/dist/{chunk-EQZMT2HF.cjs → chunk-WQBBB6BN.cjs} +0 -0
  484. /package/dist/{chunk-BH5ZXK4J.cjs → chunk-WTMV77T2.cjs} +0 -0
  485. /package/dist/{chunk-BWFXLUK5.cjs → chunk-WWOAKRNG.cjs} +0 -0
  486. /package/dist/{chunk-ITX53XAZ.js → chunk-XSE4CFSM.js} +0 -0
  487. /package/dist/{chunk-SK3VYIZ6.cjs → chunk-YO4M3BZL.cjs} +0 -0
  488. /package/dist/{chunk-XYHTQ523.cjs → chunk-Z5TVWG3I.cjs} +0 -0
  489. /package/dist/{chunk-PXITFTJA.cjs → chunk-ZI33AJQ5.cjs} +0 -0
  490. /package/dist/{chunk-IP2WWEOU.js → chunk-ZKQ573B7.js} +0 -0
@@ -0,0 +1,1506 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/definitions/entity-mapping.json
4
+ var openapi = "3.0.3";
5
+ var info = {
6
+ title: "Entity Mapping API",
7
+ description: "API Backend for mapping source entity into target entities",
8
+ version: "1.0.0"
9
+ };
10
+ var tags = [
11
+ {
12
+ name: "mappings",
13
+ description: "Entity Mapping Configs"
14
+ }
15
+ ];
16
+ var security = [
17
+ {
18
+ EpilotAuth: []
19
+ }
20
+ ];
21
+ var paths = {
22
+ "/v1/mappings": {
23
+ post: {
24
+ operationId: "storeConfig",
25
+ summary: "storeConfig",
26
+ description: "Store new MappingConfig",
27
+ tags: ["mappings"],
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: ["mappings"],
69
+ parameters: [
70
+ {
71
+ name: "id",
72
+ in: "path",
73
+ required: true,
74
+ description: "Mapping Config Id",
75
+ schema: {
76
+ type: "string",
77
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
78
+ }
79
+ }
80
+ ],
81
+ responses: {
82
+ "200": {
83
+ description: "Entity Mapping Config",
84
+ content: {
85
+ "application/json": {
86
+ schema: {
87
+ $ref: "#/components/schemas/MappingConfig"
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ },
94
+ delete: {
95
+ operationId: "deleteConfig",
96
+ summary: "deleteConfig",
97
+ description: "Delete entity mapping config",
98
+ tags: ["mappings"],
99
+ parameters: [
100
+ {
101
+ name: "id",
102
+ in: "path",
103
+ required: true,
104
+ description: "Mapping Config Id",
105
+ schema: {
106
+ type: "string",
107
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
108
+ }
109
+ }
110
+ ],
111
+ responses: {
112
+ "200": {
113
+ description: "The deleted mapping config",
114
+ content: {
115
+ "application/json": {
116
+ schema: {
117
+ $ref: "#/components/schemas/MappingConfig"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "/v1/mappings/{id}/versions": {
126
+ get: {
127
+ operationId: "getAllVersions",
128
+ summary: "getAllVersions",
129
+ description: "Get all version of MappingConfig",
130
+ tags: ["mappings"],
131
+ parameters: [
132
+ {
133
+ name: "id",
134
+ in: "path",
135
+ required: true,
136
+ description: "Mapping Config Id",
137
+ schema: {
138
+ type: "string",
139
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
140
+ }
141
+ }
142
+ ],
143
+ responses: {
144
+ "200": {
145
+ description: "All versions of a MappingConfig",
146
+ content: {
147
+ "application/json": {
148
+ schema: {
149
+ $ref: "#/components/schemas/MappingConfigsResp"
150
+ }
151
+ }
152
+ }
153
+ }
154
+ }
155
+ },
156
+ post: {
157
+ operationId: "storeNewVersion",
158
+ summary: "storeNewVersion",
159
+ description: "Store new version of MappingConfig",
160
+ tags: ["mappings"],
161
+ parameters: [
162
+ {
163
+ name: "id",
164
+ in: "path",
165
+ required: true,
166
+ description: "Mapping Config Id",
167
+ schema: {
168
+ type: "string",
169
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
170
+ }
171
+ }
172
+ ],
173
+ requestBody: {
174
+ description: "Mapping Config to store",
175
+ content: {
176
+ "application/json": {
177
+ schema: {
178
+ $ref: "#/components/schemas/MappingConfig"
179
+ }
180
+ }
181
+ }
182
+ },
183
+ responses: {
184
+ "200": {
185
+ description: "The updated entity mapping config",
186
+ content: {
187
+ "application/json": {
188
+ schema: {
189
+ $ref: "#/components/schemas/MappingConfig"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
196
+ },
197
+ "/v1/mappings/{id}/versions/{version}": {
198
+ get: {
199
+ operationId: "getConfigVersion",
200
+ summary: "getConfigVersion",
201
+ description: "Get specific version of a mapping config by id & version",
202
+ tags: ["mappings"],
203
+ parameters: [
204
+ {
205
+ name: "id",
206
+ in: "path",
207
+ required: true,
208
+ description: "Mapping Config Id",
209
+ schema: {
210
+ type: "string",
211
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
212
+ }
213
+ },
214
+ {
215
+ name: "version",
216
+ in: "path",
217
+ required: true,
218
+ description: "Version to be loaded",
219
+ schema: {
220
+ type: "number",
221
+ example: 3
222
+ }
223
+ }
224
+ ],
225
+ responses: {
226
+ "200": {
227
+ description: "Entity Mapping Config",
228
+ content: {
229
+ "application/json": {
230
+ schema: {
231
+ $ref: "#/components/schemas/MappingConfig"
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ },
239
+ "/v1/mappings:execute": {
240
+ post: {
241
+ operationId: "executeMapping",
242
+ summary: "executeMapping",
243
+ description: "Execute entity mapping based on a config",
244
+ parameters: [
245
+ {
246
+ name: "preview_mode",
247
+ in: "query",
248
+ required: false,
249
+ description: "True, if you want to preview the entities which will result",
250
+ schema: {
251
+ type: "boolean",
252
+ example: true
253
+ }
254
+ }
255
+ ],
256
+ requestBody: {
257
+ content: {
258
+ "application/json": {
259
+ schema: {
260
+ $ref: "#/components/schemas/ExecuteMappingReq"
261
+ }
262
+ }
263
+ }
264
+ },
265
+ tags: ["mappings"],
266
+ responses: {
267
+ "200": {
268
+ description: "The target entities which were mapped",
269
+ content: {
270
+ "application/json": {
271
+ schema: {
272
+ $ref: "#/components/schemas/ExecuteMappingResp"
273
+ }
274
+ }
275
+ }
276
+ }
277
+ }
278
+ }
279
+ },
280
+ "/v1/mappings:search": {
281
+ post: {
282
+ operationId: "searchConfigs",
283
+ summary: "searchConfigs",
284
+ description: "Search mapping configs",
285
+ tags: ["mappings"],
286
+ requestBody: {
287
+ description: "Search Mapping Configs",
288
+ content: {
289
+ "application/json": {
290
+ schema: {
291
+ $ref: "#/components/schemas/SearchMappingReq"
292
+ }
293
+ }
294
+ }
295
+ },
296
+ responses: {
297
+ "200": {
298
+ description: "Entity Mapping Config",
299
+ content: {
300
+ "application/json": {
301
+ schema: {
302
+ $ref: "#/components/schemas/MappingConfig"
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ }
309
+ },
310
+ "/v1/mappings/history": {
311
+ get: {
312
+ operationId: "queryMappingHistory",
313
+ summary: "queryMappingHistory",
314
+ description: "Get the Mapping History",
315
+ tags: ["mappings"],
316
+ parameters: [
317
+ {
318
+ in: "query",
319
+ name: "from",
320
+ schema: {
321
+ type: "string",
322
+ format: "datetime"
323
+ },
324
+ required: false,
325
+ description: "filter the history from this date on"
326
+ },
327
+ {
328
+ in: "query",
329
+ name: "to",
330
+ schema: {
331
+ type: "string",
332
+ format: "datetime"
333
+ },
334
+ required: false,
335
+ description: "filter the history to this date on"
336
+ },
337
+ {
338
+ in: "query",
339
+ name: "targetEntityId",
340
+ schema: {
341
+ type: "string",
342
+ format: "uuid"
343
+ }
344
+ },
345
+ {
346
+ in: "query",
347
+ name: "sourceEntityId",
348
+ schema: {
349
+ type: "string",
350
+ format: "uuid"
351
+ }
352
+ }
353
+ ],
354
+ responses: {
355
+ "200": {
356
+ description: "Query result of mapping history",
357
+ content: {
358
+ "application/json": {
359
+ schema: {
360
+ properties: {
361
+ results: {
362
+ type: "array",
363
+ items: {
364
+ $ref: "#/components/schemas/MappingHistoryResp"
365
+ }
366
+ }
367
+ }
368
+ }
369
+ }
370
+ }
371
+ }
372
+ }
373
+ }
374
+ },
375
+ "/v1/relations:execute": {
376
+ post: {
377
+ operationId: "executeRelations",
378
+ summary: "executeRelations",
379
+ description: "Execute relation mapping between source entity and target entities",
380
+ requestBody: {
381
+ content: {
382
+ "application/json": {
383
+ schema: {
384
+ $ref: "#/components/schemas/ExecuteRelationsReq"
385
+ }
386
+ }
387
+ }
388
+ },
389
+ tags: ["mappings"],
390
+ responses: {
391
+ "200": {
392
+ description: "The relations which were for both source entity and main entity",
393
+ content: {
394
+ "application/json": {
395
+ schema: {
396
+ $ref: "#/components/schemas/ExecuteRelationsResp"
397
+ }
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+ },
404
+ "/v2/mappings/{id}": {
405
+ get: {
406
+ operationId: "getMappingConfig",
407
+ summary: "getMappingConfig",
408
+ description: "Get latest version of a mapping config by id V2",
409
+ tags: ["mappings"],
410
+ parameters: [
411
+ {
412
+ name: "id",
413
+ in: "path",
414
+ required: true,
415
+ description: "Mapping Config Id",
416
+ schema: {
417
+ type: "string",
418
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
419
+ }
420
+ }
421
+ ],
422
+ responses: {
423
+ "200": {
424
+ description: "Entity Mapping Config",
425
+ content: {
426
+ "application/json": {
427
+ schema: {
428
+ $ref: "#/components/schemas/MappingConfigV2"
429
+ }
430
+ }
431
+ }
432
+ }
433
+ }
434
+ },
435
+ put: {
436
+ operationId: "putMappingConfig",
437
+ summary: "putMappingConfig",
438
+ description: "Stores new version of entity mapping config",
439
+ tags: ["mappings"],
440
+ parameters: [
441
+ {
442
+ name: "id",
443
+ in: "path",
444
+ required: true,
445
+ description: "Mapping Config Id",
446
+ schema: {
447
+ type: "string",
448
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
449
+ }
450
+ }
451
+ ],
452
+ requestBody: {
453
+ description: "Mapping Config to store",
454
+ content: {
455
+ "application/json": {
456
+ schema: {
457
+ $ref: "#/components/schemas/MappingConfigV2"
458
+ }
459
+ }
460
+ }
461
+ },
462
+ responses: {
463
+ "200": {
464
+ description: "The updated entity mapping config",
465
+ content: {
466
+ "application/json": {
467
+ schema: {
468
+ $ref: "#/components/schemas/MappingConfigV2"
469
+ }
470
+ }
471
+ }
472
+ }
473
+ }
474
+ }
475
+ }
476
+ };
477
+ var components = {
478
+ securitySchemes: {
479
+ EpilotAuth: {
480
+ type: "http",
481
+ scheme: "bearer",
482
+ description: "Epilot Bearer Token"
483
+ }
484
+ },
485
+ schemas: {
486
+ SearchMappingReq: {
487
+ type: "object",
488
+ properties: {
489
+ source: {
490
+ $ref: "#/components/schemas/SourceConfig"
491
+ }
492
+ }
493
+ },
494
+ MappingConfigsResp: {
495
+ type: "object",
496
+ properties: {
497
+ configs: {
498
+ $ref: "#/components/schemas/MappingConfigs"
499
+ }
500
+ },
501
+ required: ["configs"]
502
+ },
503
+ MappingConfigs: {
504
+ type: "array",
505
+ items: {
506
+ $ref: "#/components/schemas/MappingConfig"
507
+ }
508
+ },
509
+ MappingConfig: {
510
+ allOf: [
511
+ {
512
+ $ref: "#/components/schemas/MappingConfigCommonFields"
513
+ },
514
+ {
515
+ type: "object",
516
+ properties: {
517
+ org_id: {
518
+ type: "string",
519
+ example: "66"
520
+ },
521
+ version: {
522
+ type: "integer",
523
+ example: 2
524
+ }
525
+ }
526
+ }
527
+ ],
528
+ required: ["org_id", "version"]
529
+ },
530
+ MappingConfigV2: {
531
+ allOf: [
532
+ {
533
+ $ref: "#/components/schemas/MappingConfigCommonFields"
534
+ },
535
+ {
536
+ type: "object",
537
+ properties: {
538
+ org_id: {
539
+ type: "string",
540
+ example: "66",
541
+ readOnly: true
542
+ },
543
+ version: {
544
+ type: "integer",
545
+ example: 2,
546
+ readOnly: true
547
+ }
548
+ }
549
+ }
550
+ ]
551
+ },
552
+ MappingConfigCommonFields: {
553
+ type: "object",
554
+ properties: {
555
+ id: {
556
+ type: "string"
557
+ },
558
+ source: {
559
+ $ref: "#/components/schemas/SourceConfig"
560
+ },
561
+ targets: {
562
+ type: "array",
563
+ items: {
564
+ $ref: "#/components/schemas/TargetConfig"
565
+ }
566
+ },
567
+ created_at: {
568
+ type: "string",
569
+ format: "date-time"
570
+ },
571
+ updated_at: {
572
+ type: "string",
573
+ format: "date-time"
574
+ },
575
+ created_by: {
576
+ $ref: "#/components/schemas/Owner",
577
+ description: "User / service who created the entity mapping config",
578
+ example: {
579
+ type: "internal_service"
580
+ }
581
+ },
582
+ last_updated_by: {
583
+ $ref: "#/components/schemas/Owner",
584
+ description: "User / service who last updated entity mapping config",
585
+ example: {
586
+ type: "user",
587
+ org_id: 255151,
588
+ user_id: 99252
589
+ }
590
+ }
591
+ },
592
+ required: ["id", "source", "targets"]
593
+ },
594
+ Owner: {
595
+ type: "object",
596
+ properties: {
597
+ type: {
598
+ type: "string",
599
+ enum: ["user", "internal_service"]
600
+ },
601
+ org_id: {
602
+ type: "string"
603
+ },
604
+ user_id: {
605
+ type: "string"
606
+ }
607
+ },
608
+ required: ["type"]
609
+ },
610
+ ExecuteRelationsReq: {
611
+ type: "object",
612
+ description: "Build relations between a source entity and one or more target entities, dynamically identified",
613
+ properties: {
614
+ source_ref: {
615
+ $ref: "#/components/schemas/EntityRef",
616
+ description: "Entity for which to add relations."
617
+ },
618
+ target: {
619
+ type: "object",
620
+ properties: {
621
+ main_entity_ref: {
622
+ $ref: "#/components/schemas/EntityRef",
623
+ description: "Main Entity from where to locate target entities. Eg. submisssion entity"
624
+ },
625
+ relation_attributes: {
626
+ type: "array",
627
+ description: "Relation mappings",
628
+ items: {
629
+ $ref: "#/components/schemas/RelationAttribute"
630
+ }
631
+ },
632
+ linkback: {
633
+ type: "object",
634
+ description: "For cases where you want to store a relation between main entity (eg. submission) and current source entity.",
635
+ properties: {
636
+ attribute: {
637
+ type: "string",
638
+ default: "mapped_entities",
639
+ description: "Relation attribute on the main entity (submission) where the target entity will be linked. Set to false to disable linkback\n"
640
+ },
641
+ relation_tags: {
642
+ type: "array",
643
+ description: "Relation tags (labels) to include in main entity linkback relation attribute",
644
+ items: {
645
+ type: "string"
646
+ }
647
+ }
648
+ },
649
+ required: ["attribute", "relation_tags"]
650
+ }
651
+ },
652
+ required: ["main_entity_ref", "relation_attributes"]
653
+ },
654
+ additional_relations: {
655
+ type: "array",
656
+ items: {
657
+ $ref: "#/components/schemas/RelationItem"
658
+ }
659
+ }
660
+ },
661
+ required: ["source_ref"]
662
+ },
663
+ ExecuteRelationsResp: {
664
+ type: "object",
665
+ properties: {
666
+ relations: {
667
+ type: "array",
668
+ items: {
669
+ $ref: "#/components/schemas/NewRelationItem"
670
+ }
671
+ }
672
+ }
673
+ },
674
+ NewRelationItem: {
675
+ type: "object",
676
+ properties: {
677
+ source_entity_id: {
678
+ type: "string"
679
+ },
680
+ target_entity_id: {
681
+ type: "string"
682
+ },
683
+ relation_attr: {
684
+ type: "string"
685
+ },
686
+ tags: {
687
+ type: "array",
688
+ items: {
689
+ type: "string"
690
+ }
691
+ }
692
+ },
693
+ required: ["source_entity_id", "target_entity_id", "relation_attr"]
694
+ },
695
+ RelationItem: {
696
+ type: "object",
697
+ properties: {
698
+ entity_id: {
699
+ type: "string"
700
+ },
701
+ attribute: {
702
+ type: "string"
703
+ }
704
+ },
705
+ required: ["entity_id", "attribute"]
706
+ },
707
+ ExecuteMappingReq: {
708
+ type: "object",
709
+ description: "Pass either source or source_entity",
710
+ properties: {
711
+ source_ref: {
712
+ $ref: "#/components/schemas/EntityRef",
713
+ description: "A reference (id and schema) to the entity to be used as source."
714
+ },
715
+ targets: {
716
+ type: "array",
717
+ items: {
718
+ $ref: "#/components/schemas/TargetConfig"
719
+ },
720
+ description: "Mapping Configuration to apply."
721
+ }
722
+ },
723
+ required: ["source_ref", "targets"]
724
+ },
725
+ ExecuteMappingResp: {
726
+ type: "object",
727
+ properties: {
728
+ mapped_entities: {
729
+ type: "array",
730
+ items: {
731
+ $ref: "#/components/schemas/Entity"
732
+ }
733
+ },
734
+ failures: {
735
+ type: "array",
736
+ items: {
737
+ $ref: "#/components/schemas/MappingFailure"
738
+ }
739
+ },
740
+ warnings: {
741
+ type: "array",
742
+ items: {
743
+ $ref: "#/components/schemas/MappingWarning"
744
+ }
745
+ }
746
+ },
747
+ required: ["mapped_entities"]
748
+ },
749
+ MappingFailure: {
750
+ type: "object",
751
+ properties: {
752
+ target: {
753
+ $ref: "#/components/schemas/TargetConfig"
754
+ },
755
+ error: {
756
+ type: "object",
757
+ properties: {
758
+ isSilent: {
759
+ type: "boolean"
760
+ },
761
+ message: {
762
+ type: "string"
763
+ }
764
+ },
765
+ additionalProperties: true
766
+ }
767
+ }
768
+ },
769
+ MappingWarning: {
770
+ type: "object",
771
+ properties: {
772
+ explanation: {
773
+ type: "string"
774
+ },
775
+ context: {
776
+ type: "string"
777
+ },
778
+ id: {
779
+ type: "string"
780
+ }
781
+ },
782
+ required: ["explanation"]
783
+ },
784
+ Entity: {
785
+ type: "object",
786
+ properties: {
787
+ _id: {
788
+ type: "string"
789
+ },
790
+ _schema: {
791
+ type: "string"
792
+ },
793
+ _title: {
794
+ type: "string",
795
+ nullable: true
796
+ },
797
+ _org: {
798
+ type: "string"
799
+ },
800
+ _tags: {
801
+ type: "array",
802
+ items: {
803
+ type: "string"
804
+ },
805
+ nullable: true
806
+ },
807
+ _created_at: {
808
+ type: "string",
809
+ nullable: true
810
+ },
811
+ _updated_at: {
812
+ type: "string",
813
+ nullable: true
814
+ },
815
+ required: ["_id", "_schema", "_org", "_created_at", "_updated_at"]
816
+ },
817
+ additionalProperties: true
818
+ },
819
+ EntityRef: {
820
+ type: "object",
821
+ properties: {
822
+ entity_id: {
823
+ type: "string",
824
+ description: "id of the source entity to be mapped"
825
+ },
826
+ entity_schema: {
827
+ description: "schema of the source entity",
828
+ type: "string",
829
+ example: "submission"
830
+ }
831
+ },
832
+ required: ["entity_id"]
833
+ },
834
+ SourceConfig: {
835
+ type: "object",
836
+ properties: {
837
+ type: {
838
+ type: "string",
839
+ enum: ["journey", "entity"]
840
+ },
841
+ config: {
842
+ anyOf: [
843
+ {
844
+ $ref: "#/components/schemas/JourneyRef"
845
+ },
846
+ {
847
+ $ref: "#/components/schemas/EntityRef"
848
+ }
849
+ ]
850
+ }
851
+ }
852
+ },
853
+ JourneyRef: {
854
+ type: "object",
855
+ properties: {
856
+ journey_id: {
857
+ type: "string"
858
+ }
859
+ }
860
+ },
861
+ Loop_Index_String: {
862
+ type: "string",
863
+ description: "This string value will be replaced with the value of the loop index, when mapping in loop mode",
864
+ enum: ["##LOOP_INDEX##"]
865
+ },
866
+ TargetConfig: {
867
+ type: "object",
868
+ properties: {
869
+ id: {
870
+ type: "string",
871
+ description: "Identifier for target configuration. Useful for later usages when trying to identify which target config to map to."
872
+ },
873
+ name: {
874
+ type: "string",
875
+ description: "A name for this configuration"
876
+ },
877
+ allow_failure: {
878
+ type: "boolean",
879
+ description: "Pass it as true, when you don't want failures to interrupt the mapping process."
880
+ },
881
+ target_schema: {
882
+ type: "string",
883
+ description: "Schema of target entity"
884
+ },
885
+ target_unique: {
886
+ type: "array",
887
+ description: "Unique key for target entity (see upsertEntity of Entity API)",
888
+ items: {
889
+ type: "string"
890
+ }
891
+ },
892
+ loop_config: {
893
+ type: "object",
894
+ description: "contains config in case of running in loop mode",
895
+ properties: {
896
+ source_path: {
897
+ type: "string",
898
+ description: "path to the array from the entity payload"
899
+ },
900
+ length: {
901
+ type: "number",
902
+ description: "a hard limit of how many times the loop is allowed to run.",
903
+ default: "the length of the array"
904
+ }
905
+ }
906
+ },
907
+ conditionMode: {
908
+ description: "Mode of how conditions are considered valid",
909
+ type: "string",
910
+ enum: ["oneOf", "anyOf", "allOf"]
911
+ },
912
+ conditions: {
913
+ type: "array",
914
+ description: "Conditions necessary to hold for the target entity to be mapped",
915
+ items: {
916
+ $ref: "#/components/schemas/MapCondition"
917
+ }
918
+ },
919
+ mapping_attributes: {
920
+ type: "array",
921
+ description: "Attribute mappings",
922
+ items: {
923
+ anyOf: [
924
+ {
925
+ $ref: "#/components/schemas/MappingAttributeV2"
926
+ },
927
+ {
928
+ $ref: "#/components/schemas/MappingAttribute"
929
+ }
930
+ ]
931
+ }
932
+ },
933
+ relation_attributes: {
934
+ type: "array",
935
+ description: "Relation mappings",
936
+ items: {
937
+ $ref: "#/components/schemas/RelationAttribute"
938
+ }
939
+ },
940
+ linkback_relation_attribute: {
941
+ type: "string",
942
+ default: "mapped_entities",
943
+ description: "Relation attribute on the main entity where the target entity will be linked. Set to false to disable linkback\n"
944
+ },
945
+ linkback_relation_tags: {
946
+ type: "array",
947
+ description: "Relation tags (labels) to include in main entity linkback relation attribute",
948
+ items: {
949
+ type: "string"
950
+ }
951
+ }
952
+ },
953
+ required: ["target_schema", "mapping_attributes"]
954
+ },
955
+ MapCondition: {
956
+ type: "object",
957
+ properties: {
958
+ _exists: {
959
+ $ref: "#/components/schemas/ConditionNode"
960
+ },
961
+ _equals: {
962
+ $ref: "#/components/schemas/ConditionNode"
963
+ },
964
+ _not_exists: {
965
+ $ref: "#/components/schemas/ConditionNode"
966
+ },
967
+ _any_of: {
968
+ $ref: "#/components/schemas/ConditionNode"
969
+ }
970
+ }
971
+ },
972
+ ConditionNode: {
973
+ type: "object",
974
+ properties: {
975
+ source: {
976
+ type: "string"
977
+ },
978
+ value: {
979
+ oneOf: [
980
+ {
981
+ type: "string"
982
+ },
983
+ {
984
+ type: "number"
985
+ },
986
+ {
987
+ type: "object"
988
+ },
989
+ {
990
+ type: "array",
991
+ items: {
992
+ type: "object"
993
+ }
994
+ }
995
+ ]
996
+ }
997
+ }
998
+ },
999
+ RelationAttribute: {
1000
+ type: "object",
1001
+ properties: {
1002
+ target: {
1003
+ type: "string",
1004
+ description: "Target attribute to store the relation in"
1005
+ },
1006
+ target_tags: {
1007
+ type: "array",
1008
+ description: "Relation tags (labels) to set for the stored relations",
1009
+ items: {
1010
+ type: "string"
1011
+ }
1012
+ },
1013
+ target_tags_include_source: {
1014
+ type: "boolean",
1015
+ description: "Include all relation tags (labels) present on the main entity relation",
1016
+ default: false
1017
+ },
1018
+ override_with_source_filter: {
1019
+ type: "boolean",
1020
+ description: "Whether to override the relation source_filter with the specified one",
1021
+ default: false
1022
+ },
1023
+ source_filter: {
1024
+ type: "object",
1025
+ description: "A filter to identify which source entities to pick as relations from main entity",
1026
+ properties: {
1027
+ limit: {
1028
+ type: "integer",
1029
+ description: "Limit relations to maximum number (default, all matched relations)",
1030
+ minimum: 0
1031
+ },
1032
+ schema: {
1033
+ type: "string",
1034
+ description: "Filter by specific schema"
1035
+ },
1036
+ attribute: {
1037
+ type: "string",
1038
+ description: "Filter by a specific relation attribute on the main entity"
1039
+ },
1040
+ relation_tag: {
1041
+ type: "string",
1042
+ description: "Filter by relation tag (label) on the main entity"
1043
+ },
1044
+ tag: {
1045
+ type: "string",
1046
+ description: "Filter by a specific tag on the related entity"
1047
+ },
1048
+ self: {
1049
+ type: "boolean",
1050
+ description: "Picks main entity as relation (overrides other filters)",
1051
+ default: false
1052
+ }
1053
+ }
1054
+ },
1055
+ related_to: {
1056
+ type: "object",
1057
+ additionalProperties: true,
1058
+ deprecated: true
1059
+ },
1060
+ mode: {
1061
+ type: "string",
1062
+ enum: ["append", "prepend", "set"]
1063
+ },
1064
+ origin: {
1065
+ $ref: "#/components/schemas/AttributeOrigin"
1066
+ }
1067
+ },
1068
+ required: ["target", "mode"]
1069
+ },
1070
+ MappingAttributeV2: {
1071
+ type: "object",
1072
+ properties: {
1073
+ target: {
1074
+ type: "string",
1075
+ description: "Target JSON path for the attribute to set"
1076
+ },
1077
+ operation: {
1078
+ $ref: "#/components/schemas/OperationNode"
1079
+ },
1080
+ origin: {
1081
+ $ref: "#/components/schemas/AttributeOrigin"
1082
+ }
1083
+ },
1084
+ required: ["target", "operation"],
1085
+ example: {
1086
+ target: "_tags",
1087
+ operation: {
1088
+ _append: ["new", "tags"],
1089
+ _uniq: true
1090
+ }
1091
+ }
1092
+ },
1093
+ AttributeOrigin: {
1094
+ type: "string",
1095
+ description: "Origin of an attribute.",
1096
+ enum: ["system_recommendation", "user_manually", "entity_updating_system_recommendation"]
1097
+ },
1098
+ OperationNode: {
1099
+ description: "Mapping operation nodes are either primitive values or operation node objects",
1100
+ oneOf: [
1101
+ {
1102
+ $ref: "#/components/schemas/OperationObjectNode"
1103
+ },
1104
+ {
1105
+ $ref: "#/components/schemas/PrimitiveJSONValue"
1106
+ }
1107
+ ]
1108
+ },
1109
+ OperationObjectNode: {
1110
+ type: "object",
1111
+ properties: {
1112
+ _set: {
1113
+ $ref: "#/components/schemas/PrimitiveJSONValue"
1114
+ },
1115
+ _append: {
1116
+ description: "Append to array",
1117
+ items: {
1118
+ $ref: "#/components/schemas/PrimitiveJSONValue"
1119
+ }
1120
+ },
1121
+ _prepend: {
1122
+ description: "Prepend to an array",
1123
+ items: {
1124
+ $ref: "#/components/schemas/OperationNode"
1125
+ }
1126
+ },
1127
+ _uniq: {
1128
+ description: "Unique array",
1129
+ oneOf: [
1130
+ {
1131
+ type: "boolean",
1132
+ example: true
1133
+ },
1134
+ {
1135
+ type: "array",
1136
+ description: "Unique key consisting of object keys",
1137
+ example: ["email"],
1138
+ items: {
1139
+ type: "string"
1140
+ }
1141
+ }
1142
+ ]
1143
+ },
1144
+ _retain_old_values: {
1145
+ description: "Merge strategy when _uniq is defined",
1146
+ type: "boolean",
1147
+ example: true
1148
+ },
1149
+ _copy: {
1150
+ description: "Copy JSONPath value from source entity context",
1151
+ type: "string",
1152
+ example: "contact.first_name"
1153
+ },
1154
+ _template: {
1155
+ description: "Define handlebars template to output a string",
1156
+ type: "string",
1157
+ example: "{{contact.first_name}} {{contact.last_name}}"
1158
+ },
1159
+ _random: {
1160
+ description: "Generate random ids / numbers",
1161
+ $ref: "#/components/schemas/RandomOperation"
1162
+ }
1163
+ },
1164
+ additionalProperties: true
1165
+ },
1166
+ PrimitiveJSONValue: {
1167
+ description: "Represents any primitive JSON value",
1168
+ anyOf: [
1169
+ {
1170
+ type: "string"
1171
+ },
1172
+ {
1173
+ type: "boolean"
1174
+ },
1175
+ {
1176
+ type: "number"
1177
+ },
1178
+ {
1179
+ type: "object",
1180
+ additionalProperties: true
1181
+ },
1182
+ {
1183
+ type: "array"
1184
+ }
1185
+ ]
1186
+ },
1187
+ RandomOperation: {
1188
+ oneOf: [
1189
+ {
1190
+ type: "object",
1191
+ properties: {
1192
+ type: {
1193
+ type: "string",
1194
+ enum: ["uuid", "nanoid"]
1195
+ }
1196
+ },
1197
+ required: ["type"]
1198
+ },
1199
+ {
1200
+ type: "object",
1201
+ properties: {
1202
+ type: {
1203
+ type: "string",
1204
+ enum: ["number"]
1205
+ },
1206
+ min: {
1207
+ type: "number",
1208
+ default: 0
1209
+ },
1210
+ max: {
1211
+ type: "number",
1212
+ default: 1
1213
+ }
1214
+ },
1215
+ required: ["type"]
1216
+ }
1217
+ ]
1218
+ },
1219
+ MappingAttribute: {
1220
+ anyOf: [
1221
+ {
1222
+ $ref: "#/components/schemas/SetValueMapper"
1223
+ },
1224
+ {
1225
+ $ref: "#/components/schemas/CopyValueMapper"
1226
+ },
1227
+ {
1228
+ $ref: "#/components/schemas/AppendValueMapper"
1229
+ }
1230
+ ]
1231
+ },
1232
+ MappingAttributeMode: {
1233
+ type: "string",
1234
+ enum: ["copy_if_exists", "append_if_exists", "set_value"],
1235
+ 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"
1236
+ },
1237
+ SetValueMapper: {
1238
+ type: "object",
1239
+ deprecated: true,
1240
+ properties: {
1241
+ mode: {
1242
+ $ref: "#/components/schemas/MappingAttributeMode"
1243
+ },
1244
+ target: {
1245
+ type: "string",
1246
+ description: "JSON like target path for the attribute. Eg. last_name"
1247
+ },
1248
+ value: {
1249
+ description: "Any value to be set: string, number, string[], number[], JSON object, etc. It will override existing values, if any.\n"
1250
+ }
1251
+ },
1252
+ required: ["mode", "target", "value"]
1253
+ },
1254
+ CopyValueMapper: {
1255
+ type: "object",
1256
+ deprecated: true,
1257
+ properties: {
1258
+ mode: {
1259
+ $ref: "#/components/schemas/MappingAttributeMode"
1260
+ },
1261
+ target: {
1262
+ type: "string",
1263
+ description: "JSON like target path for the attribute. Eg. last_name"
1264
+ },
1265
+ source: {
1266
+ type: "string",
1267
+ description: "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
1268
+ }
1269
+ },
1270
+ required: ["mode", "target", "source"]
1271
+ },
1272
+ AppendValueMapper: {
1273
+ type: "object",
1274
+ deprecated: true,
1275
+ properties: {
1276
+ mode: {
1277
+ $ref: "#/components/schemas/MappingAttributeMode"
1278
+ },
1279
+ target: {
1280
+ type: "string",
1281
+ description: "JSON like target path for the attribute. Eg. last_name"
1282
+ },
1283
+ source: {
1284
+ type: "string",
1285
+ description: "JSON source path for the value to be extracted from the main entity. Eg: steps[1].['Product Info'].price\n"
1286
+ },
1287
+ value_json: {
1288
+ type: "string",
1289
+ description: "To be provided only when mapping json objects into a target attribute. Eg array of addresses.\n"
1290
+ },
1291
+ target_unique: {
1292
+ type: "array",
1293
+ items: {
1294
+ type: "string"
1295
+ },
1296
+ description: "Array of keys which should be used when checking for uniqueness. Eg: [country, city, postal_code]\n"
1297
+ }
1298
+ },
1299
+ required: ["mode", "target", "value_json"]
1300
+ },
1301
+ MappingHistoryResp: {
1302
+ type: "object",
1303
+ properties: {
1304
+ results: {
1305
+ type: "array",
1306
+ items: {
1307
+ $ref: "#/components/schemas/MappingHistoryEntry"
1308
+ }
1309
+ }
1310
+ },
1311
+ required: ["results"]
1312
+ },
1313
+ MappingHistoryEntry: {
1314
+ type: "object",
1315
+ properties: {
1316
+ id: {
1317
+ type: "string",
1318
+ example: "70542580-2b38-4bfc-af8d-bb90102f9f47"
1319
+ },
1320
+ timestamp: {
1321
+ type: "string",
1322
+ format: "ISO datetime"
1323
+ },
1324
+ source_entity_snapshot: {
1325
+ $ref: "#/components/schemas/Entity"
1326
+ },
1327
+ mapped_entities_snapshot: {
1328
+ type: "array",
1329
+ items: {
1330
+ $ref: "#/components/schemas/Entity"
1331
+ }
1332
+ },
1333
+ target_configs_snapshot: {
1334
+ type: "array",
1335
+ items: {
1336
+ $ref: "#/components/schemas/TargetConfig"
1337
+ }
1338
+ }
1339
+ },
1340
+ required: ["id", "timestamp", "source_entity_snapshot", "target_configs_snapshot", "mapped_entities_snapshot"]
1341
+ },
1342
+ MappingSource: {
1343
+ type: "object",
1344
+ properties: {
1345
+ key: {
1346
+ type: "string",
1347
+ description: "Key aiming to identify source"
1348
+ },
1349
+ sub_properties: {
1350
+ description: "Each item describes a property under the main source and a possibly, a default value for its target attribute",
1351
+ type: "array",
1352
+ items: {
1353
+ $ref: "#/components/schemas/MappingSourceProperty"
1354
+ }
1355
+ },
1356
+ source_type: {
1357
+ type: "string",
1358
+ description: "Data Structure type of source"
1359
+ },
1360
+ group: {
1361
+ type: "string",
1362
+ description: "A group this source belongs to. Used for grouping sources in the UI"
1363
+ },
1364
+ possible_target_types: {
1365
+ type: "array",
1366
+ items: {
1367
+ $ref: "#/components/schemas/MappingSourceTargetType"
1368
+ },
1369
+ description: "Data Structure Type of the underlaying output value"
1370
+ },
1371
+ initial_relation: {
1372
+ description: "Initial value of a relation to be added",
1373
+ $ref: "#/components/schemas/RelationAttribute"
1374
+ },
1375
+ title: {
1376
+ type: "string",
1377
+ description: "Human readable name of the Source"
1378
+ },
1379
+ sub_title: {
1380
+ type: "string",
1381
+ description: "Human readable type of the source"
1382
+ },
1383
+ repeatable: {
1384
+ type: "boolean",
1385
+ description: "Whether the source (block or attribute) is a repeatable, aka holds a list of values"
1386
+ },
1387
+ target_settings: {
1388
+ type: "object",
1389
+ properties: {
1390
+ allowed_ui_actions: {
1391
+ type: "array",
1392
+ items: {
1393
+ type: "string",
1394
+ enum: ["schema-select", "attribute-select", "target-delete", "target-add", "target"]
1395
+ },
1396
+ description: "Describes which actions the user can perform on each target, if specified. If not specified, all actions are allowed"
1397
+ },
1398
+ locked: {
1399
+ type: "string",
1400
+ enum: ["each", "first", "system_recommendation"],
1401
+ description: "Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions"
1402
+ },
1403
+ isSingleTarget: {
1404
+ type: "boolean",
1405
+ description: "Whether all source mappings flow into a single attribute (e.g. address)"
1406
+ },
1407
+ visibility: {
1408
+ 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",
1409
+ type: "object",
1410
+ properties: {
1411
+ mode: {
1412
+ type: "string",
1413
+ enum: ["hide", "show", "message"]
1414
+ },
1415
+ if: {
1416
+ type: "object",
1417
+ additionalProperties: {
1418
+ type: "string"
1419
+ }
1420
+ },
1421
+ message: {
1422
+ type: "string"
1423
+ }
1424
+ },
1425
+ required: ["mode", "if"]
1426
+ }
1427
+ }
1428
+ }
1429
+ },
1430
+ required: ["key", "title", "source_type"]
1431
+ },
1432
+ MappingSourceProperty: {
1433
+ type: "object",
1434
+ properties: {
1435
+ value: {
1436
+ type: "string"
1437
+ },
1438
+ label: {
1439
+ type: "string"
1440
+ },
1441
+ initial_target_value: {
1442
+ type: "string"
1443
+ },
1444
+ possible_target_types: {
1445
+ type: "array",
1446
+ items: {
1447
+ $ref: "#/components/schemas/MappingSourceTargetType"
1448
+ },
1449
+ description: "Data Structure Type of the underlaying output value"
1450
+ },
1451
+ raw: {
1452
+ type: "boolean",
1453
+ description: "Whether the raw value should be used, or whether the value is enriched by a path"
1454
+ }
1455
+ },
1456
+ required: ["value", "label"]
1457
+ },
1458
+ MappingSourceTargetType: {
1459
+ type: "string",
1460
+ enum: [
1461
+ "string",
1462
+ "date",
1463
+ "datetime",
1464
+ "boolean",
1465
+ "number",
1466
+ "image",
1467
+ "file",
1468
+ "address",
1469
+ "email",
1470
+ "phone",
1471
+ "select",
1472
+ "multiselect",
1473
+ "payment",
1474
+ "link",
1475
+ "currency",
1476
+ "sequence",
1477
+ "relation",
1478
+ "array"
1479
+ ]
1480
+ }
1481
+ }
1482
+ };
1483
+ var servers = [
1484
+ {
1485
+ url: "https://entity-mapping.sls.epilot.io"
1486
+ }
1487
+ ];
1488
+ var entity_mapping_default = {
1489
+ openapi,
1490
+ info,
1491
+ tags,
1492
+ security,
1493
+ paths,
1494
+ components,
1495
+ servers
1496
+ };
1497
+ export {
1498
+ components,
1499
+ entity_mapping_default as default,
1500
+ info,
1501
+ openapi,
1502
+ paths,
1503
+ security,
1504
+ servers,
1505
+ tags
1506
+ };