@epilot/sdk 2.1.0-rc.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/app.json +38 -0
- package/definitions/automation.json +2 -37
- package/definitions/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +115 -1
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +279 -42
- package/definitions/data-management.json +10 -0
- package/definitions/email-template.json +25 -3
- package/definitions/entity.json +205 -3
- package/definitions/erp-integration-runtime.json +1 -1
- package/definitions/erp-integration.json +472 -13
- package/definitions/journey.json +257 -12
- package/definitions/kanban.json +630 -78
- package/definitions/organization-runtime.json +1 -1
- package/definitions/organization.json +614 -51
- package/definitions/workflow.json +40 -0
- package/dist/README-VG67PX4R.js +7 -0
- package/dist/README-W4B35MRN.cjs +7 -0
- package/dist/_index-AMVZBT2K.cjs +99 -0
- package/dist/_index-S6LFD3ER.js +99 -0
- package/dist/access-token-6BJDZSFE.cjs +7 -0
- package/dist/access-token-GSQZLDXR.js +7 -0
- package/dist/address-HA4RMRNQ.cjs +7 -0
- package/dist/address-QVJUGMOG.js +7 -0
- package/dist/address-suggestions-74244BAJ.js +7 -0
- package/dist/address-suggestions-IUQMYF27.cjs +7 -0
- package/dist/ai-agents-IZWFEUSH.js +7 -0
- package/dist/ai-agents-PWHKNRCX.cjs +7 -0
- package/dist/apis/access-token.cjs +10 -8
- package/dist/apis/access-token.js +5 -3
- package/dist/apis/address-suggestions.cjs +10 -8
- package/dist/apis/address-suggestions.js +5 -3
- package/dist/apis/address.cjs +10 -8
- package/dist/apis/address.js +5 -3
- package/dist/apis/ai-agents.cjs +10 -8
- package/dist/apis/ai-agents.js +5 -3
- package/dist/apis/app.cjs +10 -8
- package/dist/apis/app.js +5 -3
- package/dist/apis/audit-logs.cjs +10 -8
- package/dist/apis/audit-logs.js +5 -3
- package/dist/apis/automation.cjs +10 -8
- package/dist/apis/automation.js +5 -3
- package/dist/apis/billing.cjs +10 -8
- package/dist/apis/billing.js +5 -3
- package/dist/apis/blueprint-manifest.cjs +10 -8
- package/dist/apis/blueprint-manifest.js +5 -3
- package/dist/apis/consent.cjs +10 -8
- package/dist/apis/consent.js +5 -3
- package/dist/apis/customer-portal.cjs +10 -8
- package/dist/apis/customer-portal.js +5 -3
- package/dist/apis/dashboard.cjs +10 -8
- package/dist/apis/dashboard.js +5 -3
- package/dist/apis/data-management.cjs +10 -8
- package/dist/apis/data-management.js +5 -3
- package/dist/apis/deduplication.cjs +10 -8
- package/dist/apis/deduplication.js +5 -3
- package/dist/apis/design.cjs +10 -8
- package/dist/apis/design.js +5 -3
- package/dist/apis/document.cjs +10 -8
- package/dist/apis/document.js +5 -3
- package/dist/apis/email-settings.cjs +10 -8
- package/dist/apis/email-settings.js +5 -3
- package/dist/apis/email-template.cjs +10 -8
- package/dist/apis/email-template.js +5 -3
- package/dist/apis/entity-mapping.cjs +10 -8
- package/dist/apis/entity-mapping.js +5 -3
- package/dist/apis/entity.cjs +10 -8
- package/dist/apis/entity.js +5 -3
- package/dist/apis/environments.cjs +10 -8
- package/dist/apis/environments.js +5 -3
- package/dist/apis/erp-integration.cjs +10 -8
- package/dist/apis/erp-integration.js +5 -3
- package/dist/apis/event-catalog.cjs +10 -8
- package/dist/apis/event-catalog.js +5 -3
- package/dist/apis/file.cjs +10 -8
- package/dist/apis/file.js +5 -3
- package/dist/apis/iban.cjs +10 -8
- package/dist/apis/iban.js +5 -3
- package/dist/apis/journey.cjs +10 -8
- package/dist/apis/journey.js +5 -3
- package/dist/apis/kanban.cjs +10 -8
- package/dist/apis/kanban.js +5 -3
- package/dist/apis/message.cjs +10 -8
- package/dist/apis/message.js +5 -3
- package/dist/apis/metering.cjs +10 -8
- package/dist/apis/metering.js +5 -3
- package/dist/apis/notes.cjs +10 -8
- package/dist/apis/notes.js +5 -3
- package/dist/apis/notification.cjs +10 -8
- package/dist/apis/notification.js +5 -3
- package/dist/apis/organization.cjs +10 -8
- package/dist/apis/organization.d.cts +2 -2
- package/dist/apis/organization.d.ts +2 -2
- package/dist/apis/organization.js +5 -3
- package/dist/apis/partner-directory.cjs +10 -8
- package/dist/apis/partner-directory.js +5 -3
- package/dist/apis/permissions.cjs +10 -8
- package/dist/apis/permissions.js +5 -3
- package/dist/apis/pricing-tier.cjs +10 -8
- package/dist/apis/pricing-tier.js +5 -3
- package/dist/apis/pricing.cjs +10 -8
- package/dist/apis/pricing.js +5 -3
- package/dist/apis/purpose.cjs +10 -8
- package/dist/apis/purpose.js +5 -3
- package/dist/apis/sandbox.cjs +10 -8
- package/dist/apis/sandbox.js +5 -3
- package/dist/apis/submission.cjs +10 -8
- package/dist/apis/submission.js +5 -3
- package/dist/apis/targeting.cjs +10 -8
- package/dist/apis/targeting.js +5 -3
- package/dist/apis/template-variables.cjs +10 -8
- package/dist/apis/template-variables.js +5 -3
- package/dist/apis/user.cjs +10 -8
- package/dist/apis/user.js +5 -3
- package/dist/apis/validation-rules.cjs +10 -8
- package/dist/apis/validation-rules.js +5 -3
- package/dist/apis/webhooks.cjs +10 -8
- package/dist/apis/webhooks.js +5 -3
- package/dist/apis/workflow-definition.cjs +10 -8
- package/dist/apis/workflow-definition.js +5 -3
- package/dist/apis/workflow.cjs +10 -8
- package/dist/apis/workflow.js +5 -3
- package/dist/app-IKHWU222.cjs +7 -0
- package/dist/app-VLM3SWKA.js +7 -0
- package/dist/audit-logs-5VXHOQ7S.js +7 -0
- package/dist/audit-logs-D2LFUA2R.cjs +7 -0
- package/dist/automation-3HGCK725.cjs +7 -0
- package/dist/automation-72VGEJCY.js +7 -0
- package/dist/billing-DUWDISHP.cjs +7 -0
- package/dist/billing-IPALEAG2.js +7 -0
- package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
- package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
- package/dist/{chunk-6J7CIOKR.js → chunk-2HOJWFQ4.js} +1 -1
- package/dist/{chunk-BDIJHJOG.js → chunk-372VUPHN.js} +1 -1
- package/dist/{chunk-Q5TESEDZ.cjs → chunk-3HJEWWPS.cjs} +2 -2
- package/dist/{chunk-ID6BXIOZ.js → chunk-3N67SSL3.js} +1 -1
- package/dist/chunk-3XEP56SV.cjs +204 -0
- package/dist/{chunk-7KFKA3AH.cjs → chunk-3ZZ57K3S.cjs} +2 -2
- package/dist/{chunk-CVSQT5PV.cjs → chunk-4SWC43JO.cjs} +2 -2
- package/dist/{chunk-O3R6C3WW.js → chunk-4VFQTSJQ.js} +1 -1
- package/dist/{chunk-LXAJ722U.js → chunk-57QIBYDN.js} +1 -1
- package/dist/{chunk-SPZSDRM6.cjs → chunk-5SNJAD6F.cjs} +2 -2
- package/dist/{chunk-OI2M6FSB.js → chunk-73H6TVKN.js} +1 -1
- package/dist/{chunk-BB7WFIE2.cjs → chunk-A6JOROUC.cjs} +2 -2
- package/dist/{chunk-SHPXCOTN.cjs → chunk-AJKH25H2.cjs} +3 -3
- package/dist/{chunk-DBNEZWK2.cjs → chunk-ARWMTXJV.cjs} +2 -2
- package/dist/{chunk-7BPPP4M2.js → chunk-B3ZGAG7B.js} +1 -1
- package/dist/{chunk-5WN2YXNU.cjs → chunk-BH5ZXK4J.cjs} +2 -2
- package/dist/{chunk-JM6HKPSC.cjs → chunk-BWFXLUK5.cjs} +2 -2
- package/dist/{chunk-V56ZCL54.js → chunk-C6UTZEHH.js} +1 -1
- package/dist/{chunk-ZPCMZO2O.js → chunk-CPKBR34V.js} +1 -1
- package/dist/{chunk-UTQY2DSM.js → chunk-CWSHYFVZ.js} +1 -1
- package/dist/{chunk-5YVVQBA2.js → chunk-DJKSULPK.js} +1 -1
- package/dist/{chunk-XLOXC52O.js → chunk-DNJ54L2G.js} +1 -1
- package/dist/{chunk-YXPUCBVK.cjs → chunk-DY2D2IW5.cjs} +2 -2
- package/dist/{chunk-Z5LLUUFD.cjs → chunk-E26ZO7QM.cjs} +2 -2
- package/dist/{chunk-RNKZDJOY.js → chunk-EBCHCYUO.js} +1 -1
- package/dist/{chunk-4MO4WLKA.cjs → chunk-EPAIOB5U.cjs} +2 -2
- package/dist/{chunk-UX2IZQNM.cjs → chunk-EQZMT2HF.cjs} +2 -2
- package/dist/{chunk-U52A2DMK.cjs → chunk-F376L6PP.cjs} +2 -2
- package/dist/{chunk-TBBLLEB2.cjs → chunk-F472YLJG.cjs} +2 -2
- package/dist/{chunk-W3MM2BSK.cjs → chunk-FXOX3X7E.cjs} +2 -2
- package/dist/{chunk-E4IFBCNM.cjs → chunk-G2REP2VZ.cjs} +2 -2
- package/dist/{chunk-CFGXI3FX.js → chunk-GLO477NZ.js} +1 -1
- package/dist/{chunk-PBNPZ7UX.js → chunk-H4VSK4KF.js} +1 -1
- package/dist/{chunk-33TQRYMY.js → chunk-HPSGM6QP.js} +1 -1
- package/dist/{chunk-RQKN4WTW.cjs → chunk-HPYHWTTA.cjs} +2 -2
- package/dist/{chunk-5RXE7X63.js → chunk-IH4CMOML.js} +2 -2
- package/dist/{chunk-VD5TBK2T.cjs → chunk-IMT3IE5M.cjs} +2 -2
- package/dist/{chunk-DIP442PL.js → chunk-IP2WWEOU.js} +1 -1
- package/dist/{chunk-FCLW3FLF.js → chunk-IS2VB342.js} +1 -1
- package/dist/{chunk-UNHWLNE4.js → chunk-ITX53XAZ.js} +1 -1
- package/dist/{chunk-KU2XF4TS.cjs → chunk-JXBXDTFG.cjs} +2 -2
- package/dist/{chunk-Y4YQEDR3.js → chunk-K62XK7KU.js} +1 -1
- package/dist/chunk-KA3TGFJP.js +14 -0
- package/dist/{chunk-IXRDP4VP.js → chunk-KBOVBUBM.js} +1 -1
- package/dist/{chunk-MKZGM4A6.js → chunk-KPGC2D6E.js} +1 -1
- package/dist/{chunk-ZAPA4RPI.js → chunk-KSXTBGIV.js} +1 -1
- package/dist/{chunk-PLBIQ2Y7.cjs → chunk-LCIJ4TJ4.cjs} +2 -2
- package/dist/{chunk-TUAAE3UC.cjs → chunk-LQOLYXGQ.cjs} +2 -2
- package/dist/{chunk-6ADJEPMJ.js → chunk-LSIWCIQV.js} +1 -1
- package/dist/{chunk-CBRWUULQ.js → chunk-MHNSZ4HE.js} +1 -1
- package/dist/{chunk-WOOKHE7Y.cjs → chunk-MKX4CKAB.cjs} +2 -2
- package/dist/{chunk-N2P26AAD.js → chunk-MRTAFRO7.js} +1 -1
- package/dist/{chunk-YGULLD73.js → chunk-MRZ7LGKZ.js} +1 -1
- package/dist/{chunk-CLMZ2EXW.js → chunk-MSASBR2Y.js} +1 -1
- package/dist/{chunk-KEJRWMXR.cjs → chunk-NAWLLC3T.cjs} +2 -2
- package/dist/chunk-NJK5F5TF.cjs +21 -0
- package/dist/{chunk-HBPCJRZX.cjs → chunk-NLSZVGHK.cjs} +2 -2
- package/dist/{chunk-CK36RZXR.js → chunk-O4LRVGOY.js} +1 -1
- package/dist/chunk-OG2DMGU6.cjs +14 -0
- package/dist/{chunk-TIJGLQKO.js → chunk-OGQKJTXF.js} +1 -1
- package/dist/{chunk-UE4XPL43.js → chunk-PETLAONH.js} +1 -1
- package/dist/{chunk-MK4ZGXVE.cjs → chunk-PVSS2WPM.cjs} +2 -2
- package/dist/{chunk-ONN5COYQ.cjs → chunk-PXITFTJA.cjs} +2 -2
- package/dist/{chunk-ZAXYMQ2B.cjs → chunk-QDVPPRWI.cjs} +2 -2
- package/dist/{chunk-IPFHV2FV.cjs → chunk-QKERXNJJ.cjs} +2 -2
- package/dist/{chunk-ZDJ3J6Z6.cjs → chunk-QLML3IP5.cjs} +2 -2
- package/dist/{chunk-YFHQYQII.js → chunk-QVAJ5JP4.js} +1 -1
- package/dist/{chunk-S2QF6HG2.cjs → chunk-RD7E4OSJ.cjs} +2 -2
- package/dist/{chunk-XIB2G42L.cjs → chunk-RWSA3LXE.cjs} +2 -2
- package/dist/{chunk-R6WNZVTA.cjs → chunk-RXSS67VI.cjs} +2 -2
- package/dist/{chunk-UXVV3BSC.cjs → chunk-S3ZNESMC.cjs} +2 -2
- package/dist/{chunk-YNPRF4BX.js → chunk-S7NDMDRX.js} +1 -1
- package/dist/{chunk-HO7KACZZ.cjs → chunk-SK3VYIZ6.cjs} +2 -2
- package/dist/{chunk-CX3KG7D2.cjs → chunk-SMGHAG5C.cjs} +2 -2
- package/dist/{chunk-D5FJ26GG.js → chunk-T46LODOF.js} +1 -1
- package/dist/{chunk-Y4ZMNMYI.js → chunk-TIJWJVKZ.js} +1 -1
- package/dist/{chunk-EIILOQ6X.js → chunk-TLWCYLNA.js} +1 -1
- package/dist/{chunk-JX45ME2Z.js → chunk-TRJLYZHD.js} +1 -1
- package/dist/{chunk-RNBO3DEN.js → chunk-UKKJMCNH.js} +1 -1
- package/dist/chunk-ULBEEHG4.js +204 -0
- package/dist/{chunk-UDO4JYVU.cjs → chunk-VGTUK3QD.cjs} +2 -2
- package/dist/{chunk-4JPVFLVU.js → chunk-VQ7R36AC.js} +1 -1
- package/dist/{chunk-IPDIEZBN.cjs → chunk-VVQB5W7U.cjs} +2 -2
- package/dist/{chunk-HKZQ56AS.cjs → chunk-VVVATFGK.cjs} +2 -2
- package/dist/{chunk-URRL33D5.cjs → chunk-WMTYO5OX.cjs} +2 -2
- package/dist/{chunk-U4BMKRG6.js → chunk-WOSSSFXB.js} +1 -1
- package/dist/{chunk-OBQIS3KU.js → chunk-WOXXNKTE.js} +1 -1
- package/dist/{chunk-WAKSLH7V.cjs → chunk-XKI2OAYV.cjs} +2 -2
- package/dist/{chunk-5Y2KLUU6.cjs → chunk-XR4QF6KQ.cjs} +2 -2
- package/dist/{chunk-6BERHKDQ.cjs → chunk-XYHTQ523.cjs} +2 -2
- package/dist/{chunk-XD6XML3Z.cjs → chunk-XZYZLSUO.cjs} +2 -2
- package/dist/chunk-YPSWSI3M.js +21 -0
- package/dist/{chunk-4K3MX2J6.js → chunk-YYBIU5BQ.js} +1 -1
- package/dist/{chunk-HSGQSTVK.js → chunk-YZA5WZUS.js} +1 -1
- package/dist/{chunk-GGBSLAVO.cjs → chunk-Z4LUE424.cjs} +2 -2
- package/dist/{chunk-NSOHW3R6.js → chunk-ZV6XYUXS.js} +1 -1
- package/dist/consent-CS2ZBZX4.cjs +7 -0
- package/dist/consent-NNYHF2N4.js +7 -0
- package/dist/customer-portal-D3SLPAHZ.js +7 -0
- package/dist/customer-portal-UR3GN4VU.cjs +7 -0
- package/dist/dashboard-UHYR5RTY.cjs +7 -0
- package/dist/dashboard-UTPGXFW5.js +7 -0
- package/dist/data-management-QH2IJ5QV.js +7 -0
- package/dist/data-management-TEFRLGSU.cjs +7 -0
- package/dist/deduplication-ECVAZVVA.cjs +7 -0
- package/dist/deduplication-GYIST22B.js +7 -0
- package/dist/design-KUVXMFFK.cjs +7 -0
- package/dist/design-YKBXRW5C.js +7 -0
- package/dist/document-CY2A2OE7.js +7 -0
- package/dist/document-RYQ7MF6U.cjs +7 -0
- package/dist/email-settings-TQ5GGDYG.js +7 -0
- package/dist/email-settings-TQC34GST.cjs +7 -0
- package/dist/email-template-M2VVL4TI.cjs +7 -0
- package/dist/email-template-WYROV3UG.js +7 -0
- package/dist/entity-FA6PZX6S.js +7 -0
- package/dist/entity-IX5NSHPX.cjs +7 -0
- package/dist/entity-mapping-7J3IAGKQ.js +7 -0
- package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
- package/dist/environments-E3X6NYGX.js +7 -0
- package/dist/environments-P2JS4F5N.cjs +7 -0
- package/dist/erp-integration-EP2XFEH5.js +7 -0
- package/dist/erp-integration-NNV72VFI.cjs +7 -0
- package/dist/event-catalog-C45ISVMP.cjs +7 -0
- package/dist/event-catalog-D7VJ7WRS.js +7 -0
- package/dist/file-UOWBTDIU.cjs +7 -0
- package/dist/file-XSN3NAVZ.js +7 -0
- package/dist/iban-24GHLFDB.cjs +7 -0
- package/dist/iban-LDKYDVQV.js +7 -0
- package/dist/index.cjs +107 -100
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +58 -51
- package/dist/journey-7CKX67M7.js +7 -0
- package/dist/journey-EUZ6MVHG.cjs +7 -0
- package/dist/kanban-CHTH2ZSY.cjs +7 -0
- package/dist/kanban-HI6LL5WY.js +7 -0
- package/dist/message-3XZLJR6R.cjs +7 -0
- package/dist/message-ZNMCS5YH.js +7 -0
- package/dist/metering-DZNZPPY6.cjs +7 -0
- package/dist/metering-KOSCPPKB.js +7 -0
- package/dist/notes-3AO5GXIT.js +7 -0
- package/dist/notes-MPWOQC5J.cjs +7 -0
- package/dist/notification-PZOCUYD5.cjs +7 -0
- package/dist/notification-VWDZRSFZ.js +7 -0
- package/dist/organization-RARYYG2E.cjs +7 -0
- package/dist/organization-ZERPH2IH.js +7 -0
- package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
- package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
- package/dist/partner-directory-2XMPQWWX.js +7 -0
- package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
- package/dist/permissions-4T3GFNB4.js +7 -0
- package/dist/permissions-FGBIJNN7.cjs +7 -0
- package/dist/pricing-4Z4TOETA.cjs +7 -0
- package/dist/pricing-C65DTZSX.js +7 -0
- package/dist/pricing-tier-NI35WOUP.cjs +7 -0
- package/dist/pricing-tier-VUOFK5Q7.js +7 -0
- package/dist/purpose-AKOEUHZ4.cjs +7 -0
- package/dist/purpose-RBRV3AQZ.js +7 -0
- package/dist/sandbox-2KN4X66E.cjs +7 -0
- package/dist/sandbox-L2SOOGGR.js +7 -0
- package/dist/submission-7BISSPO6.js +7 -0
- package/dist/submission-Q24BU4GS.cjs +7 -0
- package/dist/targeting-EYGYZD6M.cjs +7 -0
- package/dist/targeting-GEJTJN5Z.js +7 -0
- package/dist/template-variables-OAYS2E3G.cjs +1148 -0
- package/dist/template-variables-VKDJJZUT.js +1148 -0
- package/dist/user-EIEOI3OG.js +7 -0
- package/dist/user-NJJ7XVKB.cjs +7 -0
- package/dist/validation-rules-P6F5P73P.js +7 -0
- package/dist/validation-rules-VDU3CIZV.cjs +7 -0
- package/dist/webhooks-I7JWU34X.cjs +7 -0
- package/dist/webhooks-WPLEHVPX.js +7 -0
- package/dist/workflow-3LLURW3H.js +7 -0
- package/dist/workflow-RAGQDYXT.cjs +7 -0
- package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
- package/dist/workflow-definition-D24CRCK2.js +7 -0
- package/docs/access-token.md +440 -0
- package/docs/address-suggestions.md +256 -0
- package/docs/address.md +284 -0
- package/docs/ai-agents.md +1891 -0
- package/docs/app.md +3388 -0
- package/docs/audit-logs.md +242 -0
- package/docs/automation.md +4044 -0
- package/docs/billing.md +783 -0
- package/docs/blueprint-manifest.md +3234 -0
- package/docs/consent.md +213 -0
- package/docs/customer-portal.md +11399 -0
- package/docs/dashboard.md +640 -0
- package/docs/data-management.md +883 -0
- package/docs/deduplication.md +135 -0
- package/docs/design.md +1273 -0
- package/docs/document.md +590 -0
- package/docs/email-settings.md +1544 -0
- package/docs/email-template.md +1197 -0
- package/docs/entity-mapping.md +2864 -0
- package/docs/entity.md +9595 -0
- package/docs/environments.md +259 -0
- package/docs/erp-integration.md +4572 -0
- package/docs/event-catalog.md +835 -0
- package/docs/file.md +1453 -0
- package/docs/iban.md +61 -0
- package/docs/journey.md +2268 -0
- package/docs/kanban.md +882 -0
- package/docs/message.md +2122 -0
- package/docs/metering.md +1431 -0
- package/docs/notes.md +670 -0
- package/docs/notification.md +1207 -0
- package/docs/organization.md +733 -0
- package/docs/partner-directory.md +1197 -0
- package/docs/permissions.md +1047 -0
- package/docs/pricing-tier.md +81 -0
- package/docs/pricing.md +5923 -0
- package/docs/purpose.md +283 -0
- package/docs/sandbox.md +389 -0
- package/docs/submission.md +195 -0
- package/docs/targeting.md +959 -0
- package/docs/template-variables.md +1141 -0
- package/docs/user.md +2555 -0
- package/docs/validation-rules.md +1597 -0
- package/docs/webhooks.md +996 -0
- package/docs/workflow-definition.md +3842 -0
- package/docs/workflow.md +4465 -0
- package/package.json +3 -2
- package/dist/chunk-GMBRXWMD.cjs +0 -14
- package/dist/chunk-L43U5IO3.js +0 -14
- package/dist/chunk-XE25WERA.js +0 -125
- package/dist/chunk-XEQMAKGA.cjs +0 -125
package/docs/journey.md
ADDED
|
@@ -0,0 +1,2268 @@
|
|
|
1
|
+
# Journey API
|
|
2
|
+
|
|
3
|
+
- **Base URL:** `https://journey-config.sls.epilot.io`
|
|
4
|
+
- **Full API Docs:** [https://docs.epilot.io/api/journey](https://docs.epilot.io/api/journey)
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { epilot } from '@epilot/sdk'
|
|
10
|
+
|
|
11
|
+
epilot.authorize(() => '<token>')
|
|
12
|
+
const { data } = await epilot.journey.getJourneysByOrgId(...)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Tree-shakeable import
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getClient, authorize } from '@epilot/sdk/journey'
|
|
19
|
+
|
|
20
|
+
const journeyClient = getClient()
|
|
21
|
+
authorize(journeyClient, () => '<token>')
|
|
22
|
+
const { data } = await journeyClient.getJourneysByOrgId(...)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Operations
|
|
26
|
+
|
|
27
|
+
**Journeys**
|
|
28
|
+
- [`getJourneysByOrgId`](#getjourneysbyorgid)
|
|
29
|
+
- [`getJourney`](#getjourney)
|
|
30
|
+
- [`removeJourney`](#removejourney)
|
|
31
|
+
- [`getJourneyProducts`](#getjourneyproducts)
|
|
32
|
+
- [`createJourney`](#createjourney)
|
|
33
|
+
- [`updateJourney`](#updatejourney)
|
|
34
|
+
- [`patchUpdateJourney`](#patchupdatejourney)
|
|
35
|
+
- [`searchJourneys`](#searchjourneys)
|
|
36
|
+
- [`generateDocument`](#generatedocument)
|
|
37
|
+
- [`getSettingsForJourney`](#getsettingsforjourney)
|
|
38
|
+
- [`getButtonOptions`](#getbuttonoptions)
|
|
39
|
+
|
|
40
|
+
**Journeys V2**
|
|
41
|
+
- [`createJourneyV2`](#createjourneyv2)
|
|
42
|
+
- [`updateJourneyV2`](#updatejourneyv2)
|
|
43
|
+
- [`patchUpdateJourneyV2`](#patchupdatejourneyv2)
|
|
44
|
+
- [`getJourneyV2`](#getjourneyv2)
|
|
45
|
+
- [`removeJourneyV2`](#removejourneyv2)
|
|
46
|
+
|
|
47
|
+
**Schemas**
|
|
48
|
+
- [`GetJourneysResponse`](#getjourneysresponse)
|
|
49
|
+
- [`JourneyResponse`](#journeyresponse)
|
|
50
|
+
- [`JourneyProductsResponse`](#journeyproductsresponse)
|
|
51
|
+
- [`PatchUpdateJourneyRequest`](#patchupdatejourneyrequest)
|
|
52
|
+
- [`JourneyCreationRequest`](#journeycreationrequest)
|
|
53
|
+
- [`JourneyCreationRequestV2`](#journeycreationrequestv2)
|
|
54
|
+
- [`SearchJourneysQueryRequest`](#searchjourneysqueryrequest)
|
|
55
|
+
- [`SearchJourneysResponse`](#searchjourneysresponse)
|
|
56
|
+
- [`Journey`](#journey)
|
|
57
|
+
- [`JourneyFeatureFlags`](#journeyfeatureflags)
|
|
58
|
+
- [`JourneyAuditInfo`](#journeyauditinfo)
|
|
59
|
+
- [`JourneyValidationResponse`](#journeyvalidationresponse)
|
|
60
|
+
- [`JourneyValidationError`](#journeyvalidationerror)
|
|
61
|
+
- [`S3Reference`](#s3reference)
|
|
62
|
+
- [`TemplateSettings`](#templatesettings)
|
|
63
|
+
- [`GenerateDocumentResponse`](#generatedocumentresponse)
|
|
64
|
+
- [`GenerateDocumentRequest`](#generatedocumentrequest)
|
|
65
|
+
- [`GetSettingsForJourney`](#getsettingsforjourney)
|
|
66
|
+
- [`ButtonOption`](#buttonoption)
|
|
67
|
+
- [`ValidationRuleRef`](#validationruleref)
|
|
68
|
+
- [`RuleRef`](#ruleref)
|
|
69
|
+
|
|
70
|
+
### `getJourneysByOrgId`
|
|
71
|
+
|
|
72
|
+
Get all journeys by organization id
|
|
73
|
+
|
|
74
|
+
`GET /v1/journey/organization/{id}`
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
const { data } = await client.getJourneysByOrgId({
|
|
78
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
79
|
+
hydrate: 'example',
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary>Response</summary>
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
</details>
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
### `getJourney`
|
|
95
|
+
|
|
96
|
+
Get journey by id. Private journeys requires valid private token to be passed
|
|
97
|
+
|
|
98
|
+
`GET /v1/journey/configuration/{id}`
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
const { data } = await client.getJourney({
|
|
102
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
103
|
+
source: 'example',
|
|
104
|
+
orgId: 'example',
|
|
105
|
+
})
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
<details>
|
|
109
|
+
<summary>Response</summary>
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"journeyId": "string",
|
|
114
|
+
"organizationId": "string",
|
|
115
|
+
"brandId": "string",
|
|
116
|
+
"name": "string",
|
|
117
|
+
"steps": [
|
|
118
|
+
{
|
|
119
|
+
"showStepName": true,
|
|
120
|
+
"title": "string",
|
|
121
|
+
"subTitle": "string",
|
|
122
|
+
"showStepSubtitle": true,
|
|
123
|
+
"showStepper": true,
|
|
124
|
+
"showStepperLabels": true,
|
|
125
|
+
"hideNextButton": true,
|
|
126
|
+
"name": "string",
|
|
127
|
+
"stepId": "string",
|
|
128
|
+
"schema": {},
|
|
129
|
+
"uischema": {},
|
|
130
|
+
"maxWidth": "small"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"design": {
|
|
134
|
+
"logoUrl": "string",
|
|
135
|
+
"theme": {},
|
|
136
|
+
"designTokens": {}
|
|
137
|
+
},
|
|
138
|
+
"rules": [
|
|
139
|
+
{
|
|
140
|
+
"type": "inject",
|
|
141
|
+
"sourceType": "journey",
|
|
142
|
+
"source": "string",
|
|
143
|
+
"target": "string"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"logics": [
|
|
147
|
+
{
|
|
148
|
+
"autoGeneratedId": "string",
|
|
149
|
+
"conditions": ["string"],
|
|
150
|
+
"actions": ["string"]
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"logicsV4": {},
|
|
154
|
+
"contextSchema": [
|
|
155
|
+
{
|
|
156
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
157
|
+
"type": "string",
|
|
158
|
+
"paramKey": "string",
|
|
159
|
+
"isRequired": true,
|
|
160
|
+
"shouldLoadEntity": true
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"journey_type": "Sales template (Premium)",
|
|
164
|
+
"settings": {
|
|
165
|
+
"embedOptions": {
|
|
166
|
+
"mode": "full-screen",
|
|
167
|
+
"lang": "de",
|
|
168
|
+
"width": "string",
|
|
169
|
+
"topBar": true,
|
|
170
|
+
"scrollToTop": true,
|
|
171
|
+
"button": {}
|
|
172
|
+
},
|
|
173
|
+
"safeModeAutomation": true,
|
|
174
|
+
"canary": true,
|
|
175
|
+
"designId": "string",
|
|
176
|
+
"templateId": "string",
|
|
177
|
+
"entityId": "string",
|
|
178
|
+
"mappingsAutomationId": "string",
|
|
179
|
+
"targetedCustomer": "string",
|
|
180
|
+
"description": "string",
|
|
181
|
+
"organizationSettings": {},
|
|
182
|
+
"publicToken": "string",
|
|
183
|
+
"runtimeEntities": ["ORDER"],
|
|
184
|
+
"filePurposes": ["string"],
|
|
185
|
+
"entityTags": ["string"],
|
|
186
|
+
"addressSuggestionsFileUrl": "string",
|
|
187
|
+
"addressSuggestionsFileId": "string",
|
|
188
|
+
"addressSuggestionsCountryCode": "string",
|
|
189
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
190
|
+
"addressSuggestionsSource": ["string"],
|
|
191
|
+
"addressSuggestionsEnableFreeText": true,
|
|
192
|
+
"useNewDesign": true,
|
|
193
|
+
"useAustrianLabels": true,
|
|
194
|
+
"enableDarkMode": true,
|
|
195
|
+
"accessMode": "PUBLIC",
|
|
196
|
+
"isPublished": true,
|
|
197
|
+
"status": "string",
|
|
198
|
+
"isActive": true,
|
|
199
|
+
"savingProgress": {
|
|
200
|
+
"savingMode": "auto",
|
|
201
|
+
"supportedVersion": 0
|
|
202
|
+
},
|
|
203
|
+
"thirdPartyCookies": true
|
|
204
|
+
},
|
|
205
|
+
"validationRules": {
|
|
206
|
+
"block1": "rule123",
|
|
207
|
+
"block2": {
|
|
208
|
+
"field1": "rule456",
|
|
209
|
+
"field2": "rule789"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"createdBy": "string",
|
|
213
|
+
"updatedBy": "string",
|
|
214
|
+
"__lastModifiedAt": "string",
|
|
215
|
+
"createdAt": "string",
|
|
216
|
+
"lastModifiedAt": "string",
|
|
217
|
+
"deletedAt": "string",
|
|
218
|
+
"version": 0,
|
|
219
|
+
"revisions": 0,
|
|
220
|
+
"featureFlags": {}
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
</details>
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
### `removeJourney`
|
|
229
|
+
|
|
230
|
+
Remove journey by id
|
|
231
|
+
|
|
232
|
+
`DELETE /v1/journey/configuration/{id}`
|
|
233
|
+
|
|
234
|
+
```ts
|
|
235
|
+
const { data } = await client.removeJourney({
|
|
236
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
237
|
+
})
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
### `getJourneyProducts`
|
|
243
|
+
|
|
244
|
+
Get products available in the journey by id. requires public journey token to be passed.
|
|
245
|
+
|
|
246
|
+
`GET /v1/journey/products/{id}`
|
|
247
|
+
|
|
248
|
+
```ts
|
|
249
|
+
const { data } = await client.getJourneyProducts({
|
|
250
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
251
|
+
source: 'example',
|
|
252
|
+
postal_code: 'example',
|
|
253
|
+
city: 'example',
|
|
254
|
+
street: 'example',
|
|
255
|
+
street_number: 'example',
|
|
256
|
+
})
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
<details>
|
|
260
|
+
<summary>Response</summary>
|
|
261
|
+
|
|
262
|
+
```json
|
|
263
|
+
[
|
|
264
|
+
{
|
|
265
|
+
"type": "string",
|
|
266
|
+
"_schema": "string",
|
|
267
|
+
"_title": "string",
|
|
268
|
+
"name": "string",
|
|
269
|
+
"_id": "string",
|
|
270
|
+
"_org": "string",
|
|
271
|
+
"code": "string",
|
|
272
|
+
"description": "string",
|
|
273
|
+
"feature": [
|
|
274
|
+
{}
|
|
275
|
+
],
|
|
276
|
+
"product_images": [
|
|
277
|
+
{}
|
|
278
|
+
],
|
|
279
|
+
"legal_footnote": "string",
|
|
280
|
+
"product_downloads": [
|
|
281
|
+
{}
|
|
282
|
+
],
|
|
283
|
+
"price": {}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
</details>
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
### `createJourney`
|
|
293
|
+
|
|
294
|
+
Create a Journey
|
|
295
|
+
|
|
296
|
+
`POST /v1/journey/configuration`
|
|
297
|
+
|
|
298
|
+
```ts
|
|
299
|
+
const { data } = await client.createJourney(
|
|
300
|
+
{
|
|
301
|
+
skipAutomation: 'example',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
journeyId: 'string',
|
|
305
|
+
organizationId: 'string',
|
|
306
|
+
brandId: 'string',
|
|
307
|
+
name: 'string',
|
|
308
|
+
steps: [
|
|
309
|
+
{
|
|
310
|
+
showStepName: true,
|
|
311
|
+
title: 'string',
|
|
312
|
+
subTitle: 'string',
|
|
313
|
+
showStepSubtitle: true,
|
|
314
|
+
showStepper: true,
|
|
315
|
+
showStepperLabels: true,
|
|
316
|
+
hideNextButton: true,
|
|
317
|
+
name: 'string',
|
|
318
|
+
stepId: 'string',
|
|
319
|
+
schema: {},
|
|
320
|
+
uischema: {},
|
|
321
|
+
maxWidth: 'small'
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
design: {
|
|
325
|
+
logoUrl: 'string',
|
|
326
|
+
theme: {},
|
|
327
|
+
designTokens: {}
|
|
328
|
+
},
|
|
329
|
+
rules: [
|
|
330
|
+
{
|
|
331
|
+
type: 'inject',
|
|
332
|
+
sourceType: 'journey',
|
|
333
|
+
source: 'string',
|
|
334
|
+
target: 'string'
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
logics: [
|
|
338
|
+
{
|
|
339
|
+
autoGeneratedId: 'string',
|
|
340
|
+
conditions: ['string'],
|
|
341
|
+
actions: ['string']
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
logicsV4: {},
|
|
345
|
+
contextSchema: [
|
|
346
|
+
{
|
|
347
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
348
|
+
type: 'string',
|
|
349
|
+
paramKey: 'string',
|
|
350
|
+
isRequired: true,
|
|
351
|
+
shouldLoadEntity: true
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
journey_type: 'Sales template (Premium)',
|
|
355
|
+
settings: {
|
|
356
|
+
embedOptions: {
|
|
357
|
+
mode: 'full-screen',
|
|
358
|
+
lang: 'de',
|
|
359
|
+
width: 'string',
|
|
360
|
+
topBar: true,
|
|
361
|
+
scrollToTop: true,
|
|
362
|
+
button: { /* ... */ }
|
|
363
|
+
},
|
|
364
|
+
safeModeAutomation: true,
|
|
365
|
+
canary: true,
|
|
366
|
+
designId: 'string',
|
|
367
|
+
templateId: 'string',
|
|
368
|
+
entityId: 'string',
|
|
369
|
+
mappingsAutomationId: 'string',
|
|
370
|
+
targetedCustomer: 'string',
|
|
371
|
+
description: 'string',
|
|
372
|
+
organizationSettings: {},
|
|
373
|
+
publicToken: 'string',
|
|
374
|
+
runtimeEntities: ['ORDER'],
|
|
375
|
+
filePurposes: ['string'],
|
|
376
|
+
entityTags: ['string'],
|
|
377
|
+
addressSuggestionsFileUrl: 'string',
|
|
378
|
+
addressSuggestionsFileId: 'string',
|
|
379
|
+
addressSuggestionsCountryCode: 'string',
|
|
380
|
+
addressSuggestionsEnableAutoComplete: true,
|
|
381
|
+
addressSuggestionsSource: ['string'],
|
|
382
|
+
addressSuggestionsEnableFreeText: true,
|
|
383
|
+
useNewDesign: true,
|
|
384
|
+
useAustrianLabels: true,
|
|
385
|
+
enableDarkMode: true,
|
|
386
|
+
accessMode: 'PUBLIC',
|
|
387
|
+
isPublished: true,
|
|
388
|
+
status: 'string',
|
|
389
|
+
isActive: true,
|
|
390
|
+
savingProgress: {
|
|
391
|
+
savingMode: 'auto',
|
|
392
|
+
supportedVersion: 0
|
|
393
|
+
},
|
|
394
|
+
thirdPartyCookies: true
|
|
395
|
+
},
|
|
396
|
+
validationRules: {
|
|
397
|
+
block1: 'rule123',
|
|
398
|
+
block2: {
|
|
399
|
+
field1: 'rule456',
|
|
400
|
+
field2: 'rule789'
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
createdBy: 'string',
|
|
404
|
+
updatedBy: 'string',
|
|
405
|
+
__lastModifiedAt: 'string'
|
|
406
|
+
},
|
|
407
|
+
)
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
<details>
|
|
411
|
+
<summary>Response</summary>
|
|
412
|
+
|
|
413
|
+
```json
|
|
414
|
+
{
|
|
415
|
+
"journeyId": "string",
|
|
416
|
+
"organizationId": "string",
|
|
417
|
+
"brandId": "string",
|
|
418
|
+
"name": "string",
|
|
419
|
+
"steps": [
|
|
420
|
+
{
|
|
421
|
+
"showStepName": true,
|
|
422
|
+
"title": "string",
|
|
423
|
+
"subTitle": "string",
|
|
424
|
+
"showStepSubtitle": true,
|
|
425
|
+
"showStepper": true,
|
|
426
|
+
"showStepperLabels": true,
|
|
427
|
+
"hideNextButton": true,
|
|
428
|
+
"name": "string",
|
|
429
|
+
"stepId": "string",
|
|
430
|
+
"schema": {},
|
|
431
|
+
"uischema": {},
|
|
432
|
+
"maxWidth": "small"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"design": {
|
|
436
|
+
"logoUrl": "string",
|
|
437
|
+
"theme": {},
|
|
438
|
+
"designTokens": {}
|
|
439
|
+
},
|
|
440
|
+
"rules": [
|
|
441
|
+
{
|
|
442
|
+
"type": "inject",
|
|
443
|
+
"sourceType": "journey",
|
|
444
|
+
"source": "string",
|
|
445
|
+
"target": "string"
|
|
446
|
+
}
|
|
447
|
+
],
|
|
448
|
+
"logics": [
|
|
449
|
+
{
|
|
450
|
+
"autoGeneratedId": "string",
|
|
451
|
+
"conditions": ["string"],
|
|
452
|
+
"actions": ["string"]
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"logicsV4": {},
|
|
456
|
+
"contextSchema": [
|
|
457
|
+
{
|
|
458
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
459
|
+
"type": "string",
|
|
460
|
+
"paramKey": "string",
|
|
461
|
+
"isRequired": true,
|
|
462
|
+
"shouldLoadEntity": true
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"journey_type": "Sales template (Premium)",
|
|
466
|
+
"settings": {
|
|
467
|
+
"embedOptions": {
|
|
468
|
+
"mode": "full-screen",
|
|
469
|
+
"lang": "de",
|
|
470
|
+
"width": "string",
|
|
471
|
+
"topBar": true,
|
|
472
|
+
"scrollToTop": true,
|
|
473
|
+
"button": {}
|
|
474
|
+
},
|
|
475
|
+
"safeModeAutomation": true,
|
|
476
|
+
"canary": true,
|
|
477
|
+
"designId": "string",
|
|
478
|
+
"templateId": "string",
|
|
479
|
+
"entityId": "string",
|
|
480
|
+
"mappingsAutomationId": "string",
|
|
481
|
+
"targetedCustomer": "string",
|
|
482
|
+
"description": "string",
|
|
483
|
+
"organizationSettings": {},
|
|
484
|
+
"publicToken": "string",
|
|
485
|
+
"runtimeEntities": ["ORDER"],
|
|
486
|
+
"filePurposes": ["string"],
|
|
487
|
+
"entityTags": ["string"],
|
|
488
|
+
"addressSuggestionsFileUrl": "string",
|
|
489
|
+
"addressSuggestionsFileId": "string",
|
|
490
|
+
"addressSuggestionsCountryCode": "string",
|
|
491
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
492
|
+
"addressSuggestionsSource": ["string"],
|
|
493
|
+
"addressSuggestionsEnableFreeText": true,
|
|
494
|
+
"useNewDesign": true,
|
|
495
|
+
"useAustrianLabels": true,
|
|
496
|
+
"enableDarkMode": true,
|
|
497
|
+
"accessMode": "PUBLIC",
|
|
498
|
+
"isPublished": true,
|
|
499
|
+
"status": "string",
|
|
500
|
+
"isActive": true,
|
|
501
|
+
"savingProgress": {
|
|
502
|
+
"savingMode": "auto",
|
|
503
|
+
"supportedVersion": 0
|
|
504
|
+
},
|
|
505
|
+
"thirdPartyCookies": true
|
|
506
|
+
},
|
|
507
|
+
"validationRules": {
|
|
508
|
+
"block1": "rule123",
|
|
509
|
+
"block2": {
|
|
510
|
+
"field1": "rule456",
|
|
511
|
+
"field2": "rule789"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"createdBy": "string",
|
|
515
|
+
"updatedBy": "string",
|
|
516
|
+
"__lastModifiedAt": "string",
|
|
517
|
+
"createdAt": "string",
|
|
518
|
+
"lastModifiedAt": "string",
|
|
519
|
+
"deletedAt": "string",
|
|
520
|
+
"version": 0,
|
|
521
|
+
"revisions": 0,
|
|
522
|
+
"featureFlags": {}
|
|
523
|
+
}
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
</details>
|
|
527
|
+
|
|
528
|
+
---
|
|
529
|
+
|
|
530
|
+
### `updateJourney`
|
|
531
|
+
|
|
532
|
+
Update a Journey
|
|
533
|
+
|
|
534
|
+
`PUT /v1/journey/configuration`
|
|
535
|
+
|
|
536
|
+
```ts
|
|
537
|
+
const { data } = await client.updateJourney(
|
|
538
|
+
null,
|
|
539
|
+
{
|
|
540
|
+
journeyId: 'string',
|
|
541
|
+
organizationId: 'string',
|
|
542
|
+
brandId: 'string',
|
|
543
|
+
name: 'string',
|
|
544
|
+
steps: [
|
|
545
|
+
{
|
|
546
|
+
showStepName: true,
|
|
547
|
+
title: 'string',
|
|
548
|
+
subTitle: 'string',
|
|
549
|
+
showStepSubtitle: true,
|
|
550
|
+
showStepper: true,
|
|
551
|
+
showStepperLabels: true,
|
|
552
|
+
hideNextButton: true,
|
|
553
|
+
name: 'string',
|
|
554
|
+
stepId: 'string',
|
|
555
|
+
schema: {},
|
|
556
|
+
uischema: {},
|
|
557
|
+
maxWidth: 'small'
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
design: {
|
|
561
|
+
logoUrl: 'string',
|
|
562
|
+
theme: {},
|
|
563
|
+
designTokens: {}
|
|
564
|
+
},
|
|
565
|
+
rules: [
|
|
566
|
+
{
|
|
567
|
+
type: 'inject',
|
|
568
|
+
sourceType: 'journey',
|
|
569
|
+
source: 'string',
|
|
570
|
+
target: 'string'
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
logics: [
|
|
574
|
+
{
|
|
575
|
+
autoGeneratedId: 'string',
|
|
576
|
+
conditions: ['string'],
|
|
577
|
+
actions: ['string']
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
logicsV4: {},
|
|
581
|
+
contextSchema: [
|
|
582
|
+
{
|
|
583
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
584
|
+
type: 'string',
|
|
585
|
+
paramKey: 'string',
|
|
586
|
+
isRequired: true,
|
|
587
|
+
shouldLoadEntity: true
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
journey_type: 'Sales template (Premium)',
|
|
591
|
+
settings: {
|
|
592
|
+
embedOptions: {
|
|
593
|
+
mode: 'full-screen',
|
|
594
|
+
lang: 'de',
|
|
595
|
+
width: 'string',
|
|
596
|
+
topBar: true,
|
|
597
|
+
scrollToTop: true,
|
|
598
|
+
button: { /* ... */ }
|
|
599
|
+
},
|
|
600
|
+
safeModeAutomation: true,
|
|
601
|
+
canary: true,
|
|
602
|
+
designId: 'string',
|
|
603
|
+
templateId: 'string',
|
|
604
|
+
entityId: 'string',
|
|
605
|
+
mappingsAutomationId: 'string',
|
|
606
|
+
targetedCustomer: 'string',
|
|
607
|
+
description: 'string',
|
|
608
|
+
organizationSettings: {},
|
|
609
|
+
publicToken: 'string',
|
|
610
|
+
runtimeEntities: ['ORDER'],
|
|
611
|
+
filePurposes: ['string'],
|
|
612
|
+
entityTags: ['string'],
|
|
613
|
+
addressSuggestionsFileUrl: 'string',
|
|
614
|
+
addressSuggestionsFileId: 'string',
|
|
615
|
+
addressSuggestionsCountryCode: 'string',
|
|
616
|
+
addressSuggestionsEnableAutoComplete: true,
|
|
617
|
+
addressSuggestionsSource: ['string'],
|
|
618
|
+
addressSuggestionsEnableFreeText: true,
|
|
619
|
+
useNewDesign: true,
|
|
620
|
+
useAustrianLabels: true,
|
|
621
|
+
enableDarkMode: true,
|
|
622
|
+
accessMode: 'PUBLIC',
|
|
623
|
+
isPublished: true,
|
|
624
|
+
status: 'string',
|
|
625
|
+
isActive: true,
|
|
626
|
+
savingProgress: {
|
|
627
|
+
savingMode: 'auto',
|
|
628
|
+
supportedVersion: 0
|
|
629
|
+
},
|
|
630
|
+
thirdPartyCookies: true
|
|
631
|
+
},
|
|
632
|
+
validationRules: {
|
|
633
|
+
block1: 'rule123',
|
|
634
|
+
block2: {
|
|
635
|
+
field1: 'rule456',
|
|
636
|
+
field2: 'rule789'
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
createdBy: 'string',
|
|
640
|
+
updatedBy: 'string',
|
|
641
|
+
__lastModifiedAt: 'string'
|
|
642
|
+
},
|
|
643
|
+
)
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
|
|
648
|
+
### `patchUpdateJourney`
|
|
649
|
+
|
|
650
|
+
Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
651
|
+
|
|
652
|
+
`PATCH /v1/journey/configuration`
|
|
653
|
+
|
|
654
|
+
```ts
|
|
655
|
+
const { data } = await client.patchUpdateJourney(
|
|
656
|
+
null,
|
|
657
|
+
{
|
|
658
|
+
journeyId: '509cdffe-424f-457a-95c2-9708c304ce77',
|
|
659
|
+
__lastModifiedAt: 'string'
|
|
660
|
+
},
|
|
661
|
+
)
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
<details>
|
|
665
|
+
<summary>Response</summary>
|
|
666
|
+
|
|
667
|
+
```json
|
|
668
|
+
{
|
|
669
|
+
"createdJourney": {
|
|
670
|
+
"journeyId": "string",
|
|
671
|
+
"organizationId": "string",
|
|
672
|
+
"brandId": "string",
|
|
673
|
+
"name": "string",
|
|
674
|
+
"steps": [
|
|
675
|
+
{}
|
|
676
|
+
],
|
|
677
|
+
"design": {
|
|
678
|
+
"logoUrl": "string",
|
|
679
|
+
"theme": {},
|
|
680
|
+
"designTokens": {}
|
|
681
|
+
},
|
|
682
|
+
"rules": [
|
|
683
|
+
{}
|
|
684
|
+
],
|
|
685
|
+
"logics": [
|
|
686
|
+
{}
|
|
687
|
+
],
|
|
688
|
+
"logicsV4": {},
|
|
689
|
+
"contextSchema": [
|
|
690
|
+
{}
|
|
691
|
+
],
|
|
692
|
+
"journey_type": "Sales template (Premium)",
|
|
693
|
+
"settings": {
|
|
694
|
+
"embedOptions": {},
|
|
695
|
+
"safeModeAutomation": true,
|
|
696
|
+
"canary": true,
|
|
697
|
+
"designId": "string",
|
|
698
|
+
"templateId": "string",
|
|
699
|
+
"entityId": "string",
|
|
700
|
+
"mappingsAutomationId": "string",
|
|
701
|
+
"targetedCustomer": "string",
|
|
702
|
+
"description": "string",
|
|
703
|
+
"organizationSettings": {},
|
|
704
|
+
"publicToken": "string",
|
|
705
|
+
"runtimeEntities": ["ORDER"],
|
|
706
|
+
"filePurposes": ["string"],
|
|
707
|
+
"entityTags": ["string"],
|
|
708
|
+
"addressSuggestionsFileUrl": "string",
|
|
709
|
+
"addressSuggestionsFileId": "string",
|
|
710
|
+
"addressSuggestionsCountryCode": "string",
|
|
711
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
712
|
+
"addressSuggestionsSource": ["string"],
|
|
713
|
+
"addressSuggestionsEnableFreeText": true,
|
|
714
|
+
"useNewDesign": true,
|
|
715
|
+
"useAustrianLabels": true,
|
|
716
|
+
"enableDarkMode": true,
|
|
717
|
+
"accessMode": "PUBLIC",
|
|
718
|
+
"isPublished": true,
|
|
719
|
+
"status": "string",
|
|
720
|
+
"isActive": true,
|
|
721
|
+
"savingProgress": {},
|
|
722
|
+
"thirdPartyCookies": true
|
|
723
|
+
},
|
|
724
|
+
"validationRules": {
|
|
725
|
+
"block1": "rule123",
|
|
726
|
+
"block2": {}
|
|
727
|
+
},
|
|
728
|
+
"createdBy": "string",
|
|
729
|
+
"updatedBy": "string",
|
|
730
|
+
"__lastModifiedAt": "string",
|
|
731
|
+
"createdAt": "string",
|
|
732
|
+
"lastModifiedAt": "string",
|
|
733
|
+
"deletedAt": "string",
|
|
734
|
+
"version": 0,
|
|
735
|
+
"revisions": 0,
|
|
736
|
+
"featureFlags": {}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
</details>
|
|
742
|
+
|
|
743
|
+
---
|
|
744
|
+
|
|
745
|
+
### `searchJourneys`
|
|
746
|
+
|
|
747
|
+
Search Journeys
|
|
748
|
+
|
|
749
|
+
`POST /v1/journey/configuration/search`
|
|
750
|
+
|
|
751
|
+
```ts
|
|
752
|
+
const { data } = await client.searchJourneys(
|
|
753
|
+
null,
|
|
754
|
+
{
|
|
755
|
+
q: '_tags:*Flex*',
|
|
756
|
+
from: 0,
|
|
757
|
+
size: 25,
|
|
758
|
+
sort: '_created_at:desc'
|
|
759
|
+
},
|
|
760
|
+
)
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
<details>
|
|
764
|
+
<summary>Response</summary>
|
|
765
|
+
|
|
766
|
+
```json
|
|
767
|
+
{
|
|
768
|
+
"hits": 1,
|
|
769
|
+
"results": [
|
|
770
|
+
{
|
|
771
|
+
"_id": "e0f8f8f8-f8f8-f8f8-f8f8-f8f8f8f8f8f8",
|
|
772
|
+
"_schema": "journey",
|
|
773
|
+
"_title": "Journey Entity Title",
|
|
774
|
+
"_org": "739224",
|
|
775
|
+
"_created_at": "2020-01-01T00:00:00.000Z",
|
|
776
|
+
"_updated_at": "2020-01-01T00:00:00.000Z",
|
|
777
|
+
"_tags": ["Flex"],
|
|
778
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
779
|
+
"journey_name": "Journey Name",
|
|
780
|
+
"journey_id": "de7df470-253e-11ed-9174-116b8a718c0a",
|
|
781
|
+
"journey_type": "Sales template",
|
|
782
|
+
"design": "Design EPILOT",
|
|
783
|
+
"created_by": [
|
|
784
|
+
{
|
|
785
|
+
"id": "12345"
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"journey_version": "Flex"
|
|
789
|
+
}
|
|
790
|
+
]
|
|
791
|
+
}
|
|
792
|
+
```
|
|
793
|
+
|
|
794
|
+
</details>
|
|
795
|
+
|
|
796
|
+
---
|
|
797
|
+
|
|
798
|
+
### `generateDocument`
|
|
799
|
+
|
|
800
|
+
Builds document generated from a template with journey values."
|
|
801
|
+
|
|
802
|
+
`POST /v1/journey/document:generate`
|
|
803
|
+
|
|
804
|
+
```ts
|
|
805
|
+
const { data } = await client.generateDocument(
|
|
806
|
+
null,
|
|
807
|
+
{
|
|
808
|
+
file_id: '1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p',
|
|
809
|
+
context_data: {
|
|
810
|
+
additionalProperties: 'string'
|
|
811
|
+
},
|
|
812
|
+
language: 'de'
|
|
813
|
+
},
|
|
814
|
+
)
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
<details>
|
|
818
|
+
<summary>Response</summary>
|
|
819
|
+
|
|
820
|
+
```json
|
|
821
|
+
{
|
|
822
|
+
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
823
|
+
"job_status": "STARTED",
|
|
824
|
+
"message": "string",
|
|
825
|
+
"pdf_output": {
|
|
826
|
+
"preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf",
|
|
827
|
+
"output_document": {
|
|
828
|
+
"s3ref": {
|
|
829
|
+
"bucket": "document-api-preview-prod",
|
|
830
|
+
"key": "preview/my-template.pdf"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"docx_output": {
|
|
835
|
+
"preview_url": "https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx",
|
|
836
|
+
"output_document": {
|
|
837
|
+
"s3ref": {
|
|
838
|
+
"bucket": "document-api-preview-prod",
|
|
839
|
+
"key": "preview/my-template.docx"
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"variable_payload": {
|
|
844
|
+
"additionalProperties": "string"
|
|
845
|
+
},
|
|
846
|
+
"template_settings": {
|
|
847
|
+
"custom_margins": {
|
|
848
|
+
"top": 2.54,
|
|
849
|
+
"bottom": 2.54
|
|
850
|
+
},
|
|
851
|
+
"suggested_margins": {
|
|
852
|
+
"top": 2.54,
|
|
853
|
+
"bottom": 2.54
|
|
854
|
+
},
|
|
855
|
+
"display_margin_guidelines": true,
|
|
856
|
+
"enable_data_table_margin_autofix": false,
|
|
857
|
+
"template_with_datatable": false,
|
|
858
|
+
"enabled_template_settings_persistence": false,
|
|
859
|
+
"misconfigured_margins": false,
|
|
860
|
+
"file_entity_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
</details>
|
|
866
|
+
|
|
867
|
+
---
|
|
868
|
+
|
|
869
|
+
### `createJourneyV2`
|
|
870
|
+
|
|
871
|
+
Create a Journey
|
|
872
|
+
|
|
873
|
+
`POST /v2/journey/configuration`
|
|
874
|
+
|
|
875
|
+
```ts
|
|
876
|
+
const { data } = await client.createJourneyV2(
|
|
877
|
+
{
|
|
878
|
+
skipAutomation: 'example',
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
journeyId: 'string',
|
|
882
|
+
brandId: 'string',
|
|
883
|
+
name: 'string',
|
|
884
|
+
steps: [
|
|
885
|
+
{
|
|
886
|
+
showStepName: true,
|
|
887
|
+
title: 'string',
|
|
888
|
+
subTitle: 'string',
|
|
889
|
+
showStepSubtitle: true,
|
|
890
|
+
showStepper: true,
|
|
891
|
+
showStepperLabels: true,
|
|
892
|
+
hideNextButton: true,
|
|
893
|
+
name: 'string',
|
|
894
|
+
stepId: 'string',
|
|
895
|
+
schema: {},
|
|
896
|
+
uischema: {},
|
|
897
|
+
maxWidth: 'small'
|
|
898
|
+
}
|
|
899
|
+
],
|
|
900
|
+
design: {
|
|
901
|
+
logoUrl: 'string',
|
|
902
|
+
theme: {},
|
|
903
|
+
designTokens: {}
|
|
904
|
+
},
|
|
905
|
+
rules: [
|
|
906
|
+
{
|
|
907
|
+
type: 'inject',
|
|
908
|
+
sourceType: 'journey',
|
|
909
|
+
source: 'string',
|
|
910
|
+
target: 'string'
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
logics: [
|
|
914
|
+
{
|
|
915
|
+
autoGeneratedId: 'string',
|
|
916
|
+
conditions: ['string'],
|
|
917
|
+
actions: ['string']
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
logicsV4: {},
|
|
921
|
+
contextSchema: [
|
|
922
|
+
{
|
|
923
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
924
|
+
type: 'string',
|
|
925
|
+
paramKey: 'string',
|
|
926
|
+
isRequired: true,
|
|
927
|
+
shouldLoadEntity: true
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
journey_type: 'Sales template (Premium)',
|
|
931
|
+
settings: {
|
|
932
|
+
embedOptions: {
|
|
933
|
+
mode: 'full-screen',
|
|
934
|
+
lang: 'de',
|
|
935
|
+
width: 'string',
|
|
936
|
+
topBar: true,
|
|
937
|
+
scrollToTop: true,
|
|
938
|
+
button: {
|
|
939
|
+
text: 'string',
|
|
940
|
+
align: 'left'
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
safeModeAutomation: true,
|
|
944
|
+
designId: 'string',
|
|
945
|
+
entityId: 'string',
|
|
946
|
+
mappingsAutomationId: 'string',
|
|
947
|
+
templateId: 'string',
|
|
948
|
+
targetedCustomer: 'string',
|
|
949
|
+
description: 'string',
|
|
950
|
+
publicToken: 'string',
|
|
951
|
+
runtimeEntities: ['ORDER'],
|
|
952
|
+
filePurposes: ['string'],
|
|
953
|
+
entityTags: ['string'],
|
|
954
|
+
addressSuggestionsFileUrl: 'string',
|
|
955
|
+
addressSuggestionsFileId: 'string',
|
|
956
|
+
addressSuggestionsCountryCode: 'string',
|
|
957
|
+
addressSuggestionsEnableAutoComplete: true,
|
|
958
|
+
addressSuggestionsSource: ['string'],
|
|
959
|
+
addressSuggestionsEnableFreeText: true,
|
|
960
|
+
useNewDesign: true,
|
|
961
|
+
thirdPartyCookies: true,
|
|
962
|
+
accessMode: 'PUBLIC',
|
|
963
|
+
enableDarkMode: true
|
|
964
|
+
},
|
|
965
|
+
validationRules: {
|
|
966
|
+
block1: 'rule123',
|
|
967
|
+
block2: {
|
|
968
|
+
field1: 'rule456',
|
|
969
|
+
field2: 'rule789'
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
973
|
+
},
|
|
974
|
+
)
|
|
975
|
+
```
|
|
976
|
+
|
|
977
|
+
<details>
|
|
978
|
+
<summary>Response</summary>
|
|
979
|
+
|
|
980
|
+
```json
|
|
981
|
+
{
|
|
982
|
+
"journeyId": "string",
|
|
983
|
+
"brandId": "string",
|
|
984
|
+
"name": "string",
|
|
985
|
+
"steps": [
|
|
986
|
+
{
|
|
987
|
+
"showStepName": true,
|
|
988
|
+
"title": "string",
|
|
989
|
+
"subTitle": "string",
|
|
990
|
+
"showStepSubtitle": true,
|
|
991
|
+
"showStepper": true,
|
|
992
|
+
"showStepperLabels": true,
|
|
993
|
+
"hideNextButton": true,
|
|
994
|
+
"name": "string",
|
|
995
|
+
"stepId": "string",
|
|
996
|
+
"schema": {},
|
|
997
|
+
"uischema": {},
|
|
998
|
+
"maxWidth": "small"
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
"design": {
|
|
1002
|
+
"logoUrl": "string",
|
|
1003
|
+
"theme": {},
|
|
1004
|
+
"designTokens": {}
|
|
1005
|
+
},
|
|
1006
|
+
"rules": [
|
|
1007
|
+
{
|
|
1008
|
+
"type": "inject",
|
|
1009
|
+
"sourceType": "journey",
|
|
1010
|
+
"source": "string",
|
|
1011
|
+
"target": "string"
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
"logics": [
|
|
1015
|
+
{
|
|
1016
|
+
"autoGeneratedId": "string",
|
|
1017
|
+
"conditions": ["string"],
|
|
1018
|
+
"actions": ["string"]
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
"logicsV4": {},
|
|
1022
|
+
"contextSchema": [
|
|
1023
|
+
{
|
|
1024
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1025
|
+
"type": "string",
|
|
1026
|
+
"paramKey": "string",
|
|
1027
|
+
"isRequired": true,
|
|
1028
|
+
"shouldLoadEntity": true
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
"journey_type": "Sales template (Premium)",
|
|
1032
|
+
"settings": {
|
|
1033
|
+
"embedOptions": {
|
|
1034
|
+
"mode": "full-screen",
|
|
1035
|
+
"lang": "de",
|
|
1036
|
+
"width": "string",
|
|
1037
|
+
"topBar": true,
|
|
1038
|
+
"scrollToTop": true,
|
|
1039
|
+
"button": {
|
|
1040
|
+
"text": "string",
|
|
1041
|
+
"align": "left"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"safeModeAutomation": true,
|
|
1045
|
+
"designId": "string",
|
|
1046
|
+
"entityId": "string",
|
|
1047
|
+
"mappingsAutomationId": "string",
|
|
1048
|
+
"templateId": "string",
|
|
1049
|
+
"targetedCustomer": "string",
|
|
1050
|
+
"description": "string",
|
|
1051
|
+
"publicToken": "string",
|
|
1052
|
+
"runtimeEntities": ["ORDER"],
|
|
1053
|
+
"filePurposes": ["string"],
|
|
1054
|
+
"entityTags": ["string"],
|
|
1055
|
+
"addressSuggestionsFileUrl": "string",
|
|
1056
|
+
"addressSuggestionsFileId": "string",
|
|
1057
|
+
"addressSuggestionsCountryCode": "string",
|
|
1058
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
1059
|
+
"addressSuggestionsSource": ["string"],
|
|
1060
|
+
"addressSuggestionsEnableFreeText": true,
|
|
1061
|
+
"useNewDesign": true,
|
|
1062
|
+
"thirdPartyCookies": true,
|
|
1063
|
+
"accessMode": "PUBLIC",
|
|
1064
|
+
"enableDarkMode": true
|
|
1065
|
+
},
|
|
1066
|
+
"validationRules": {
|
|
1067
|
+
"block1": "rule123",
|
|
1068
|
+
"block2": {
|
|
1069
|
+
"field1": "rule456",
|
|
1070
|
+
"field2": "rule789"
|
|
1071
|
+
}
|
|
1072
|
+
},
|
|
1073
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1074
|
+
}
|
|
1075
|
+
```
|
|
1076
|
+
|
|
1077
|
+
</details>
|
|
1078
|
+
|
|
1079
|
+
---
|
|
1080
|
+
|
|
1081
|
+
### `updateJourneyV2`
|
|
1082
|
+
|
|
1083
|
+
Update a Journey
|
|
1084
|
+
|
|
1085
|
+
`PUT /v2/journey/configuration`
|
|
1086
|
+
|
|
1087
|
+
```ts
|
|
1088
|
+
const { data } = await client.updateJourneyV2(
|
|
1089
|
+
null,
|
|
1090
|
+
{
|
|
1091
|
+
journeyId: 'string',
|
|
1092
|
+
brandId: 'string',
|
|
1093
|
+
name: 'string',
|
|
1094
|
+
steps: [
|
|
1095
|
+
{
|
|
1096
|
+
showStepName: true,
|
|
1097
|
+
title: 'string',
|
|
1098
|
+
subTitle: 'string',
|
|
1099
|
+
showStepSubtitle: true,
|
|
1100
|
+
showStepper: true,
|
|
1101
|
+
showStepperLabels: true,
|
|
1102
|
+
hideNextButton: true,
|
|
1103
|
+
name: 'string',
|
|
1104
|
+
stepId: 'string',
|
|
1105
|
+
schema: {},
|
|
1106
|
+
uischema: {},
|
|
1107
|
+
maxWidth: 'small'
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
design: {
|
|
1111
|
+
logoUrl: 'string',
|
|
1112
|
+
theme: {},
|
|
1113
|
+
designTokens: {}
|
|
1114
|
+
},
|
|
1115
|
+
rules: [
|
|
1116
|
+
{
|
|
1117
|
+
type: 'inject',
|
|
1118
|
+
sourceType: 'journey',
|
|
1119
|
+
source: 'string',
|
|
1120
|
+
target: 'string'
|
|
1121
|
+
}
|
|
1122
|
+
],
|
|
1123
|
+
logics: [
|
|
1124
|
+
{
|
|
1125
|
+
autoGeneratedId: 'string',
|
|
1126
|
+
conditions: ['string'],
|
|
1127
|
+
actions: ['string']
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
logicsV4: {},
|
|
1131
|
+
contextSchema: [
|
|
1132
|
+
{
|
|
1133
|
+
id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
|
|
1134
|
+
type: 'string',
|
|
1135
|
+
paramKey: 'string',
|
|
1136
|
+
isRequired: true,
|
|
1137
|
+
shouldLoadEntity: true
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
journey_type: 'Sales template (Premium)',
|
|
1141
|
+
settings: {
|
|
1142
|
+
embedOptions: {
|
|
1143
|
+
mode: 'full-screen',
|
|
1144
|
+
lang: 'de',
|
|
1145
|
+
width: 'string',
|
|
1146
|
+
topBar: true,
|
|
1147
|
+
scrollToTop: true,
|
|
1148
|
+
button: {
|
|
1149
|
+
text: 'string',
|
|
1150
|
+
align: 'left'
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
safeModeAutomation: true,
|
|
1154
|
+
designId: 'string',
|
|
1155
|
+
entityId: 'string',
|
|
1156
|
+
mappingsAutomationId: 'string',
|
|
1157
|
+
templateId: 'string',
|
|
1158
|
+
targetedCustomer: 'string',
|
|
1159
|
+
description: 'string',
|
|
1160
|
+
publicToken: 'string',
|
|
1161
|
+
runtimeEntities: ['ORDER'],
|
|
1162
|
+
filePurposes: ['string'],
|
|
1163
|
+
entityTags: ['string'],
|
|
1164
|
+
addressSuggestionsFileUrl: 'string',
|
|
1165
|
+
addressSuggestionsFileId: 'string',
|
|
1166
|
+
addressSuggestionsCountryCode: 'string',
|
|
1167
|
+
addressSuggestionsEnableAutoComplete: true,
|
|
1168
|
+
addressSuggestionsSource: ['string'],
|
|
1169
|
+
addressSuggestionsEnableFreeText: true,
|
|
1170
|
+
useNewDesign: true,
|
|
1171
|
+
thirdPartyCookies: true,
|
|
1172
|
+
accessMode: 'PUBLIC',
|
|
1173
|
+
enableDarkMode: true
|
|
1174
|
+
},
|
|
1175
|
+
validationRules: {
|
|
1176
|
+
block1: 'rule123',
|
|
1177
|
+
block2: {
|
|
1178
|
+
field1: 'rule456',
|
|
1179
|
+
field2: 'rule789'
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
_manifest: ['123e4567-e89b-12d3-a456-426614174000']
|
|
1183
|
+
},
|
|
1184
|
+
)
|
|
1185
|
+
```
|
|
1186
|
+
|
|
1187
|
+
<details>
|
|
1188
|
+
<summary>Response</summary>
|
|
1189
|
+
|
|
1190
|
+
```json
|
|
1191
|
+
{
|
|
1192
|
+
"journeyId": "string",
|
|
1193
|
+
"brandId": "string",
|
|
1194
|
+
"name": "string",
|
|
1195
|
+
"steps": [
|
|
1196
|
+
{
|
|
1197
|
+
"showStepName": true,
|
|
1198
|
+
"title": "string",
|
|
1199
|
+
"subTitle": "string",
|
|
1200
|
+
"showStepSubtitle": true,
|
|
1201
|
+
"showStepper": true,
|
|
1202
|
+
"showStepperLabels": true,
|
|
1203
|
+
"hideNextButton": true,
|
|
1204
|
+
"name": "string",
|
|
1205
|
+
"stepId": "string",
|
|
1206
|
+
"schema": {},
|
|
1207
|
+
"uischema": {},
|
|
1208
|
+
"maxWidth": "small"
|
|
1209
|
+
}
|
|
1210
|
+
],
|
|
1211
|
+
"design": {
|
|
1212
|
+
"logoUrl": "string",
|
|
1213
|
+
"theme": {},
|
|
1214
|
+
"designTokens": {}
|
|
1215
|
+
},
|
|
1216
|
+
"rules": [
|
|
1217
|
+
{
|
|
1218
|
+
"type": "inject",
|
|
1219
|
+
"sourceType": "journey",
|
|
1220
|
+
"source": "string",
|
|
1221
|
+
"target": "string"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
"logics": [
|
|
1225
|
+
{
|
|
1226
|
+
"autoGeneratedId": "string",
|
|
1227
|
+
"conditions": ["string"],
|
|
1228
|
+
"actions": ["string"]
|
|
1229
|
+
}
|
|
1230
|
+
],
|
|
1231
|
+
"logicsV4": {},
|
|
1232
|
+
"contextSchema": [
|
|
1233
|
+
{
|
|
1234
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"paramKey": "string",
|
|
1237
|
+
"isRequired": true,
|
|
1238
|
+
"shouldLoadEntity": true
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
"journey_type": "Sales template (Premium)",
|
|
1242
|
+
"settings": {
|
|
1243
|
+
"embedOptions": {
|
|
1244
|
+
"mode": "full-screen",
|
|
1245
|
+
"lang": "de",
|
|
1246
|
+
"width": "string",
|
|
1247
|
+
"topBar": true,
|
|
1248
|
+
"scrollToTop": true,
|
|
1249
|
+
"button": {
|
|
1250
|
+
"text": "string",
|
|
1251
|
+
"align": "left"
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1254
|
+
"safeModeAutomation": true,
|
|
1255
|
+
"designId": "string",
|
|
1256
|
+
"entityId": "string",
|
|
1257
|
+
"mappingsAutomationId": "string",
|
|
1258
|
+
"templateId": "string",
|
|
1259
|
+
"targetedCustomer": "string",
|
|
1260
|
+
"description": "string",
|
|
1261
|
+
"publicToken": "string",
|
|
1262
|
+
"runtimeEntities": ["ORDER"],
|
|
1263
|
+
"filePurposes": ["string"],
|
|
1264
|
+
"entityTags": ["string"],
|
|
1265
|
+
"addressSuggestionsFileUrl": "string",
|
|
1266
|
+
"addressSuggestionsFileId": "string",
|
|
1267
|
+
"addressSuggestionsCountryCode": "string",
|
|
1268
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
1269
|
+
"addressSuggestionsSource": ["string"],
|
|
1270
|
+
"addressSuggestionsEnableFreeText": true,
|
|
1271
|
+
"useNewDesign": true,
|
|
1272
|
+
"thirdPartyCookies": true,
|
|
1273
|
+
"accessMode": "PUBLIC",
|
|
1274
|
+
"enableDarkMode": true
|
|
1275
|
+
},
|
|
1276
|
+
"validationRules": {
|
|
1277
|
+
"block1": "rule123",
|
|
1278
|
+
"block2": {
|
|
1279
|
+
"field1": "rule456",
|
|
1280
|
+
"field2": "rule789"
|
|
1281
|
+
}
|
|
1282
|
+
},
|
|
1283
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1284
|
+
}
|
|
1285
|
+
```
|
|
1286
|
+
|
|
1287
|
+
</details>
|
|
1288
|
+
|
|
1289
|
+
---
|
|
1290
|
+
|
|
1291
|
+
### `patchUpdateJourneyV2`
|
|
1292
|
+
|
|
1293
|
+
Update a Journey (partially / patch). Support for nested properties updates (e.g. "property[0].name").
|
|
1294
|
+
|
|
1295
|
+
`PATCH /v2/journey/configuration`
|
|
1296
|
+
|
|
1297
|
+
```ts
|
|
1298
|
+
const { data } = await client.patchUpdateJourneyV2(
|
|
1299
|
+
null,
|
|
1300
|
+
{
|
|
1301
|
+
journeyId: '509cdffe-424f-457a-95c2-9708c304ce77',
|
|
1302
|
+
__lastModifiedAt: 'string'
|
|
1303
|
+
},
|
|
1304
|
+
)
|
|
1305
|
+
```
|
|
1306
|
+
|
|
1307
|
+
<details>
|
|
1308
|
+
<summary>Response</summary>
|
|
1309
|
+
|
|
1310
|
+
```json
|
|
1311
|
+
{
|
|
1312
|
+
"journeyId": "string",
|
|
1313
|
+
"brandId": "string",
|
|
1314
|
+
"name": "string",
|
|
1315
|
+
"steps": [
|
|
1316
|
+
{
|
|
1317
|
+
"showStepName": true,
|
|
1318
|
+
"title": "string",
|
|
1319
|
+
"subTitle": "string",
|
|
1320
|
+
"showStepSubtitle": true,
|
|
1321
|
+
"showStepper": true,
|
|
1322
|
+
"showStepperLabels": true,
|
|
1323
|
+
"hideNextButton": true,
|
|
1324
|
+
"name": "string",
|
|
1325
|
+
"stepId": "string",
|
|
1326
|
+
"schema": {},
|
|
1327
|
+
"uischema": {},
|
|
1328
|
+
"maxWidth": "small"
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
"design": {
|
|
1332
|
+
"logoUrl": "string",
|
|
1333
|
+
"theme": {},
|
|
1334
|
+
"designTokens": {}
|
|
1335
|
+
},
|
|
1336
|
+
"rules": [
|
|
1337
|
+
{
|
|
1338
|
+
"type": "inject",
|
|
1339
|
+
"sourceType": "journey",
|
|
1340
|
+
"source": "string",
|
|
1341
|
+
"target": "string"
|
|
1342
|
+
}
|
|
1343
|
+
],
|
|
1344
|
+
"logics": [
|
|
1345
|
+
{
|
|
1346
|
+
"autoGeneratedId": "string",
|
|
1347
|
+
"conditions": ["string"],
|
|
1348
|
+
"actions": ["string"]
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
"logicsV4": {},
|
|
1352
|
+
"contextSchema": [
|
|
1353
|
+
{
|
|
1354
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1355
|
+
"type": "string",
|
|
1356
|
+
"paramKey": "string",
|
|
1357
|
+
"isRequired": true,
|
|
1358
|
+
"shouldLoadEntity": true
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"journey_type": "Sales template (Premium)",
|
|
1362
|
+
"settings": {
|
|
1363
|
+
"embedOptions": {
|
|
1364
|
+
"mode": "full-screen",
|
|
1365
|
+
"lang": "de",
|
|
1366
|
+
"width": "string",
|
|
1367
|
+
"topBar": true,
|
|
1368
|
+
"scrollToTop": true,
|
|
1369
|
+
"button": {
|
|
1370
|
+
"text": "string",
|
|
1371
|
+
"align": "left"
|
|
1372
|
+
}
|
|
1373
|
+
},
|
|
1374
|
+
"safeModeAutomation": true,
|
|
1375
|
+
"designId": "string",
|
|
1376
|
+
"entityId": "string",
|
|
1377
|
+
"mappingsAutomationId": "string",
|
|
1378
|
+
"templateId": "string",
|
|
1379
|
+
"targetedCustomer": "string",
|
|
1380
|
+
"description": "string",
|
|
1381
|
+
"publicToken": "string",
|
|
1382
|
+
"runtimeEntities": ["ORDER"],
|
|
1383
|
+
"filePurposes": ["string"],
|
|
1384
|
+
"entityTags": ["string"],
|
|
1385
|
+
"addressSuggestionsFileUrl": "string",
|
|
1386
|
+
"addressSuggestionsFileId": "string",
|
|
1387
|
+
"addressSuggestionsCountryCode": "string",
|
|
1388
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
1389
|
+
"addressSuggestionsSource": ["string"],
|
|
1390
|
+
"addressSuggestionsEnableFreeText": true,
|
|
1391
|
+
"useNewDesign": true,
|
|
1392
|
+
"thirdPartyCookies": true,
|
|
1393
|
+
"accessMode": "PUBLIC",
|
|
1394
|
+
"enableDarkMode": true
|
|
1395
|
+
},
|
|
1396
|
+
"validationRules": {
|
|
1397
|
+
"block1": "rule123",
|
|
1398
|
+
"block2": {
|
|
1399
|
+
"field1": "rule456",
|
|
1400
|
+
"field2": "rule789"
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1404
|
+
}
|
|
1405
|
+
```
|
|
1406
|
+
|
|
1407
|
+
</details>
|
|
1408
|
+
|
|
1409
|
+
---
|
|
1410
|
+
|
|
1411
|
+
### `getJourneyV2`
|
|
1412
|
+
|
|
1413
|
+
Get journey by id
|
|
1414
|
+
|
|
1415
|
+
`GET /v2/journey/configuration/{id}`
|
|
1416
|
+
|
|
1417
|
+
```ts
|
|
1418
|
+
const { data } = await client.getJourneyV2({
|
|
1419
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
1420
|
+
})
|
|
1421
|
+
```
|
|
1422
|
+
|
|
1423
|
+
<details>
|
|
1424
|
+
<summary>Response</summary>
|
|
1425
|
+
|
|
1426
|
+
```json
|
|
1427
|
+
{
|
|
1428
|
+
"journeyId": "string",
|
|
1429
|
+
"brandId": "string",
|
|
1430
|
+
"name": "string",
|
|
1431
|
+
"steps": [
|
|
1432
|
+
{
|
|
1433
|
+
"showStepName": true,
|
|
1434
|
+
"title": "string",
|
|
1435
|
+
"subTitle": "string",
|
|
1436
|
+
"showStepSubtitle": true,
|
|
1437
|
+
"showStepper": true,
|
|
1438
|
+
"showStepperLabels": true,
|
|
1439
|
+
"hideNextButton": true,
|
|
1440
|
+
"name": "string",
|
|
1441
|
+
"stepId": "string",
|
|
1442
|
+
"schema": {},
|
|
1443
|
+
"uischema": {},
|
|
1444
|
+
"maxWidth": "small"
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
"design": {
|
|
1448
|
+
"logoUrl": "string",
|
|
1449
|
+
"theme": {},
|
|
1450
|
+
"designTokens": {}
|
|
1451
|
+
},
|
|
1452
|
+
"rules": [
|
|
1453
|
+
{
|
|
1454
|
+
"type": "inject",
|
|
1455
|
+
"sourceType": "journey",
|
|
1456
|
+
"source": "string",
|
|
1457
|
+
"target": "string"
|
|
1458
|
+
}
|
|
1459
|
+
],
|
|
1460
|
+
"logics": [
|
|
1461
|
+
{
|
|
1462
|
+
"autoGeneratedId": "string",
|
|
1463
|
+
"conditions": ["string"],
|
|
1464
|
+
"actions": ["string"]
|
|
1465
|
+
}
|
|
1466
|
+
],
|
|
1467
|
+
"logicsV4": {},
|
|
1468
|
+
"contextSchema": [
|
|
1469
|
+
{
|
|
1470
|
+
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
1471
|
+
"type": "string",
|
|
1472
|
+
"paramKey": "string",
|
|
1473
|
+
"isRequired": true,
|
|
1474
|
+
"shouldLoadEntity": true
|
|
1475
|
+
}
|
|
1476
|
+
],
|
|
1477
|
+
"journey_type": "Sales template (Premium)",
|
|
1478
|
+
"settings": {
|
|
1479
|
+
"embedOptions": {
|
|
1480
|
+
"mode": "full-screen",
|
|
1481
|
+
"lang": "de",
|
|
1482
|
+
"width": "string",
|
|
1483
|
+
"topBar": true,
|
|
1484
|
+
"scrollToTop": true,
|
|
1485
|
+
"button": {
|
|
1486
|
+
"text": "string",
|
|
1487
|
+
"align": "left"
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
"safeModeAutomation": true,
|
|
1491
|
+
"designId": "string",
|
|
1492
|
+
"entityId": "string",
|
|
1493
|
+
"mappingsAutomationId": "string",
|
|
1494
|
+
"templateId": "string",
|
|
1495
|
+
"targetedCustomer": "string",
|
|
1496
|
+
"description": "string",
|
|
1497
|
+
"publicToken": "string",
|
|
1498
|
+
"runtimeEntities": ["ORDER"],
|
|
1499
|
+
"filePurposes": ["string"],
|
|
1500
|
+
"entityTags": ["string"],
|
|
1501
|
+
"addressSuggestionsFileUrl": "string",
|
|
1502
|
+
"addressSuggestionsFileId": "string",
|
|
1503
|
+
"addressSuggestionsCountryCode": "string",
|
|
1504
|
+
"addressSuggestionsEnableAutoComplete": true,
|
|
1505
|
+
"addressSuggestionsSource": ["string"],
|
|
1506
|
+
"addressSuggestionsEnableFreeText": true,
|
|
1507
|
+
"useNewDesign": true,
|
|
1508
|
+
"thirdPartyCookies": true,
|
|
1509
|
+
"accessMode": "PUBLIC",
|
|
1510
|
+
"enableDarkMode": true
|
|
1511
|
+
},
|
|
1512
|
+
"validationRules": {
|
|
1513
|
+
"block1": "rule123",
|
|
1514
|
+
"block2": {
|
|
1515
|
+
"field1": "rule456",
|
|
1516
|
+
"field2": "rule789"
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
"_manifest": ["123e4567-e89b-12d3-a456-426614174000"]
|
|
1520
|
+
}
|
|
1521
|
+
```
|
|
1522
|
+
|
|
1523
|
+
</details>
|
|
1524
|
+
|
|
1525
|
+
---
|
|
1526
|
+
|
|
1527
|
+
### `removeJourneyV2`
|
|
1528
|
+
|
|
1529
|
+
Remove journey by id
|
|
1530
|
+
|
|
1531
|
+
`DELETE /v2/journey/configuration/{id}`
|
|
1532
|
+
|
|
1533
|
+
```ts
|
|
1534
|
+
const { data } = await client.removeJourneyV2({
|
|
1535
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
1536
|
+
})
|
|
1537
|
+
```
|
|
1538
|
+
|
|
1539
|
+
---
|
|
1540
|
+
|
|
1541
|
+
### `getSettingsForJourney`
|
|
1542
|
+
|
|
1543
|
+
Get settings related to the journey using journey ID.
|
|
1544
|
+
|
|
1545
|
+
`GET /v1/journey/{id}/settings`
|
|
1546
|
+
|
|
1547
|
+
```ts
|
|
1548
|
+
const { data } = await client.getSettingsForJourney({
|
|
1549
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
1550
|
+
})
|
|
1551
|
+
```
|
|
1552
|
+
|
|
1553
|
+
<details>
|
|
1554
|
+
<summary>Response</summary>
|
|
1555
|
+
|
|
1556
|
+
```json
|
|
1557
|
+
{
|
|
1558
|
+
"organizationId": "739224",
|
|
1559
|
+
"canary": true,
|
|
1560
|
+
"thirdPartyCookies": true
|
|
1561
|
+
}
|
|
1562
|
+
```
|
|
1563
|
+
|
|
1564
|
+
</details>
|
|
1565
|
+
|
|
1566
|
+
---
|
|
1567
|
+
|
|
1568
|
+
### `getButtonOptions`
|
|
1569
|
+
|
|
1570
|
+
Get button options from a csv file.
|
|
1571
|
+
|
|
1572
|
+
`GET /v1/journey/button-options`
|
|
1573
|
+
|
|
1574
|
+
```ts
|
|
1575
|
+
const { data } = await client.getButtonOptions({
|
|
1576
|
+
fileId: 'example',
|
|
1577
|
+
})
|
|
1578
|
+
```
|
|
1579
|
+
|
|
1580
|
+
<details>
|
|
1581
|
+
<summary>Response</summary>
|
|
1582
|
+
|
|
1583
|
+
```json
|
|
1584
|
+
[
|
|
1585
|
+
{
|
|
1586
|
+
"value": "Button Hidden Value",
|
|
1587
|
+
"label": "Button Label"
|
|
1588
|
+
}
|
|
1589
|
+
]
|
|
1590
|
+
```
|
|
1591
|
+
|
|
1592
|
+
</details>
|
|
1593
|
+
|
|
1594
|
+
---
|
|
1595
|
+
|
|
1596
|
+
## Schemas
|
|
1597
|
+
|
|
1598
|
+
### `GetJourneysResponse`
|
|
1599
|
+
|
|
1600
|
+
```ts
|
|
1601
|
+
type GetJourneysResponse = object
|
|
1602
|
+
```
|
|
1603
|
+
|
|
1604
|
+
### `JourneyResponse`
|
|
1605
|
+
|
|
1606
|
+
```ts
|
|
1607
|
+
type JourneyResponse = {
|
|
1608
|
+
createdJourney?: {
|
|
1609
|
+
journeyId?: string
|
|
1610
|
+
organizationId: string
|
|
1611
|
+
brandId?: string
|
|
1612
|
+
name: string
|
|
1613
|
+
steps: Array<{
|
|
1614
|
+
showStepName?: { ... }
|
|
1615
|
+
title?: { ... }
|
|
1616
|
+
subTitle?: { ... }
|
|
1617
|
+
showStepSubtitle?: { ... }
|
|
1618
|
+
showStepper?: { ... }
|
|
1619
|
+
showStepperLabels?: { ... }
|
|
1620
|
+
hideNextButton?: { ... }
|
|
1621
|
+
name: { ... }
|
|
1622
|
+
stepId?: { ... }
|
|
1623
|
+
schema: { ... }
|
|
1624
|
+
uischema: { ... }
|
|
1625
|
+
maxWidth?: { ... }
|
|
1626
|
+
}>
|
|
1627
|
+
design?: {
|
|
1628
|
+
logoUrl?: { ... }
|
|
1629
|
+
theme?: { ... }
|
|
1630
|
+
designTokens?: { ... }
|
|
1631
|
+
}
|
|
1632
|
+
rules?: Array<{
|
|
1633
|
+
type: { ... }
|
|
1634
|
+
sourceType: { ... }
|
|
1635
|
+
source: { ... }
|
|
1636
|
+
target: { ... }
|
|
1637
|
+
}>
|
|
1638
|
+
logics?: Array<{
|
|
1639
|
+
autoGeneratedId?: { ... }
|
|
1640
|
+
conditions: { ... }
|
|
1641
|
+
actions: { ... }
|
|
1642
|
+
}>
|
|
1643
|
+
logicsV4?: Record<string, {
|
|
1644
|
+
id?: { ... }
|
|
1645
|
+
protected?: { ... }
|
|
1646
|
+
action?: { ... }
|
|
1647
|
+
triggeredOn?: { ... }
|
|
1648
|
+
conditions?: { ... }
|
|
1649
|
+
settings?: { ... }
|
|
1650
|
+
}>
|
|
1651
|
+
contextSchema?: Array<{
|
|
1652
|
+
id?: { ... }
|
|
1653
|
+
type: { ... }
|
|
1654
|
+
paramKey: { ... }
|
|
1655
|
+
isRequired?: { ... }
|
|
1656
|
+
shouldLoadEntity?: { ... }
|
|
1657
|
+
}>
|
|
1658
|
+
journey_type?: string
|
|
1659
|
+
settings?: {
|
|
1660
|
+
embedOptions?: { ... }
|
|
1661
|
+
safeModeAutomation?: { ... }
|
|
1662
|
+
canary?: { ... }
|
|
1663
|
+
designId: { ... }
|
|
1664
|
+
templateId?: { ... }
|
|
1665
|
+
entityId?: { ... }
|
|
1666
|
+
mappingsAutomationId?: { ... }
|
|
1667
|
+
targetedCustomer?: { ... }
|
|
1668
|
+
description?: { ... }
|
|
1669
|
+
organizationSettings?: { ... }
|
|
1670
|
+
publicToken?: { ... }
|
|
1671
|
+
runtimeEntities?: { ... }
|
|
1672
|
+
filePurposes?: { ... }
|
|
1673
|
+
entityTags?: { ... }
|
|
1674
|
+
addressSuggestionsFileUrl?: { ... }
|
|
1675
|
+
addressSuggestionsFileId?: { ... }
|
|
1676
|
+
addressSuggestionsCountryCode?: { ... }
|
|
1677
|
+
addressSuggestionsEnableAutoComplete?: { ... }
|
|
1678
|
+
addressSuggestionsSource?: { ... }
|
|
1679
|
+
addressSuggestionsEnableFreeText?: { ... }
|
|
1680
|
+
useNewDesign?: { ... }
|
|
1681
|
+
useAustrianLabels?: { ... }
|
|
1682
|
+
enableDarkMode?: { ... }
|
|
1683
|
+
accessMode?: { ... }
|
|
1684
|
+
isPublished?: { ... }
|
|
1685
|
+
status?: { ... }
|
|
1686
|
+
isActive?: { ... }
|
|
1687
|
+
savingProgress?: { ... }
|
|
1688
|
+
thirdPartyCookies?: { ... }
|
|
1689
|
+
}
|
|
1690
|
+
validationRules?: Record<string, string | Record<string, string>>
|
|
1691
|
+
createdBy?: string
|
|
1692
|
+
updatedBy?: string
|
|
1693
|
+
__lastModifiedAt?: string
|
|
1694
|
+
createdAt: string
|
|
1695
|
+
lastModifiedAt: string
|
|
1696
|
+
deletedAt?: string
|
|
1697
|
+
version: number
|
|
1698
|
+
revisions: number
|
|
1699
|
+
featureFlags?: Record<string, unknown>
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
```
|
|
1703
|
+
|
|
1704
|
+
### `JourneyProductsResponse`
|
|
1705
|
+
|
|
1706
|
+
```ts
|
|
1707
|
+
type JourneyProductsResponse = Array<{
|
|
1708
|
+
type?: string
|
|
1709
|
+
_schema?: string
|
|
1710
|
+
_title?: string
|
|
1711
|
+
name?: string
|
|
1712
|
+
_id?: string
|
|
1713
|
+
_org?: string
|
|
1714
|
+
code?: string
|
|
1715
|
+
description?: string
|
|
1716
|
+
feature?: unknown[]
|
|
1717
|
+
product_images?: unknown[]
|
|
1718
|
+
legal_footnote?: string
|
|
1719
|
+
product_downloads?: unknown[]
|
|
1720
|
+
price?: object
|
|
1721
|
+
}>
|
|
1722
|
+
```
|
|
1723
|
+
|
|
1724
|
+
### `PatchUpdateJourneyRequest`
|
|
1725
|
+
|
|
1726
|
+
Patch request to update a journey (journey id is required) Support for nested properties (e.g. steps[0].uischema.elements[0].products) is supported.
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
```ts
|
|
1730
|
+
type PatchUpdateJourneyRequest = {
|
|
1731
|
+
journeyId: string // uuid
|
|
1732
|
+
__lastModifiedAt?: string
|
|
1733
|
+
}
|
|
1734
|
+
```
|
|
1735
|
+
|
|
1736
|
+
### `JourneyCreationRequest`
|
|
1737
|
+
|
|
1738
|
+
```ts
|
|
1739
|
+
type JourneyCreationRequest = {
|
|
1740
|
+
journeyId?: string
|
|
1741
|
+
organizationId: string
|
|
1742
|
+
brandId?: string
|
|
1743
|
+
name: string
|
|
1744
|
+
steps: Array<{
|
|
1745
|
+
showStepName?: boolean
|
|
1746
|
+
title?: string
|
|
1747
|
+
subTitle?: string
|
|
1748
|
+
showStepSubtitle?: boolean
|
|
1749
|
+
showStepper?: boolean
|
|
1750
|
+
showStepperLabels?: boolean
|
|
1751
|
+
hideNextButton?: boolean
|
|
1752
|
+
name: string
|
|
1753
|
+
stepId?: string
|
|
1754
|
+
schema: unknown
|
|
1755
|
+
uischema: unknown
|
|
1756
|
+
maxWidth?: "small" | "medium" | "large" | "extra large"
|
|
1757
|
+
}>
|
|
1758
|
+
design?: {
|
|
1759
|
+
logoUrl?: string
|
|
1760
|
+
theme?: Record<string, unknown>
|
|
1761
|
+
designTokens?: object
|
|
1762
|
+
}
|
|
1763
|
+
rules?: Array<{
|
|
1764
|
+
type: "inject" | "injectWithKey"
|
|
1765
|
+
sourceType: "journey" | "step" | "block"
|
|
1766
|
+
source: string
|
|
1767
|
+
target: string
|
|
1768
|
+
}>
|
|
1769
|
+
logics?: Array<{
|
|
1770
|
+
autoGeneratedId?: string
|
|
1771
|
+
conditions: string[]
|
|
1772
|
+
actions: string[]
|
|
1773
|
+
}>
|
|
1774
|
+
logicsV4?: Record<string, {
|
|
1775
|
+
id?: string // uuid
|
|
1776
|
+
protected?: boolean
|
|
1777
|
+
action?: string
|
|
1778
|
+
triggeredOn?: string
|
|
1779
|
+
conditions?: Array<Array<{
|
|
1780
|
+
operator?: { ... }
|
|
1781
|
+
functionName?: { ... }
|
|
1782
|
+
fact?: { ... }
|
|
1783
|
+
value?: { ... }
|
|
1784
|
+
args?: { ... }
|
|
1785
|
+
}>>
|
|
1786
|
+
settings?: object
|
|
1787
|
+
}>
|
|
1788
|
+
contextSchema?: Array<{
|
|
1789
|
+
id?: string // uuid
|
|
1790
|
+
type: string
|
|
1791
|
+
paramKey: string
|
|
1792
|
+
isRequired?: boolean
|
|
1793
|
+
shouldLoadEntity?: boolean
|
|
1794
|
+
}>
|
|
1795
|
+
journey_type?: string
|
|
1796
|
+
settings?: {
|
|
1797
|
+
embedOptions?: {
|
|
1798
|
+
mode?: { ... }
|
|
1799
|
+
lang?: { ... }
|
|
1800
|
+
width?: { ... }
|
|
1801
|
+
topBar?: { ... }
|
|
1802
|
+
scrollToTop?: { ... }
|
|
1803
|
+
button?: { ... }
|
|
1804
|
+
}
|
|
1805
|
+
safeModeAutomation?: boolean
|
|
1806
|
+
canary?: boolean
|
|
1807
|
+
designId: string
|
|
1808
|
+
templateId?: string
|
|
1809
|
+
entityId?: string
|
|
1810
|
+
mappingsAutomationId?: string
|
|
1811
|
+
targetedCustomer?: string
|
|
1812
|
+
description?: string
|
|
1813
|
+
organizationSettings?: Record<string, boolean>
|
|
1814
|
+
publicToken?: string
|
|
1815
|
+
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
|
|
1816
|
+
filePurposes?: string[]
|
|
1817
|
+
entityTags?: string[]
|
|
1818
|
+
addressSuggestionsFileUrl?: string
|
|
1819
|
+
addressSuggestionsFileId?: string
|
|
1820
|
+
addressSuggestionsCountryCode?: string
|
|
1821
|
+
addressSuggestionsEnableAutoComplete?: boolean
|
|
1822
|
+
addressSuggestionsSource?: string[]
|
|
1823
|
+
addressSuggestionsEnableFreeText?: boolean
|
|
1824
|
+
useNewDesign?: boolean
|
|
1825
|
+
useAustrianLabels?: boolean
|
|
1826
|
+
enableDarkMode?: boolean
|
|
1827
|
+
accessMode?: "PUBLIC" | "PRIVATE"
|
|
1828
|
+
isPublished?: boolean
|
|
1829
|
+
status?: string
|
|
1830
|
+
isActive?: boolean
|
|
1831
|
+
savingProgress?: {
|
|
1832
|
+
savingMode?: { ... }
|
|
1833
|
+
supportedVersion?: { ... }
|
|
1834
|
+
}
|
|
1835
|
+
thirdPartyCookies?: boolean
|
|
1836
|
+
}
|
|
1837
|
+
validationRules?: Record<string, string | Record<string, string>>
|
|
1838
|
+
createdBy?: string
|
|
1839
|
+
// ...
|
|
1840
|
+
}
|
|
1841
|
+
```
|
|
1842
|
+
|
|
1843
|
+
### `JourneyCreationRequestV2`
|
|
1844
|
+
|
|
1845
|
+
```ts
|
|
1846
|
+
type JourneyCreationRequestV2 = {
|
|
1847
|
+
journeyId?: string
|
|
1848
|
+
brandId?: string
|
|
1849
|
+
name: string
|
|
1850
|
+
steps: Array<{
|
|
1851
|
+
showStepName?: boolean
|
|
1852
|
+
title?: string
|
|
1853
|
+
subTitle?: string
|
|
1854
|
+
showStepSubtitle?: boolean
|
|
1855
|
+
showStepper?: boolean
|
|
1856
|
+
showStepperLabels?: boolean
|
|
1857
|
+
hideNextButton?: boolean
|
|
1858
|
+
name: string
|
|
1859
|
+
stepId?: string
|
|
1860
|
+
schema: unknown
|
|
1861
|
+
uischema: unknown
|
|
1862
|
+
maxWidth?: "small" | "medium" | "large" | "extra large"
|
|
1863
|
+
}>
|
|
1864
|
+
design?: {
|
|
1865
|
+
logoUrl?: string
|
|
1866
|
+
theme?: Record<string, unknown>
|
|
1867
|
+
designTokens?: object
|
|
1868
|
+
}
|
|
1869
|
+
rules?: Array<{
|
|
1870
|
+
type: "inject" | "injectWithKey"
|
|
1871
|
+
sourceType: "journey" | "step" | "block"
|
|
1872
|
+
source: string
|
|
1873
|
+
target: string
|
|
1874
|
+
}>
|
|
1875
|
+
logics?: Array<{
|
|
1876
|
+
autoGeneratedId?: string
|
|
1877
|
+
conditions: string[]
|
|
1878
|
+
actions: string[]
|
|
1879
|
+
}>
|
|
1880
|
+
logicsV4?: Record<string, {
|
|
1881
|
+
id?: string // uuid
|
|
1882
|
+
protected?: boolean
|
|
1883
|
+
action?: string
|
|
1884
|
+
triggeredOn?: string
|
|
1885
|
+
conditions?: Array<Array<{
|
|
1886
|
+
operator?: { ... }
|
|
1887
|
+
functionName?: { ... }
|
|
1888
|
+
fact?: { ... }
|
|
1889
|
+
value?: { ... }
|
|
1890
|
+
args?: { ... }
|
|
1891
|
+
}>>
|
|
1892
|
+
settings?: object
|
|
1893
|
+
}>
|
|
1894
|
+
contextSchema?: Array<{
|
|
1895
|
+
id?: string // uuid
|
|
1896
|
+
type: string
|
|
1897
|
+
paramKey: string
|
|
1898
|
+
isRequired?: boolean
|
|
1899
|
+
shouldLoadEntity?: boolean
|
|
1900
|
+
}>
|
|
1901
|
+
journey_type?: string
|
|
1902
|
+
settings?: {
|
|
1903
|
+
embedOptions?: {
|
|
1904
|
+
mode?: { ... }
|
|
1905
|
+
lang?: { ... }
|
|
1906
|
+
width?: { ... }
|
|
1907
|
+
topBar?: { ... }
|
|
1908
|
+
scrollToTop?: { ... }
|
|
1909
|
+
button?: { ... }
|
|
1910
|
+
}
|
|
1911
|
+
safeModeAutomation?: boolean
|
|
1912
|
+
designId?: string
|
|
1913
|
+
entityId?: string
|
|
1914
|
+
mappingsAutomationId?: string
|
|
1915
|
+
templateId?: string
|
|
1916
|
+
targetedCustomer?: string
|
|
1917
|
+
description?: string
|
|
1918
|
+
publicToken?: string
|
|
1919
|
+
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
|
|
1920
|
+
filePurposes?: string[]
|
|
1921
|
+
entityTags?: string[]
|
|
1922
|
+
addressSuggestionsFileUrl?: string
|
|
1923
|
+
addressSuggestionsFileId?: string
|
|
1924
|
+
addressSuggestionsCountryCode?: string
|
|
1925
|
+
addressSuggestionsEnableAutoComplete?: boolean
|
|
1926
|
+
addressSuggestionsSource?: string[]
|
|
1927
|
+
addressSuggestionsEnableFreeText?: boolean
|
|
1928
|
+
useNewDesign?: boolean
|
|
1929
|
+
thirdPartyCookies?: boolean
|
|
1930
|
+
accessMode?: "PUBLIC" | "PRIVATE"
|
|
1931
|
+
enableDarkMode?: boolean
|
|
1932
|
+
}
|
|
1933
|
+
validationRules?: Record<string, string | Record<string, string>>
|
|
1934
|
+
_manifest?: string // uuid[]
|
|
1935
|
+
}
|
|
1936
|
+
```
|
|
1937
|
+
|
|
1938
|
+
### `SearchJourneysQueryRequest`
|
|
1939
|
+
|
|
1940
|
+
```ts
|
|
1941
|
+
type SearchJourneysQueryRequest = {
|
|
1942
|
+
q?: string
|
|
1943
|
+
from?: number
|
|
1944
|
+
size?: number
|
|
1945
|
+
sort?: string
|
|
1946
|
+
}
|
|
1947
|
+
```
|
|
1948
|
+
|
|
1949
|
+
### `SearchJourneysResponse`
|
|
1950
|
+
|
|
1951
|
+
```ts
|
|
1952
|
+
type SearchJourneysResponse = {
|
|
1953
|
+
hits?: number
|
|
1954
|
+
results?: Array<{
|
|
1955
|
+
_id?: string // uuid
|
|
1956
|
+
_schema?: string
|
|
1957
|
+
_title?: string
|
|
1958
|
+
_org?: string
|
|
1959
|
+
_created_at?: string // date-time
|
|
1960
|
+
_updated_at?: string // date-time
|
|
1961
|
+
_tags?: string[]
|
|
1962
|
+
_manifest?: string // uuid[]
|
|
1963
|
+
journey_name?: string
|
|
1964
|
+
journey_id?: string // uuid
|
|
1965
|
+
journey_type?: string
|
|
1966
|
+
design?: string
|
|
1967
|
+
created_by?: Array<{
|
|
1968
|
+
id?: { ... }
|
|
1969
|
+
}>
|
|
1970
|
+
journey_version?: "Flex"
|
|
1971
|
+
}>
|
|
1972
|
+
}
|
|
1973
|
+
```
|
|
1974
|
+
|
|
1975
|
+
### `Journey`
|
|
1976
|
+
|
|
1977
|
+
```ts
|
|
1978
|
+
type Journey = {
|
|
1979
|
+
journeyId?: string
|
|
1980
|
+
organizationId: string
|
|
1981
|
+
brandId?: string
|
|
1982
|
+
name: string
|
|
1983
|
+
steps: Array<{
|
|
1984
|
+
showStepName?: boolean
|
|
1985
|
+
title?: string
|
|
1986
|
+
subTitle?: string
|
|
1987
|
+
showStepSubtitle?: boolean
|
|
1988
|
+
showStepper?: boolean
|
|
1989
|
+
showStepperLabels?: boolean
|
|
1990
|
+
hideNextButton?: boolean
|
|
1991
|
+
name: string
|
|
1992
|
+
stepId?: string
|
|
1993
|
+
schema: unknown
|
|
1994
|
+
uischema: unknown
|
|
1995
|
+
maxWidth?: "small" | "medium" | "large" | "extra large"
|
|
1996
|
+
}>
|
|
1997
|
+
design?: {
|
|
1998
|
+
logoUrl?: string
|
|
1999
|
+
theme?: Record<string, unknown>
|
|
2000
|
+
designTokens?: object
|
|
2001
|
+
}
|
|
2002
|
+
rules?: Array<{
|
|
2003
|
+
type: "inject" | "injectWithKey"
|
|
2004
|
+
sourceType: "journey" | "step" | "block"
|
|
2005
|
+
source: string
|
|
2006
|
+
target: string
|
|
2007
|
+
}>
|
|
2008
|
+
logics?: Array<{
|
|
2009
|
+
autoGeneratedId?: string
|
|
2010
|
+
conditions: string[]
|
|
2011
|
+
actions: string[]
|
|
2012
|
+
}>
|
|
2013
|
+
logicsV4?: Record<string, {
|
|
2014
|
+
id?: string // uuid
|
|
2015
|
+
protected?: boolean
|
|
2016
|
+
action?: string
|
|
2017
|
+
triggeredOn?: string
|
|
2018
|
+
conditions?: Array<Array<{
|
|
2019
|
+
operator?: { ... }
|
|
2020
|
+
functionName?: { ... }
|
|
2021
|
+
fact?: { ... }
|
|
2022
|
+
value?: { ... }
|
|
2023
|
+
args?: { ... }
|
|
2024
|
+
}>>
|
|
2025
|
+
settings?: object
|
|
2026
|
+
}>
|
|
2027
|
+
contextSchema?: Array<{
|
|
2028
|
+
id?: string // uuid
|
|
2029
|
+
type: string
|
|
2030
|
+
paramKey: string
|
|
2031
|
+
isRequired?: boolean
|
|
2032
|
+
shouldLoadEntity?: boolean
|
|
2033
|
+
}>
|
|
2034
|
+
journey_type?: string
|
|
2035
|
+
settings?: {
|
|
2036
|
+
embedOptions?: {
|
|
2037
|
+
mode?: { ... }
|
|
2038
|
+
lang?: { ... }
|
|
2039
|
+
width?: { ... }
|
|
2040
|
+
topBar?: { ... }
|
|
2041
|
+
scrollToTop?: { ... }
|
|
2042
|
+
button?: { ... }
|
|
2043
|
+
}
|
|
2044
|
+
safeModeAutomation?: boolean
|
|
2045
|
+
canary?: boolean
|
|
2046
|
+
designId: string
|
|
2047
|
+
templateId?: string
|
|
2048
|
+
entityId?: string
|
|
2049
|
+
mappingsAutomationId?: string
|
|
2050
|
+
targetedCustomer?: string
|
|
2051
|
+
description?: string
|
|
2052
|
+
organizationSettings?: Record<string, boolean>
|
|
2053
|
+
publicToken?: string
|
|
2054
|
+
runtimeEntities?: "ORDER" | "OPPORTUNITY"[]
|
|
2055
|
+
filePurposes?: string[]
|
|
2056
|
+
entityTags?: string[]
|
|
2057
|
+
addressSuggestionsFileUrl?: string
|
|
2058
|
+
addressSuggestionsFileId?: string
|
|
2059
|
+
addressSuggestionsCountryCode?: string
|
|
2060
|
+
addressSuggestionsEnableAutoComplete?: boolean
|
|
2061
|
+
addressSuggestionsSource?: string[]
|
|
2062
|
+
addressSuggestionsEnableFreeText?: boolean
|
|
2063
|
+
useNewDesign?: boolean
|
|
2064
|
+
useAustrianLabels?: boolean
|
|
2065
|
+
enableDarkMode?: boolean
|
|
2066
|
+
accessMode?: "PUBLIC" | "PRIVATE"
|
|
2067
|
+
isPublished?: boolean
|
|
2068
|
+
status?: string
|
|
2069
|
+
isActive?: boolean
|
|
2070
|
+
savingProgress?: {
|
|
2071
|
+
savingMode?: { ... }
|
|
2072
|
+
supportedVersion?: { ... }
|
|
2073
|
+
}
|
|
2074
|
+
thirdPartyCookies?: boolean
|
|
2075
|
+
}
|
|
2076
|
+
validationRules?: Record<string, string | Record<string, string>>
|
|
2077
|
+
createdBy?: string
|
|
2078
|
+
// ...
|
|
2079
|
+
}
|
|
2080
|
+
```
|
|
2081
|
+
|
|
2082
|
+
### `JourneyFeatureFlags`
|
|
2083
|
+
|
|
2084
|
+
```ts
|
|
2085
|
+
type JourneyFeatureFlags = {
|
|
2086
|
+
featureFlags?: Record<string, unknown>
|
|
2087
|
+
}
|
|
2088
|
+
```
|
|
2089
|
+
|
|
2090
|
+
### `JourneyAuditInfo`
|
|
2091
|
+
|
|
2092
|
+
```ts
|
|
2093
|
+
type JourneyAuditInfo = {
|
|
2094
|
+
createdAt: string
|
|
2095
|
+
lastModifiedAt: string
|
|
2096
|
+
deletedAt?: string
|
|
2097
|
+
version: number
|
|
2098
|
+
revisions: number
|
|
2099
|
+
}
|
|
2100
|
+
```
|
|
2101
|
+
|
|
2102
|
+
### `JourneyValidationResponse`
|
|
2103
|
+
|
|
2104
|
+
```ts
|
|
2105
|
+
type JourneyValidationResponse = {
|
|
2106
|
+
valid: boolean
|
|
2107
|
+
errors: Array<{
|
|
2108
|
+
type?: string
|
|
2109
|
+
severity?: "critical" | "high" | "medium" | "low"
|
|
2110
|
+
message?: string
|
|
2111
|
+
affectedStepIds?: string[]
|
|
2112
|
+
count?: number
|
|
2113
|
+
autoFix?: {
|
|
2114
|
+
feasible?: { ... }
|
|
2115
|
+
confidence?: { ... }
|
|
2116
|
+
reason?: { ... }
|
|
2117
|
+
details?: { ... }
|
|
2118
|
+
}
|
|
2119
|
+
}>
|
|
2120
|
+
warnings?: Array<{
|
|
2121
|
+
type?: string
|
|
2122
|
+
message?: string
|
|
2123
|
+
}>
|
|
2124
|
+
}
|
|
2125
|
+
```
|
|
2126
|
+
|
|
2127
|
+
### `JourneyValidationError`
|
|
2128
|
+
|
|
2129
|
+
```ts
|
|
2130
|
+
type JourneyValidationError = {
|
|
2131
|
+
error: string
|
|
2132
|
+
message: string
|
|
2133
|
+
details: Array<{
|
|
2134
|
+
pattern?: string
|
|
2135
|
+
severity?: "critical" | "high" | "medium" | "low"
|
|
2136
|
+
message?: string
|
|
2137
|
+
count?: number
|
|
2138
|
+
}>
|
|
2139
|
+
}
|
|
2140
|
+
```
|
|
2141
|
+
|
|
2142
|
+
### `S3Reference`
|
|
2143
|
+
|
|
2144
|
+
```ts
|
|
2145
|
+
type S3Reference = {
|
|
2146
|
+
bucket: string
|
|
2147
|
+
key: string
|
|
2148
|
+
}
|
|
2149
|
+
```
|
|
2150
|
+
|
|
2151
|
+
### `TemplateSettings`
|
|
2152
|
+
|
|
2153
|
+
Template Settings for document generation
|
|
2154
|
+
|
|
2155
|
+
```ts
|
|
2156
|
+
type TemplateSettings = {
|
|
2157
|
+
custom_margins?: {
|
|
2158
|
+
top?: number
|
|
2159
|
+
bottom?: number
|
|
2160
|
+
}
|
|
2161
|
+
suggested_margins?: {
|
|
2162
|
+
top?: number
|
|
2163
|
+
bottom?: number
|
|
2164
|
+
}
|
|
2165
|
+
display_margin_guidelines?: boolean
|
|
2166
|
+
enable_data_table_margin_autofix?: boolean
|
|
2167
|
+
template_with_datatable?: boolean
|
|
2168
|
+
enabled_template_settings_persistence?: boolean
|
|
2169
|
+
misconfigured_margins?: boolean
|
|
2170
|
+
file_entity_id?: string // uuid
|
|
2171
|
+
}
|
|
2172
|
+
```
|
|
2173
|
+
|
|
2174
|
+
### `GenerateDocumentResponse`
|
|
2175
|
+
|
|
2176
|
+
```ts
|
|
2177
|
+
type GenerateDocumentResponse = {
|
|
2178
|
+
job_id?: string // uuid
|
|
2179
|
+
job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED"
|
|
2180
|
+
message?: string
|
|
2181
|
+
pdf_output?: {
|
|
2182
|
+
preview_url?: string
|
|
2183
|
+
output_document?: {
|
|
2184
|
+
filename?: { ... }
|
|
2185
|
+
s3ref?: { ... }
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
docx_output?: {
|
|
2189
|
+
preview_url?: string
|
|
2190
|
+
output_document?: {
|
|
2191
|
+
filename?: { ... }
|
|
2192
|
+
s3ref?: { ... }
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
variable_payload?: {
|
|
2196
|
+
additionalProperties?: string
|
|
2197
|
+
}
|
|
2198
|
+
template_settings?: {
|
|
2199
|
+
custom_margins?: {
|
|
2200
|
+
top?: { ... }
|
|
2201
|
+
bottom?: { ... }
|
|
2202
|
+
}
|
|
2203
|
+
suggested_margins?: {
|
|
2204
|
+
top?: { ... }
|
|
2205
|
+
bottom?: { ... }
|
|
2206
|
+
}
|
|
2207
|
+
display_margin_guidelines?: boolean
|
|
2208
|
+
enable_data_table_margin_autofix?: boolean
|
|
2209
|
+
template_with_datatable?: boolean
|
|
2210
|
+
enabled_template_settings_persistence?: boolean
|
|
2211
|
+
misconfigured_margins?: boolean
|
|
2212
|
+
file_entity_id?: string // uuid
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
```
|
|
2216
|
+
|
|
2217
|
+
### `GenerateDocumentRequest`
|
|
2218
|
+
|
|
2219
|
+
```ts
|
|
2220
|
+
type GenerateDocumentRequest = {
|
|
2221
|
+
file_id: string
|
|
2222
|
+
context_data: {
|
|
2223
|
+
additionalProperties?: string
|
|
2224
|
+
}
|
|
2225
|
+
language?: string
|
|
2226
|
+
}
|
|
2227
|
+
```
|
|
2228
|
+
|
|
2229
|
+
### `GetSettingsForJourney`
|
|
2230
|
+
|
|
2231
|
+
```ts
|
|
2232
|
+
type GetSettingsForJourney = {
|
|
2233
|
+
organizationId?: string
|
|
2234
|
+
canary?: boolean
|
|
2235
|
+
thirdPartyCookies?: boolean
|
|
2236
|
+
}
|
|
2237
|
+
```
|
|
2238
|
+
|
|
2239
|
+
### `ButtonOption`
|
|
2240
|
+
|
|
2241
|
+
A single button option data
|
|
2242
|
+
|
|
2243
|
+
```ts
|
|
2244
|
+
type ButtonOption = {
|
|
2245
|
+
value?: string
|
|
2246
|
+
label?: string
|
|
2247
|
+
}
|
|
2248
|
+
```
|
|
2249
|
+
|
|
2250
|
+
### `ValidationRuleRef`
|
|
2251
|
+
|
|
2252
|
+
References to validation rules organized by blocks and fields.
|
|
2253
|
+
Maps block IDs to either rule IDs (for block-level rules) or rule references (for field-level rules).
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+
```ts
|
|
2257
|
+
type ValidationRuleRef = Record<string, string | Record<string, string>>
|
|
2258
|
+
```
|
|
2259
|
+
|
|
2260
|
+
### `RuleRef`
|
|
2261
|
+
|
|
2262
|
+
Field-level rule references within a block.
|
|
2263
|
+
Maps field names to rule IDs.
|
|
2264
|
+
|
|
2265
|
+
|
|
2266
|
+
```ts
|
|
2267
|
+
type RuleRef = Record<string, string>
|
|
2268
|
+
```
|