@epilot/sdk 2.0.0-alpha.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/README.md +294 -0
- package/dist/access-token-MYDOBCIY.cjs +89 -0
- package/dist/access-token-Y5JR7PRG.js +89 -0
- package/dist/access-token.d-C2qnueDV.d.cts +553 -0
- package/dist/access-token.d-C2qnueDV.d.ts +553 -0
- package/dist/address-3RQRG3MK.js +84 -0
- package/dist/address-LQUTDOUA.cjs +84 -0
- package/dist/address-suggestions-PEKSA7B2.cjs +132 -0
- package/dist/address-suggestions-QNK5JWNH.js +132 -0
- package/dist/address-suggestions.d-CewXYNYH.d.cts +340 -0
- package/dist/address-suggestions.d-CewXYNYH.d.ts +340 -0
- package/dist/address.d-DP_aE2ex.d.cts +438 -0
- package/dist/address.d-DP_aE2ex.d.ts +438 -0
- package/dist/ai-agents-MO4PK2RJ.cjs +215 -0
- package/dist/ai-agents-OHP2F243.js +215 -0
- package/dist/ai-agents.d-vG-1utqk.d.cts +1340 -0
- package/dist/ai-agents.d-vG-1utqk.d.ts +1340 -0
- package/dist/apis/access-token.cjs +33 -0
- package/dist/apis/access-token.d.cts +18 -0
- package/dist/apis/access-token.d.ts +18 -0
- package/dist/apis/access-token.js +33 -0
- package/dist/apis/address-suggestions.cjs +33 -0
- package/dist/apis/address-suggestions.d.cts +18 -0
- package/dist/apis/address-suggestions.d.ts +18 -0
- package/dist/apis/address-suggestions.js +33 -0
- package/dist/apis/address.cjs +33 -0
- package/dist/apis/address.d.cts +18 -0
- package/dist/apis/address.d.ts +18 -0
- package/dist/apis/address.js +33 -0
- package/dist/apis/ai-agents.cjs +33 -0
- package/dist/apis/ai-agents.d.cts +18 -0
- package/dist/apis/ai-agents.d.ts +18 -0
- package/dist/apis/ai-agents.js +33 -0
- package/dist/apis/app.cjs +33 -0
- package/dist/apis/app.d.cts +18 -0
- package/dist/apis/app.d.ts +18 -0
- package/dist/apis/app.js +33 -0
- package/dist/apis/audit-logs.cjs +33 -0
- package/dist/apis/audit-logs.d.cts +18 -0
- package/dist/apis/audit-logs.d.ts +18 -0
- package/dist/apis/audit-logs.js +33 -0
- package/dist/apis/automation.cjs +33 -0
- package/dist/apis/automation.d.cts +18 -0
- package/dist/apis/automation.d.ts +18 -0
- package/dist/apis/automation.js +33 -0
- package/dist/apis/billing.cjs +33 -0
- package/dist/apis/billing.d.cts +18 -0
- package/dist/apis/billing.d.ts +18 -0
- package/dist/apis/billing.js +33 -0
- package/dist/apis/blueprint-manifest.cjs +33 -0
- package/dist/apis/blueprint-manifest.d.cts +18 -0
- package/dist/apis/blueprint-manifest.d.ts +18 -0
- package/dist/apis/blueprint-manifest.js +33 -0
- package/dist/apis/consent.cjs +33 -0
- package/dist/apis/consent.d.cts +18 -0
- package/dist/apis/consent.d.ts +18 -0
- package/dist/apis/consent.js +33 -0
- package/dist/apis/customer-portal.cjs +33 -0
- package/dist/apis/customer-portal.d.cts +18 -0
- package/dist/apis/customer-portal.d.ts +18 -0
- package/dist/apis/customer-portal.js +33 -0
- package/dist/apis/data-management.cjs +33 -0
- package/dist/apis/data-management.d.cts +18 -0
- package/dist/apis/data-management.d.ts +18 -0
- package/dist/apis/data-management.js +33 -0
- package/dist/apis/deduplication.cjs +33 -0
- package/dist/apis/deduplication.d.cts +18 -0
- package/dist/apis/deduplication.d.ts +18 -0
- package/dist/apis/deduplication.js +33 -0
- package/dist/apis/design.cjs +33 -0
- package/dist/apis/design.d.cts +18 -0
- package/dist/apis/design.d.ts +18 -0
- package/dist/apis/design.js +33 -0
- package/dist/apis/discussion.cjs +33 -0
- package/dist/apis/discussion.d.cts +18 -0
- package/dist/apis/discussion.d.ts +18 -0
- package/dist/apis/discussion.js +33 -0
- package/dist/apis/document.cjs +33 -0
- package/dist/apis/document.d.cts +18 -0
- package/dist/apis/document.d.ts +18 -0
- package/dist/apis/document.js +33 -0
- package/dist/apis/email-settings.cjs +33 -0
- package/dist/apis/email-settings.d.cts +18 -0
- package/dist/apis/email-settings.d.ts +18 -0
- package/dist/apis/email-settings.js +33 -0
- package/dist/apis/email-template.cjs +33 -0
- package/dist/apis/email-template.d.cts +18 -0
- package/dist/apis/email-template.d.ts +18 -0
- package/dist/apis/email-template.js +33 -0
- package/dist/apis/entity-mapping.cjs +33 -0
- package/dist/apis/entity-mapping.d.cts +18 -0
- package/dist/apis/entity-mapping.d.ts +18 -0
- package/dist/apis/entity-mapping.js +33 -0
- package/dist/apis/entity.cjs +33 -0
- package/dist/apis/entity.d.cts +18 -0
- package/dist/apis/entity.d.ts +18 -0
- package/dist/apis/entity.js +33 -0
- package/dist/apis/environments.cjs +33 -0
- package/dist/apis/environments.d.cts +18 -0
- package/dist/apis/environments.d.ts +18 -0
- package/dist/apis/environments.js +33 -0
- package/dist/apis/erp-integration.cjs +33 -0
- package/dist/apis/erp-integration.d.cts +18 -0
- package/dist/apis/erp-integration.d.ts +18 -0
- package/dist/apis/erp-integration.js +33 -0
- package/dist/apis/event-catalog.cjs +33 -0
- package/dist/apis/event-catalog.d.cts +18 -0
- package/dist/apis/event-catalog.d.ts +18 -0
- package/dist/apis/event-catalog.js +33 -0
- package/dist/apis/file.cjs +33 -0
- package/dist/apis/file.d.cts +18 -0
- package/dist/apis/file.d.ts +18 -0
- package/dist/apis/file.js +33 -0
- package/dist/apis/iban.cjs +33 -0
- package/dist/apis/iban.d.cts +18 -0
- package/dist/apis/iban.d.ts +18 -0
- package/dist/apis/iban.js +33 -0
- package/dist/apis/journey.cjs +33 -0
- package/dist/apis/journey.d.cts +18 -0
- package/dist/apis/journey.d.ts +18 -0
- package/dist/apis/journey.js +33 -0
- package/dist/apis/kanban.cjs +33 -0
- package/dist/apis/kanban.d.cts +18 -0
- package/dist/apis/kanban.d.ts +18 -0
- package/dist/apis/kanban.js +33 -0
- package/dist/apis/message.cjs +33 -0
- package/dist/apis/message.d.cts +18 -0
- package/dist/apis/message.d.ts +18 -0
- package/dist/apis/message.js +33 -0
- package/dist/apis/metering.cjs +33 -0
- package/dist/apis/metering.d.cts +18 -0
- package/dist/apis/metering.d.ts +18 -0
- package/dist/apis/metering.js +33 -0
- package/dist/apis/notes.cjs +33 -0
- package/dist/apis/notes.d.cts +18 -0
- package/dist/apis/notes.d.ts +18 -0
- package/dist/apis/notes.js +33 -0
- package/dist/apis/notification.cjs +33 -0
- package/dist/apis/notification.d.cts +18 -0
- package/dist/apis/notification.d.ts +18 -0
- package/dist/apis/notification.js +33 -0
- package/dist/apis/organization.cjs +33 -0
- package/dist/apis/organization.d.cts +18 -0
- package/dist/apis/organization.d.ts +18 -0
- package/dist/apis/organization.js +33 -0
- package/dist/apis/partner-directory.cjs +33 -0
- package/dist/apis/partner-directory.d.cts +18 -0
- package/dist/apis/partner-directory.d.ts +18 -0
- package/dist/apis/partner-directory.js +33 -0
- package/dist/apis/permissions.cjs +33 -0
- package/dist/apis/permissions.d.cts +18 -0
- package/dist/apis/permissions.d.ts +18 -0
- package/dist/apis/permissions.js +33 -0
- package/dist/apis/pricing-tier.cjs +33 -0
- package/dist/apis/pricing-tier.d.cts +18 -0
- package/dist/apis/pricing-tier.d.ts +18 -0
- package/dist/apis/pricing-tier.js +33 -0
- package/dist/apis/pricing.cjs +33 -0
- package/dist/apis/pricing.d.cts +18 -0
- package/dist/apis/pricing.d.ts +18 -0
- package/dist/apis/pricing.js +33 -0
- package/dist/apis/purpose.cjs +33 -0
- package/dist/apis/purpose.d.cts +18 -0
- package/dist/apis/purpose.d.ts +18 -0
- package/dist/apis/purpose.js +33 -0
- package/dist/apis/sandbox.cjs +33 -0
- package/dist/apis/sandbox.d.cts +18 -0
- package/dist/apis/sandbox.d.ts +18 -0
- package/dist/apis/sandbox.js +33 -0
- package/dist/apis/submission.cjs +33 -0
- package/dist/apis/submission.d.cts +18 -0
- package/dist/apis/submission.d.ts +18 -0
- package/dist/apis/submission.js +33 -0
- package/dist/apis/targeting.cjs +33 -0
- package/dist/apis/targeting.d.cts +18 -0
- package/dist/apis/targeting.d.ts +18 -0
- package/dist/apis/targeting.js +33 -0
- package/dist/apis/template-variables.cjs +33 -0
- package/dist/apis/template-variables.d.cts +18 -0
- package/dist/apis/template-variables.d.ts +18 -0
- package/dist/apis/template-variables.js +33 -0
- package/dist/apis/user.cjs +33 -0
- package/dist/apis/user.d.cts +18 -0
- package/dist/apis/user.d.ts +18 -0
- package/dist/apis/user.js +33 -0
- package/dist/apis/validation-rules.cjs +33 -0
- package/dist/apis/validation-rules.d.cts +18 -0
- package/dist/apis/validation-rules.d.ts +18 -0
- package/dist/apis/validation-rules.js +33 -0
- package/dist/apis/webhooks.cjs +33 -0
- package/dist/apis/webhooks.d.cts +18 -0
- package/dist/apis/webhooks.d.ts +18 -0
- package/dist/apis/webhooks.js +33 -0
- package/dist/apis/workflow-definition.cjs +33 -0
- package/dist/apis/workflow-definition.d.cts +18 -0
- package/dist/apis/workflow-definition.d.ts +18 -0
- package/dist/apis/workflow-definition.js +33 -0
- package/dist/apis/workflow.cjs +33 -0
- package/dist/apis/workflow.d.cts +18 -0
- package/dist/apis/workflow.d.ts +18 -0
- package/dist/apis/workflow.js +33 -0
- package/dist/app-UUTBO3WJ.js +573 -0
- package/dist/app-XJGY6SHO.cjs +573 -0
- package/dist/app.d-Uncn387s.d.cts +3370 -0
- package/dist/app.d-Uncn387s.d.ts +3370 -0
- package/dist/audit-logs-4IJYIOXF.js +55 -0
- package/dist/audit-logs-UWLCPBB4.cjs +55 -0
- package/dist/audit-logs.d-BxZqONu5.d.cts +288 -0
- package/dist/audit-logs.d-BxZqONu5.d.ts +288 -0
- package/dist/automation-4UQADTDO.cjs +282 -0
- package/dist/automation-PVXTQLZX.js +282 -0
- package/dist/automation.d-BteCzeFn.d.cts +4921 -0
- package/dist/automation.d-BteCzeFn.d.ts +4921 -0
- package/dist/billing-FI4V4UX5.cjs +175 -0
- package/dist/billing-OMWNJHGW.js +175 -0
- package/dist/billing.d-BH4__05Y.d.cts +994 -0
- package/dist/billing.d-BH4__05Y.d.ts +994 -0
- package/dist/bin/cli.js +135 -0
- package/dist/blueprint-manifest-CPQAL76N.cjs +504 -0
- package/dist/blueprint-manifest-FIMGDHSH.js +504 -0
- package/dist/blueprint-manifest.d-CU4v09fj.d.cts +3327 -0
- package/dist/blueprint-manifest.d-CU4v09fj.d.ts +3327 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/chunk-OBGZSXTJ.cjs +10 -0
- package/dist/chunk-UJTFRZMS.js +65 -0
- package/dist/chunk-YLLKMXS3.cjs +65 -0
- package/dist/consent-NHDCDJMK.js +84 -0
- package/dist/consent-R5GU3WCK.cjs +84 -0
- package/dist/consent.d-BETWwU_2.d.cts +266 -0
- package/dist/consent.d-BETWwU_2.d.ts +266 -0
- package/dist/customer-portal-6AV2W43T.cjs +2252 -0
- package/dist/customer-portal-EY57GJYV.js +2252 -0
- package/dist/customer-portal.d-Co_I6psR.d.cts +15255 -0
- package/dist/customer-portal.d-Co_I6psR.d.ts +15255 -0
- package/dist/data-management-ILQUYNTN.cjs +240 -0
- package/dist/data-management-QMXOLOEG.js +240 -0
- package/dist/data-management.d-CkR2E_Pm.d.cts +548 -0
- package/dist/data-management.d-CkR2E_Pm.d.ts +548 -0
- package/dist/deduplication-IVXANO7S.cjs +42 -0
- package/dist/deduplication-WN45DVK3.js +42 -0
- package/dist/deduplication.d-BlHnjhXk.d.cts +114 -0
- package/dist/deduplication.d-BlHnjhXk.d.ts +114 -0
- package/dist/design-ONRLY6XI.cjs +219 -0
- package/dist/design-UHMRO3PG.js +219 -0
- package/dist/design.d-JsNY_cGh.d.cts +834 -0
- package/dist/design.d-JsNY_cGh.d.ts +834 -0
- package/dist/discussion-4CZIG3ZM.cjs +134 -0
- package/dist/discussion-VWMWL2AF.js +134 -0
- package/dist/discussion.d-CxxaYKTf.d.cts +580 -0
- package/dist/discussion.d-CxxaYKTf.d.ts +580 -0
- package/dist/document-CN3JNXFF.js +78 -0
- package/dist/document-PCKNZA4K.cjs +78 -0
- package/dist/document.d-CZ_FGhEn.d.cts +649 -0
- package/dist/document.d-CZ_FGhEn.d.ts +649 -0
- package/dist/email-settings-ANURQMKZ.js +533 -0
- package/dist/email-settings-YE2XB2ZU.cjs +533 -0
- package/dist/email-settings.d-3eXYEyRr.d.cts +2278 -0
- package/dist/email-settings.d-3eXYEyRr.d.ts +2278 -0
- package/dist/email-template-4QI4YS4J.js +122 -0
- package/dist/email-template-BUJBC6HH.cjs +122 -0
- package/dist/email-template.d-C2L0dKqB.d.cts +1175 -0
- package/dist/email-template.d-C2L0dKqB.d.ts +1175 -0
- package/dist/entity-BCFE3UJT.cjs +1600 -0
- package/dist/entity-VEXNQC4Y.js +1600 -0
- package/dist/entity-mapping-PHRLSYP7.cjs +215 -0
- package/dist/entity-mapping-QK7MGNAW.js +215 -0
- package/dist/entity-mapping.d-B3Vyepok.d.cts +1093 -0
- package/dist/entity-mapping.d-B3Vyepok.d.ts +1093 -0
- package/dist/entity.d-DmER_7q5.d.cts +16018 -0
- package/dist/entity.d-DmER_7q5.d.ts +16018 -0
- package/dist/environments-266S44UM.cjs +71 -0
- package/dist/environments-AV7W6SLT.js +71 -0
- package/dist/environments.d-CpILpSNF.d.cts +254 -0
- package/dist/environments.d-CpILpSNF.d.ts +254 -0
- package/dist/erp-integration-5WNBCGWS.cjs +586 -0
- package/dist/erp-integration-EMI5WIWA.js +586 -0
- package/dist/erp-integration.d-DmxUZOUQ.d.cts +4120 -0
- package/dist/erp-integration.d-DmxUZOUQ.d.ts +4120 -0
- package/dist/event-catalog-DBWYKQ6J.cjs +130 -0
- package/dist/event-catalog-KKMXV5LB.js +130 -0
- package/dist/event-catalog.d-B2tq20gn.d.cts +1512 -0
- package/dist/event-catalog.d-B2tq20gn.d.ts +1512 -0
- package/dist/file-3ZLMS6TL.js +573 -0
- package/dist/file-Q66N5XMG.cjs +573 -0
- package/dist/file.d-Bi0EZkNu.d.cts +2993 -0
- package/dist/file.d-Bi0EZkNu.d.ts +2993 -0
- package/dist/iban-HSXVSIFW.cjs +43 -0
- package/dist/iban-Q27INTOC.js +43 -0
- package/dist/iban.d-DP7hl0Qt.d.cts +71 -0
- package/dist/iban.d-DP7hl0Qt.d.ts +71 -0
- package/dist/index.cjs +563 -0
- package/dist/index.d.cts +119 -0
- package/dist/index.d.ts +119 -0
- package/dist/index.js +563 -0
- package/dist/journey-DGKXVWZQ.js +270 -0
- package/dist/journey-T2Y72EBS.cjs +270 -0
- package/dist/journey.d-DxL16X6N.d.cts +1794 -0
- package/dist/journey.d-DxL16X6N.d.ts +1794 -0
- package/dist/kanban-A4B6RCJ2.cjs +164 -0
- package/dist/kanban-PP6WJVT2.js +164 -0
- package/dist/kanban.d-DDrBwr9h.d.cts +631 -0
- package/dist/kanban.d-DDrBwr9h.d.ts +631 -0
- package/dist/message-D6JY4GJH.cjs +673 -0
- package/dist/message-HFX2DDCV.js +673 -0
- package/dist/message.d-BeBH6vof.d.cts +3580 -0
- package/dist/message.d-BeBH6vof.d.ts +3580 -0
- package/dist/metering-63MJFCS2.cjs +399 -0
- package/dist/metering-F63PNFCZ.js +399 -0
- package/dist/metering.d-D5VR4tVa.d.cts +1842 -0
- package/dist/metering.d-D5VR4tVa.d.ts +1842 -0
- package/dist/notes-FTL5H4JE.cjs +219 -0
- package/dist/notes-GMWTQCMB.js +219 -0
- package/dist/notes.d-DZYeVo0I.d.cts +1047 -0
- package/dist/notes.d-DZYeVo0I.d.ts +1047 -0
- package/dist/notification-WXFSOORN.cjs +237 -0
- package/dist/notification-XHG3TIBW.js +237 -0
- package/dist/notification.d-BJwdFZnG.d.cts +1148 -0
- package/dist/notification.d-BJwdFZnG.d.ts +1148 -0
- package/dist/organization-CPXTUDJO.js +118 -0
- package/dist/organization-XIFV7MWP.cjs +118 -0
- package/dist/organization.d-DfUcuwKM.d.cts +629 -0
- package/dist/organization.d-DfUcuwKM.d.ts +629 -0
- package/dist/partner-directory-4WCHPJRO.js +282 -0
- package/dist/partner-directory-FKWPPO7F.cjs +282 -0
- package/dist/partner-directory.d-BRRDHFcz.d.cts +1511 -0
- package/dist/partner-directory.d-BRRDHFcz.d.ts +1511 -0
- package/dist/permissions-5E36GPG3.js +178 -0
- package/dist/permissions-PBTK5CCD.cjs +178 -0
- package/dist/permissions.d-CL7SwMFy.d.cts +1253 -0
- package/dist/permissions.d-CL7SwMFy.d.ts +1253 -0
- package/dist/pricing-FDWEBIQU.js +439 -0
- package/dist/pricing-FZQKL4DW.cjs +439 -0
- package/dist/pricing-tier-34O624R4.js +36 -0
- package/dist/pricing-tier-F4HE6WIM.cjs +36 -0
- package/dist/pricing-tier.d-VuH-NtlR.d.cts +82 -0
- package/dist/pricing-tier.d-VuH-NtlR.d.ts +82 -0
- package/dist/pricing.d-Dd1CaSX_.d.cts +12201 -0
- package/dist/pricing.d-Dd1CaSX_.d.ts +12201 -0
- package/dist/purpose-47HJIG2Q.cjs +180 -0
- package/dist/purpose-MX33NU5H.js +180 -0
- package/dist/purpose.d-D8YCSqt9.d.cts +373 -0
- package/dist/purpose.d-D8YCSqt9.d.ts +373 -0
- package/dist/sandbox-7QNLGFN2.cjs +100 -0
- package/dist/sandbox-TZCXHBJN.js +100 -0
- package/dist/sandbox.d-D1NgPMEc.d.cts +466 -0
- package/dist/sandbox.d-D1NgPMEc.d.ts +466 -0
- package/dist/submission-6LSPBI27.js +55 -0
- package/dist/submission-DBQNDJ4B.cjs +55 -0
- package/dist/submission.d-e9MPrbY1.d.cts +470 -0
- package/dist/submission.d-e9MPrbY1.d.ts +470 -0
- package/dist/targeting-HZRCLNIF.cjs +275 -0
- package/dist/targeting-MTQ6JBCY.js +275 -0
- package/dist/targeting.d-1GW3nh-y.d.cts +2058 -0
- package/dist/targeting.d-1GW3nh-y.d.ts +2058 -0
- package/dist/template-variables-S6IXK7SF.js +159 -0
- package/dist/template-variables-VPNIMC7L.cjs +159 -0
- package/dist/template-variables.d-CqqGe3sd.d.cts +1315 -0
- package/dist/template-variables.d-CqqGe3sd.d.ts +1315 -0
- package/dist/types-C5cGIwtq.d.cts +28 -0
- package/dist/types-C5cGIwtq.d.ts +28 -0
- package/dist/user-BHH4DAA5.cjs +488 -0
- package/dist/user-KBXFVRPI.js +488 -0
- package/dist/user.d-CWBgUia2.d.cts +2199 -0
- package/dist/user.d-CWBgUia2.d.ts +2199 -0
- package/dist/validation-rules-4V7KAWGW.cjs +120 -0
- package/dist/validation-rules-UGQY4ASY.js +120 -0
- package/dist/validation-rules.d-CMSvveua.d.cts +808 -0
- package/dist/validation-rules.d-CMSvveua.d.ts +808 -0
- package/dist/webhooks-JR475VD4.js +252 -0
- package/dist/webhooks-X64U3KCB.cjs +252 -0
- package/dist/webhooks.d-Bzl-u_Zs.d.cts +1201 -0
- package/dist/webhooks.d-Bzl-u_Zs.d.ts +1201 -0
- package/dist/workflow-7ANPQZDP.cjs +402 -0
- package/dist/workflow-DWSAHA5Q.js +402 -0
- package/dist/workflow-definition-2M3JBCUI.cjs +342 -0
- package/dist/workflow-definition-WLPGEU55.js +342 -0
- package/dist/workflow-definition.d-BKmIy2Qp.d.cts +2030 -0
- package/dist/workflow-definition.d-BKmIy2Qp.d.ts +2030 -0
- package/dist/workflow.d-DElz0XoQ.d.cts +3017 -0
- package/dist/workflow.d-DElz0XoQ.d.ts +3017 -0
- package/package.json +289 -0
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/* Auto-copied from document-client */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
declare namespace Components {
|
|
10
|
+
namespace Schemas {
|
|
11
|
+
export interface ConvertDocumentRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Language
|
|
14
|
+
* example:
|
|
15
|
+
* de
|
|
16
|
+
*/
|
|
17
|
+
language?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Input document
|
|
20
|
+
*/
|
|
21
|
+
input_document: {
|
|
22
|
+
s3ref: S3Reference;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Output format of the document
|
|
26
|
+
*/
|
|
27
|
+
output_format: "pdf";
|
|
28
|
+
/**
|
|
29
|
+
* Filename of the output document (optional)
|
|
30
|
+
* example:
|
|
31
|
+
* converted.pdf
|
|
32
|
+
*/
|
|
33
|
+
output_filename?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ConvertDocumentResponse {
|
|
36
|
+
output_document?: {
|
|
37
|
+
/**
|
|
38
|
+
* Pre-signed URL for the converted document
|
|
39
|
+
* example:
|
|
40
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/converted.pdf
|
|
41
|
+
*/
|
|
42
|
+
preview_url?: string;
|
|
43
|
+
s3ref?: S3Reference;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface DocumentGenerationV2Request {
|
|
47
|
+
/**
|
|
48
|
+
* Input template document
|
|
49
|
+
*/
|
|
50
|
+
template_document: {
|
|
51
|
+
/**
|
|
52
|
+
* Document original filename
|
|
53
|
+
* example:
|
|
54
|
+
* my-template-{{order.order_number}}.docx
|
|
55
|
+
*/
|
|
56
|
+
filename?: string;
|
|
57
|
+
s3ref?: S3Reference;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Entity to use for variable context
|
|
61
|
+
* example:
|
|
62
|
+
* bcd0aab9-b544-42b0-8bfb-6d449d02eacc
|
|
63
|
+
*/
|
|
64
|
+
context_entity_id?: string; // uuid
|
|
65
|
+
/**
|
|
66
|
+
* User Id for variable context
|
|
67
|
+
* example:
|
|
68
|
+
* 100321
|
|
69
|
+
*/
|
|
70
|
+
user_id?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Language
|
|
73
|
+
* example:
|
|
74
|
+
* de
|
|
75
|
+
*/
|
|
76
|
+
language?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Custom values for variables in the template. Takes the higher precedence than others.
|
|
79
|
+
*/
|
|
80
|
+
variable_payload?: {
|
|
81
|
+
additionalProperties?: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Custom values for variables in the template. Takes the higher precedence than others.
|
|
85
|
+
*/
|
|
86
|
+
context_data?: {
|
|
87
|
+
additionalProperties?: string;
|
|
88
|
+
};
|
|
89
|
+
template_settings?: /* Template Settings for document generation */ TemplateSettings;
|
|
90
|
+
}
|
|
91
|
+
export interface DocumentGenerationV2Response {
|
|
92
|
+
job_id?: string; // uuid
|
|
93
|
+
/**
|
|
94
|
+
* Status of the job
|
|
95
|
+
*/
|
|
96
|
+
job_status?: "STARTED" | "PROCESSING" | "SUCCESS" | "FAILED";
|
|
97
|
+
/**
|
|
98
|
+
* A message explaining the progress
|
|
99
|
+
*/
|
|
100
|
+
message?: string;
|
|
101
|
+
ics_output?: {
|
|
102
|
+
/**
|
|
103
|
+
* example:
|
|
104
|
+
* {
|
|
105
|
+
* "s3ref": {
|
|
106
|
+
* "bucket": "document-api-preview-prod",
|
|
107
|
+
* "key": "preview/my-appointment.ics"
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
*/
|
|
111
|
+
output_document?: {
|
|
112
|
+
/**
|
|
113
|
+
* Generated document filename for ICS
|
|
114
|
+
* example:
|
|
115
|
+
* my-appointment-OR-001.ics
|
|
116
|
+
*/
|
|
117
|
+
filename?: string;
|
|
118
|
+
s3ref?: S3Reference;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
pdf_output?: {
|
|
122
|
+
/**
|
|
123
|
+
* Pre-signed S3 GET URL for PDF preview
|
|
124
|
+
* example:
|
|
125
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.pdf
|
|
126
|
+
*/
|
|
127
|
+
preview_url?: string;
|
|
128
|
+
/**
|
|
129
|
+
* example:
|
|
130
|
+
* {
|
|
131
|
+
* "s3ref": {
|
|
132
|
+
* "bucket": "document-api-preview-prod",
|
|
133
|
+
* "key": "preview/my-template.pdf"
|
|
134
|
+
* }
|
|
135
|
+
* }
|
|
136
|
+
*/
|
|
137
|
+
output_document?: {
|
|
138
|
+
/**
|
|
139
|
+
* Generated document filename for PDF
|
|
140
|
+
* example:
|
|
141
|
+
* my-template-OR-001.pdf
|
|
142
|
+
*/
|
|
143
|
+
filename?: string;
|
|
144
|
+
s3ref?: S3Reference;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
docx_output?: {
|
|
148
|
+
/**
|
|
149
|
+
* Pre-signed S3 GET URL for DOCX preview
|
|
150
|
+
* example:
|
|
151
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.docx
|
|
152
|
+
*/
|
|
153
|
+
preview_url?: string;
|
|
154
|
+
/**
|
|
155
|
+
* example:
|
|
156
|
+
* {
|
|
157
|
+
* "s3ref": {
|
|
158
|
+
* "bucket": "document-api-preview-prod",
|
|
159
|
+
* "key": "preview/my-template.docx"
|
|
160
|
+
* }
|
|
161
|
+
* }
|
|
162
|
+
*/
|
|
163
|
+
output_document?: {
|
|
164
|
+
/**
|
|
165
|
+
* Generated document filename for DOCX
|
|
166
|
+
* example:
|
|
167
|
+
* my-template-OR-001.docx
|
|
168
|
+
*/
|
|
169
|
+
filename?: string;
|
|
170
|
+
s3ref?: S3Reference;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
xlsx_output?: {
|
|
174
|
+
/**
|
|
175
|
+
* Pre-signed S3 GET URL for XLSX preview
|
|
176
|
+
* example:
|
|
177
|
+
* https://document-api-prod.s3.eu-central-1.amazonaws.com/preview/my-template-OR-001.xlsx
|
|
178
|
+
*/
|
|
179
|
+
preview_url?: string;
|
|
180
|
+
/**
|
|
181
|
+
* example:
|
|
182
|
+
* {
|
|
183
|
+
* "s3ref": {
|
|
184
|
+
* "bucket": "document-api-preview-prod",
|
|
185
|
+
* "key": "preview/my-template.xlsx"
|
|
186
|
+
* }
|
|
187
|
+
* }
|
|
188
|
+
*/
|
|
189
|
+
output_document?: {
|
|
190
|
+
/**
|
|
191
|
+
* Generated document filename for XLSX
|
|
192
|
+
* example:
|
|
193
|
+
* my-template-OR-001.xlsx
|
|
194
|
+
*/
|
|
195
|
+
filename?: string;
|
|
196
|
+
s3ref?: S3Reference;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
error_output?: ErrorOutput;
|
|
200
|
+
/**
|
|
201
|
+
* List of variables and its corresponding replaced values from the document template
|
|
202
|
+
*/
|
|
203
|
+
variable_payload?: {
|
|
204
|
+
additionalProperties?: string;
|
|
205
|
+
};
|
|
206
|
+
template_settings?: /* Template Settings for document generation */ TemplateSettings;
|
|
207
|
+
}
|
|
208
|
+
export interface DocumentMetaRequest {
|
|
209
|
+
/**
|
|
210
|
+
* Input template document
|
|
211
|
+
*/
|
|
212
|
+
template_document?: {
|
|
213
|
+
s3ref?: S3Reference;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export interface DocumentMetaResponse {
|
|
217
|
+
/**
|
|
218
|
+
* Page margins for the document
|
|
219
|
+
*/
|
|
220
|
+
page_margins?: {
|
|
221
|
+
/**
|
|
222
|
+
* Top margin in cm
|
|
223
|
+
* example:
|
|
224
|
+
* 2.54
|
|
225
|
+
*/
|
|
226
|
+
top?: number;
|
|
227
|
+
/**
|
|
228
|
+
* Bottom margin in cm
|
|
229
|
+
* example:
|
|
230
|
+
* 2.54
|
|
231
|
+
*/
|
|
232
|
+
bottom?: number;
|
|
233
|
+
/**
|
|
234
|
+
* Left margin in cm
|
|
235
|
+
* example:
|
|
236
|
+
* 2.54
|
|
237
|
+
*/
|
|
238
|
+
left?: number;
|
|
239
|
+
/**
|
|
240
|
+
* Right margin in cm
|
|
241
|
+
* example:
|
|
242
|
+
* 2.54
|
|
243
|
+
*/
|
|
244
|
+
right?: number;
|
|
245
|
+
/**
|
|
246
|
+
* Header margin in cm
|
|
247
|
+
* example:
|
|
248
|
+
* 2.54
|
|
249
|
+
*/
|
|
250
|
+
header?: number;
|
|
251
|
+
/**
|
|
252
|
+
* Footer margin in cm
|
|
253
|
+
* example:
|
|
254
|
+
* 2.54
|
|
255
|
+
*/
|
|
256
|
+
footer?: number;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* List of variables in the document
|
|
260
|
+
* example:
|
|
261
|
+
* [
|
|
262
|
+
* "order.billing_contact.0.salutation",
|
|
263
|
+
* "order.billing_contact.0.title",
|
|
264
|
+
* "order_table",
|
|
265
|
+
* "stayHardStatic",
|
|
266
|
+
* "opportunity[attribute_name]",
|
|
267
|
+
* "opportunity[\"attribute_name\"]",
|
|
268
|
+
* "opportunity.[attribute_name]",
|
|
269
|
+
* "attribute_name",
|
|
270
|
+
* "opportunities.0.attribute_name",
|
|
271
|
+
* "opportunities[0].attribute_name",
|
|
272
|
+
* "contact.opportunities[0].attribute_name",
|
|
273
|
+
* "opportunities[Primary].attribute_name"
|
|
274
|
+
* ]
|
|
275
|
+
*/
|
|
276
|
+
variables?: string[];
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* DocxTemplater error detail
|
|
280
|
+
*/
|
|
281
|
+
export interface DocxTemplaterErrorDetail {
|
|
282
|
+
/**
|
|
283
|
+
* Id of the error
|
|
284
|
+
*/
|
|
285
|
+
id?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Context of the error
|
|
288
|
+
*/
|
|
289
|
+
context?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Explanation of the error
|
|
292
|
+
*/
|
|
293
|
+
explanation?: string;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Error details for DocxTemplater error. This error will appear under 'PARSE_ERROR' error code.
|
|
297
|
+
* See https://docxtemplater.com/docs/errors/#error-schema for more details.
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
export type DocxTemplaterErrorDetails = /* DocxTemplater error detail */ DocxTemplaterErrorDetail[];
|
|
301
|
+
/**
|
|
302
|
+
* Error codes for document generation:
|
|
303
|
+
* - PARSE_ERROR - Error while parsing the document. Normally related with a bad template using the wrong DocxTemplater syntax.
|
|
304
|
+
* - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
|
|
305
|
+
* - INTERNAL_ERROR - Internal error. Please contact support.
|
|
306
|
+
* - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
|
|
307
|
+
*
|
|
308
|
+
*/
|
|
309
|
+
export type ErrorCode = "PARSE_ERROR" | "DOC_TO_PDF_CONVERT_ERROR" | "INTERNAL_ERROR" | "INVALID_TEMPLATE_FORMAT";
|
|
310
|
+
export interface ErrorOutput {
|
|
311
|
+
/**
|
|
312
|
+
* Error message
|
|
313
|
+
*/
|
|
314
|
+
error_message?: string;
|
|
315
|
+
error_code?: /**
|
|
316
|
+
* Error codes for document generation:
|
|
317
|
+
* - PARSE_ERROR - Error while parsing the document. Normally related with a bad template using the wrong DocxTemplater syntax.
|
|
318
|
+
* - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
|
|
319
|
+
* - INTERNAL_ERROR - Internal error. Please contact support.
|
|
320
|
+
* - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
|
|
321
|
+
*
|
|
322
|
+
*/
|
|
323
|
+
ErrorCode;
|
|
324
|
+
error_details?: /* Error details for invalid custom variables. This error will appear under 'PARSE_ERROR' error code. */ InvalidCustomVariableErrorDetails | /* Error details for internal error. This error will appear under 'INTERNAL_ERROR' error code. */ InternalErrorDetails | /**
|
|
325
|
+
* Error details for DocxTemplater error. This error will appear under 'PARSE_ERROR' error code.
|
|
326
|
+
* See https://docxtemplater.com/docs/errors/#error-schema for more details.
|
|
327
|
+
*
|
|
328
|
+
*/
|
|
329
|
+
DocxTemplaterErrorDetails;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Internal error detail
|
|
333
|
+
*/
|
|
334
|
+
export interface InternalErrorDetail {
|
|
335
|
+
/**
|
|
336
|
+
* Name of the error
|
|
337
|
+
*/
|
|
338
|
+
name?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Error message
|
|
341
|
+
*/
|
|
342
|
+
message?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Stack trace
|
|
345
|
+
*/
|
|
346
|
+
stack?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Cause of the error
|
|
349
|
+
*/
|
|
350
|
+
cause?: string;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Error details for internal error. This error will appear under 'INTERNAL_ERROR' error code.
|
|
354
|
+
*/
|
|
355
|
+
export type InternalErrorDetails = {
|
|
356
|
+
items?: /* Internal error detail */ InternalErrorDetail;
|
|
357
|
+
}[];
|
|
358
|
+
export interface InvalidCustomVariableErrorDetail {
|
|
359
|
+
[name: string]: any;
|
|
360
|
+
/**
|
|
361
|
+
* Explanation for the error
|
|
362
|
+
*/
|
|
363
|
+
explanation?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Context for the error
|
|
366
|
+
*/
|
|
367
|
+
context?: {
|
|
368
|
+
/**
|
|
369
|
+
* List of invalid variables
|
|
370
|
+
*/
|
|
371
|
+
invalid_variables?: {
|
|
372
|
+
/**
|
|
373
|
+
* Variable name
|
|
374
|
+
*/
|
|
375
|
+
variable?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Explanation for the error
|
|
378
|
+
*/
|
|
379
|
+
error?: string;
|
|
380
|
+
}[];
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Error details for invalid custom variables. This error will appear under 'PARSE_ERROR' error code.
|
|
385
|
+
*/
|
|
386
|
+
export type InvalidCustomVariableErrorDetails = InvalidCustomVariableErrorDetail[];
|
|
387
|
+
export interface S3Reference {
|
|
388
|
+
/**
|
|
389
|
+
* example:
|
|
390
|
+
* document-api-prod
|
|
391
|
+
*/
|
|
392
|
+
bucket: string;
|
|
393
|
+
/**
|
|
394
|
+
* example:
|
|
395
|
+
* uploads/my-template.pdf
|
|
396
|
+
*/
|
|
397
|
+
key: string;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Template Settings for document generation
|
|
401
|
+
*/
|
|
402
|
+
export interface TemplateSettings {
|
|
403
|
+
/**
|
|
404
|
+
* Custom margins for the document
|
|
405
|
+
*/
|
|
406
|
+
custom_margins?: {
|
|
407
|
+
/**
|
|
408
|
+
* Top margin in cm
|
|
409
|
+
* example:
|
|
410
|
+
* 2.54
|
|
411
|
+
*/
|
|
412
|
+
top?: number;
|
|
413
|
+
/**
|
|
414
|
+
* Bottom margin in cm
|
|
415
|
+
* example:
|
|
416
|
+
* 2.54
|
|
417
|
+
*/
|
|
418
|
+
bottom?: number;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Suggested margins for the document
|
|
422
|
+
*/
|
|
423
|
+
suggested_margins?: {
|
|
424
|
+
/**
|
|
425
|
+
* Top margin in cm
|
|
426
|
+
* example:
|
|
427
|
+
* 2.54
|
|
428
|
+
*/
|
|
429
|
+
top?: number;
|
|
430
|
+
/**
|
|
431
|
+
* Bottom margin in cm
|
|
432
|
+
* example:
|
|
433
|
+
* 2.54
|
|
434
|
+
*/
|
|
435
|
+
bottom?: number;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* Display margin guidelines (applicable to partial generation only)
|
|
439
|
+
* example:
|
|
440
|
+
* true
|
|
441
|
+
*/
|
|
442
|
+
display_margin_guidelines?: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* Enable data table margin autofix
|
|
445
|
+
* example:
|
|
446
|
+
* false
|
|
447
|
+
*/
|
|
448
|
+
enable_data_table_margin_autofix?: boolean;
|
|
449
|
+
/**
|
|
450
|
+
* A flag that indicates whether the template has 1 or more data tables in it
|
|
451
|
+
* example:
|
|
452
|
+
* false
|
|
453
|
+
*/
|
|
454
|
+
template_with_datatable?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Enables the persistance of template settings
|
|
457
|
+
* example:
|
|
458
|
+
* false
|
|
459
|
+
*/
|
|
460
|
+
enabled_template_settings_persistence?: boolean;
|
|
461
|
+
/**
|
|
462
|
+
* An indication that the page margins are misconfigured
|
|
463
|
+
* example:
|
|
464
|
+
* false
|
|
465
|
+
*/
|
|
466
|
+
misconfigured_margins?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* The file entity id, used when persisting a new template version with updated settings
|
|
469
|
+
* example:
|
|
470
|
+
* 1a2b3c4d-5e6f-7g8h-9i0j-1k2l3m4n5o6p
|
|
471
|
+
*/
|
|
472
|
+
file_entity_id?: string; // uuid
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
declare namespace Paths {
|
|
477
|
+
namespace ConvertDocument {
|
|
478
|
+
export type RequestBody = Components.Schemas.ConvertDocumentRequest;
|
|
479
|
+
namespace Responses {
|
|
480
|
+
export type $200 = Components.Schemas.ConvertDocumentResponse;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
namespace GenerateDocumentV2 {
|
|
484
|
+
namespace Parameters {
|
|
485
|
+
export type JobId = string;
|
|
486
|
+
export type Mode = "partial_generation" | "full_generation";
|
|
487
|
+
export type PreviewMode = "open" | "download";
|
|
488
|
+
}
|
|
489
|
+
export interface QueryParameters {
|
|
490
|
+
job_id?: Parameters.JobId;
|
|
491
|
+
mode?: Parameters.Mode;
|
|
492
|
+
preview_mode?: Parameters.PreviewMode;
|
|
493
|
+
}
|
|
494
|
+
export type RequestBody = Components.Schemas.DocumentGenerationV2Request;
|
|
495
|
+
namespace Responses {
|
|
496
|
+
export type $200 = Components.Schemas.DocumentGenerationV2Response;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
namespace GetTemplateMeta {
|
|
500
|
+
export type RequestBody = Components.Schemas.DocumentMetaRequest;
|
|
501
|
+
namespace Responses {
|
|
502
|
+
export type $200 = Components.Schemas.DocumentMetaResponse;
|
|
503
|
+
export type $400 = Components.Schemas.ErrorOutput;
|
|
504
|
+
export type $403 = Components.Schemas.ErrorOutput;
|
|
505
|
+
export type $415 = Components.Schemas.ErrorOutput;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
interface OperationMethods {
|
|
512
|
+
/**
|
|
513
|
+
* getTemplateMeta - getTemplateMeta
|
|
514
|
+
*
|
|
515
|
+
* Get metadata for a document template
|
|
516
|
+
*
|
|
517
|
+
* Supported input document types:
|
|
518
|
+
* - .docx
|
|
519
|
+
*
|
|
520
|
+
*/
|
|
521
|
+
'getTemplateMeta'(
|
|
522
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
523
|
+
data?: Paths.GetTemplateMeta.RequestBody,
|
|
524
|
+
config?: AxiosRequestConfig
|
|
525
|
+
): OperationResponse<Paths.GetTemplateMeta.Responses.$200>
|
|
526
|
+
/**
|
|
527
|
+
* generateDocumentV2 - generateDocumentV2
|
|
528
|
+
*
|
|
529
|
+
* Generates documents from templates with variables.
|
|
530
|
+
*
|
|
531
|
+
* Supported document types as input:
|
|
532
|
+
* - .docx
|
|
533
|
+
* - .ics
|
|
534
|
+
*
|
|
535
|
+
* Supported document types as output:
|
|
536
|
+
* - .pdf
|
|
537
|
+
* - .docx but limited to only text based variables
|
|
538
|
+
* - .ics
|
|
539
|
+
*
|
|
540
|
+
* Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the input document.
|
|
541
|
+
*
|
|
542
|
+
*/
|
|
543
|
+
'generateDocumentV2'(
|
|
544
|
+
parameters?: Parameters<Paths.GenerateDocumentV2.QueryParameters> | null,
|
|
545
|
+
data?: Paths.GenerateDocumentV2.RequestBody,
|
|
546
|
+
config?: AxiosRequestConfig
|
|
547
|
+
): OperationResponse<Paths.GenerateDocumentV2.Responses.$200>
|
|
548
|
+
/**
|
|
549
|
+
* convertDocument - convertDocument
|
|
550
|
+
*
|
|
551
|
+
* Converts a document to a different format.
|
|
552
|
+
*
|
|
553
|
+
* Supported input document types:
|
|
554
|
+
* - .docx
|
|
555
|
+
*
|
|
556
|
+
* Supported output document types:
|
|
557
|
+
* - .pdf
|
|
558
|
+
*
|
|
559
|
+
*/
|
|
560
|
+
'convertDocument'(
|
|
561
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
562
|
+
data?: Paths.ConvertDocument.RequestBody,
|
|
563
|
+
config?: AxiosRequestConfig
|
|
564
|
+
): OperationResponse<Paths.ConvertDocument.Responses.$200>
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
interface PathsDictionary {
|
|
568
|
+
['/v2/documents:meta']: {
|
|
569
|
+
/**
|
|
570
|
+
* getTemplateMeta - getTemplateMeta
|
|
571
|
+
*
|
|
572
|
+
* Get metadata for a document template
|
|
573
|
+
*
|
|
574
|
+
* Supported input document types:
|
|
575
|
+
* - .docx
|
|
576
|
+
*
|
|
577
|
+
*/
|
|
578
|
+
'post'(
|
|
579
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
580
|
+
data?: Paths.GetTemplateMeta.RequestBody,
|
|
581
|
+
config?: AxiosRequestConfig
|
|
582
|
+
): OperationResponse<Paths.GetTemplateMeta.Responses.$200>
|
|
583
|
+
}
|
|
584
|
+
['/v2/documents:generate']: {
|
|
585
|
+
/**
|
|
586
|
+
* generateDocumentV2 - generateDocumentV2
|
|
587
|
+
*
|
|
588
|
+
* Generates documents from templates with variables.
|
|
589
|
+
*
|
|
590
|
+
* Supported document types as input:
|
|
591
|
+
* - .docx
|
|
592
|
+
* - .ics
|
|
593
|
+
*
|
|
594
|
+
* Supported document types as output:
|
|
595
|
+
* - .pdf
|
|
596
|
+
* - .docx but limited to only text based variables
|
|
597
|
+
* - .ics
|
|
598
|
+
*
|
|
599
|
+
* Uses [Template Variables API](https://docs.epilot.io/api/template-variables) to replace variables in the input document.
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
'post'(
|
|
603
|
+
parameters?: Parameters<Paths.GenerateDocumentV2.QueryParameters> | null,
|
|
604
|
+
data?: Paths.GenerateDocumentV2.RequestBody,
|
|
605
|
+
config?: AxiosRequestConfig
|
|
606
|
+
): OperationResponse<Paths.GenerateDocumentV2.Responses.$200>
|
|
607
|
+
}
|
|
608
|
+
['/v2/documents:convert']: {
|
|
609
|
+
/**
|
|
610
|
+
* convertDocument - convertDocument
|
|
611
|
+
*
|
|
612
|
+
* Converts a document to a different format.
|
|
613
|
+
*
|
|
614
|
+
* Supported input document types:
|
|
615
|
+
* - .docx
|
|
616
|
+
*
|
|
617
|
+
* Supported output document types:
|
|
618
|
+
* - .pdf
|
|
619
|
+
*
|
|
620
|
+
*/
|
|
621
|
+
'post'(
|
|
622
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
623
|
+
data?: Paths.ConvertDocument.RequestBody,
|
|
624
|
+
config?: AxiosRequestConfig
|
|
625
|
+
): OperationResponse<Paths.ConvertDocument.Responses.$200>
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
type ConvertDocumentRequest = Components.Schemas.ConvertDocumentRequest;
|
|
633
|
+
type ConvertDocumentResponse = Components.Schemas.ConvertDocumentResponse;
|
|
634
|
+
type DocumentGenerationV2Request = Components.Schemas.DocumentGenerationV2Request;
|
|
635
|
+
type DocumentGenerationV2Response = Components.Schemas.DocumentGenerationV2Response;
|
|
636
|
+
type DocumentMetaRequest = Components.Schemas.DocumentMetaRequest;
|
|
637
|
+
type DocumentMetaResponse = Components.Schemas.DocumentMetaResponse;
|
|
638
|
+
type DocxTemplaterErrorDetail = Components.Schemas.DocxTemplaterErrorDetail;
|
|
639
|
+
type DocxTemplaterErrorDetails = Components.Schemas.DocxTemplaterErrorDetails;
|
|
640
|
+
type ErrorCode = Components.Schemas.ErrorCode;
|
|
641
|
+
type ErrorOutput = Components.Schemas.ErrorOutput;
|
|
642
|
+
type InternalErrorDetail = Components.Schemas.InternalErrorDetail;
|
|
643
|
+
type InternalErrorDetails = Components.Schemas.InternalErrorDetails;
|
|
644
|
+
type InvalidCustomVariableErrorDetail = Components.Schemas.InvalidCustomVariableErrorDetail;
|
|
645
|
+
type InvalidCustomVariableErrorDetails = Components.Schemas.InvalidCustomVariableErrorDetails;
|
|
646
|
+
type S3Reference = Components.Schemas.S3Reference;
|
|
647
|
+
type TemplateSettings = Components.Schemas.TemplateSettings;
|
|
648
|
+
|
|
649
|
+
export type { Client as C, DocumentGenerationV2Request as D, ErrorCode as E, InternalErrorDetail as I, OperationMethods as O, PathsDictionary as P, S3Reference as S, TemplateSettings as T, ConvertDocumentRequest as a, ConvertDocumentResponse as b, DocumentGenerationV2Response as c, DocumentMetaRequest as d, DocumentMetaResponse as e, DocxTemplaterErrorDetail as f, DocxTemplaterErrorDetails as g, ErrorOutput as h, InternalErrorDetails as i, InvalidCustomVariableErrorDetail as j, InvalidCustomVariableErrorDetails as k };
|