@epilot/sdk 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/README.md +24 -0
  2. package/definitions/environments-runtime.json +1 -1
  3. package/dist/{README-W4B35MRN.cjs → README-6OOYWQYJ.cjs} +1 -1
  4. package/dist/{README-VG67PX4R.js → README-JUWX7KNV.js} +1 -1
  5. package/dist/{_index-S6LFD3ER.js → _index-NWNYWBIF.js} +48 -1
  6. package/dist/{_index-AMVZBT2K.cjs → _index-ONGE545F.cjs} +48 -1
  7. package/dist/access-token-2O6ULCCN.js +633 -0
  8. package/dist/access-token-RKP2A2F7.cjs +633 -0
  9. package/dist/access-token-runtime-KCKGT4O7.js +5 -0
  10. package/dist/access-token-runtime-NZWZJPWV.cjs +5 -0
  11. package/dist/address-HLBX47SQ.cjs +567 -0
  12. package/dist/address-IJF4N2UV.js +567 -0
  13. package/dist/address-runtime-2MNO2YRD.cjs +5 -0
  14. package/dist/address-runtime-YFCNBJBW.js +5 -0
  15. package/dist/address-suggestions-BYUTV7OU.js +574 -0
  16. package/dist/address-suggestions-ERVGGO6Z.cjs +574 -0
  17. package/dist/address-suggestions-runtime-NIMC2J32.js +5 -0
  18. package/dist/address-suggestions-runtime-ZNGLDADE.cjs +5 -0
  19. package/dist/ai-agents-6VHVYRCC.cjs +1612 -0
  20. package/dist/ai-agents-PKCHKKJS.js +1612 -0
  21. package/dist/ai-agents-runtime-25YRUJHI.js +5 -0
  22. package/dist/ai-agents-runtime-TILIO3UM.cjs +5 -0
  23. package/dist/apis/access-token.cjs +8 -8
  24. package/dist/apis/access-token.d.cts +2 -2
  25. package/dist/apis/access-token.d.ts +2 -2
  26. package/dist/apis/access-token.js +4 -4
  27. package/dist/apis/address-suggestions.cjs +8 -8
  28. package/dist/apis/address-suggestions.d.cts +2 -2
  29. package/dist/apis/address-suggestions.d.ts +2 -2
  30. package/dist/apis/address-suggestions.js +4 -4
  31. package/dist/apis/address.cjs +8 -8
  32. package/dist/apis/address.d.cts +2 -2
  33. package/dist/apis/address.d.ts +2 -2
  34. package/dist/apis/address.js +4 -4
  35. package/dist/apis/ai-agents.cjs +8 -8
  36. package/dist/apis/ai-agents.d.cts +2 -2
  37. package/dist/apis/ai-agents.d.ts +2 -2
  38. package/dist/apis/ai-agents.js +4 -4
  39. package/dist/apis/app.cjs +8 -8
  40. package/dist/apis/app.d.cts +2 -2
  41. package/dist/apis/app.d.ts +2 -2
  42. package/dist/apis/app.js +4 -4
  43. package/dist/apis/audit-logs.cjs +8 -8
  44. package/dist/apis/audit-logs.d.cts +2 -2
  45. package/dist/apis/audit-logs.d.ts +2 -2
  46. package/dist/apis/audit-logs.js +4 -4
  47. package/dist/apis/automation.cjs +8 -8
  48. package/dist/apis/automation.d.cts +2 -2
  49. package/dist/apis/automation.d.ts +2 -2
  50. package/dist/apis/automation.js +4 -4
  51. package/dist/apis/billing.cjs +8 -8
  52. package/dist/apis/billing.d.cts +2 -2
  53. package/dist/apis/billing.d.ts +2 -2
  54. package/dist/apis/billing.js +4 -4
  55. package/dist/apis/blueprint-manifest.cjs +8 -8
  56. package/dist/apis/blueprint-manifest.d.cts +2 -2
  57. package/dist/apis/blueprint-manifest.d.ts +2 -2
  58. package/dist/apis/blueprint-manifest.js +4 -4
  59. package/dist/apis/consent.cjs +8 -8
  60. package/dist/apis/consent.d.cts +2 -2
  61. package/dist/apis/consent.d.ts +2 -2
  62. package/dist/apis/consent.js +4 -4
  63. package/dist/apis/customer-portal.cjs +8 -8
  64. package/dist/apis/customer-portal.d.cts +2 -2
  65. package/dist/apis/customer-portal.d.ts +2 -2
  66. package/dist/apis/customer-portal.js +4 -4
  67. package/dist/apis/dashboard.cjs +8 -8
  68. package/dist/apis/dashboard.d.cts +2 -2
  69. package/dist/apis/dashboard.d.ts +2 -2
  70. package/dist/apis/dashboard.js +4 -4
  71. package/dist/apis/data-management.cjs +8 -8
  72. package/dist/apis/data-management.d.cts +2 -2
  73. package/dist/apis/data-management.d.ts +2 -2
  74. package/dist/apis/data-management.js +4 -4
  75. package/dist/apis/deduplication.cjs +8 -8
  76. package/dist/apis/deduplication.d.cts +2 -2
  77. package/dist/apis/deduplication.d.ts +2 -2
  78. package/dist/apis/deduplication.js +4 -4
  79. package/dist/apis/design.cjs +8 -8
  80. package/dist/apis/design.d.cts +2 -2
  81. package/dist/apis/design.d.ts +2 -2
  82. package/dist/apis/design.js +4 -4
  83. package/dist/apis/document.cjs +8 -8
  84. package/dist/apis/document.d.cts +2 -2
  85. package/dist/apis/document.d.ts +2 -2
  86. package/dist/apis/document.js +4 -4
  87. package/dist/apis/email-settings.cjs +8 -8
  88. package/dist/apis/email-settings.d.cts +2 -2
  89. package/dist/apis/email-settings.d.ts +2 -2
  90. package/dist/apis/email-settings.js +4 -4
  91. package/dist/apis/email-template.cjs +8 -8
  92. package/dist/apis/email-template.d.cts +2 -2
  93. package/dist/apis/email-template.d.ts +2 -2
  94. package/dist/apis/email-template.js +4 -4
  95. package/dist/apis/entity-mapping.cjs +8 -8
  96. package/dist/apis/entity-mapping.d.cts +2 -2
  97. package/dist/apis/entity-mapping.d.ts +2 -2
  98. package/dist/apis/entity-mapping.js +4 -4
  99. package/dist/apis/entity.cjs +8 -8
  100. package/dist/apis/entity.d.cts +2 -2
  101. package/dist/apis/entity.d.ts +2 -2
  102. package/dist/apis/entity.js +4 -4
  103. package/dist/apis/environments.cjs +8 -8
  104. package/dist/apis/environments.d.cts +2 -2
  105. package/dist/apis/environments.d.ts +2 -2
  106. package/dist/apis/environments.js +4 -4
  107. package/dist/apis/erp-integration.cjs +8 -8
  108. package/dist/apis/erp-integration.d.cts +2 -2
  109. package/dist/apis/erp-integration.d.ts +2 -2
  110. package/dist/apis/erp-integration.js +4 -4
  111. package/dist/apis/event-catalog.cjs +8 -8
  112. package/dist/apis/event-catalog.d.cts +2 -2
  113. package/dist/apis/event-catalog.d.ts +2 -2
  114. package/dist/apis/event-catalog.js +4 -4
  115. package/dist/apis/file.cjs +8 -8
  116. package/dist/apis/file.d.cts +2 -2
  117. package/dist/apis/file.d.ts +2 -2
  118. package/dist/apis/file.js +4 -4
  119. package/dist/apis/iban.cjs +8 -8
  120. package/dist/apis/iban.d.cts +2 -2
  121. package/dist/apis/iban.d.ts +2 -2
  122. package/dist/apis/iban.js +4 -4
  123. package/dist/apis/journey.cjs +8 -8
  124. package/dist/apis/journey.d.cts +2 -2
  125. package/dist/apis/journey.d.ts +2 -2
  126. package/dist/apis/journey.js +4 -4
  127. package/dist/apis/kanban.cjs +8 -8
  128. package/dist/apis/kanban.d.cts +2 -2
  129. package/dist/apis/kanban.d.ts +2 -2
  130. package/dist/apis/kanban.js +4 -4
  131. package/dist/apis/message.cjs +8 -8
  132. package/dist/apis/message.d.cts +2 -2
  133. package/dist/apis/message.d.ts +2 -2
  134. package/dist/apis/message.js +4 -4
  135. package/dist/apis/metering.cjs +8 -8
  136. package/dist/apis/metering.d.cts +2 -2
  137. package/dist/apis/metering.d.ts +2 -2
  138. package/dist/apis/metering.js +4 -4
  139. package/dist/apis/notes.cjs +8 -8
  140. package/dist/apis/notes.d.cts +2 -2
  141. package/dist/apis/notes.d.ts +2 -2
  142. package/dist/apis/notes.js +4 -4
  143. package/dist/apis/notification.cjs +8 -8
  144. package/dist/apis/notification.d.cts +2 -2
  145. package/dist/apis/notification.d.ts +2 -2
  146. package/dist/apis/notification.js +4 -4
  147. package/dist/apis/organization.cjs +8 -8
  148. package/dist/apis/organization.d.cts +2 -2
  149. package/dist/apis/organization.d.ts +2 -2
  150. package/dist/apis/organization.js +4 -4
  151. package/dist/apis/partner-directory.cjs +8 -8
  152. package/dist/apis/partner-directory.d.cts +2 -2
  153. package/dist/apis/partner-directory.d.ts +2 -2
  154. package/dist/apis/partner-directory.js +4 -4
  155. package/dist/apis/permissions.cjs +8 -8
  156. package/dist/apis/permissions.d.cts +2 -2
  157. package/dist/apis/permissions.d.ts +2 -2
  158. package/dist/apis/permissions.js +4 -4
  159. package/dist/apis/pricing-tier.cjs +8 -8
  160. package/dist/apis/pricing-tier.d.cts +2 -2
  161. package/dist/apis/pricing-tier.d.ts +2 -2
  162. package/dist/apis/pricing-tier.js +4 -4
  163. package/dist/apis/pricing.cjs +8 -8
  164. package/dist/apis/pricing.d.cts +2 -2
  165. package/dist/apis/pricing.d.ts +2 -2
  166. package/dist/apis/pricing.js +4 -4
  167. package/dist/apis/purpose.cjs +8 -8
  168. package/dist/apis/purpose.d.cts +2 -2
  169. package/dist/apis/purpose.d.ts +2 -2
  170. package/dist/apis/purpose.js +4 -4
  171. package/dist/apis/sandbox.cjs +8 -8
  172. package/dist/apis/sandbox.d.cts +2 -2
  173. package/dist/apis/sandbox.d.ts +2 -2
  174. package/dist/apis/sandbox.js +4 -4
  175. package/dist/apis/submission.cjs +8 -8
  176. package/dist/apis/submission.d.cts +2 -2
  177. package/dist/apis/submission.d.ts +2 -2
  178. package/dist/apis/submission.js +4 -4
  179. package/dist/apis/targeting.cjs +8 -8
  180. package/dist/apis/targeting.d.cts +2 -2
  181. package/dist/apis/targeting.d.ts +2 -2
  182. package/dist/apis/targeting.js +4 -4
  183. package/dist/apis/template-variables.cjs +8 -8
  184. package/dist/apis/template-variables.d.cts +2 -2
  185. package/dist/apis/template-variables.d.ts +2 -2
  186. package/dist/apis/template-variables.js +4 -4
  187. package/dist/apis/user.cjs +8 -8
  188. package/dist/apis/user.d.cts +2 -2
  189. package/dist/apis/user.d.ts +2 -2
  190. package/dist/apis/user.js +4 -4
  191. package/dist/apis/validation-rules.cjs +8 -8
  192. package/dist/apis/validation-rules.d.cts +2 -2
  193. package/dist/apis/validation-rules.d.ts +2 -2
  194. package/dist/apis/validation-rules.js +4 -4
  195. package/dist/apis/webhooks.cjs +8 -8
  196. package/dist/apis/webhooks.d.cts +2 -2
  197. package/dist/apis/webhooks.d.ts +2 -2
  198. package/dist/apis/webhooks.js +4 -4
  199. package/dist/apis/workflow-definition.cjs +8 -8
  200. package/dist/apis/workflow-definition.d.cts +2 -2
  201. package/dist/apis/workflow-definition.d.ts +2 -2
  202. package/dist/apis/workflow-definition.js +4 -4
  203. package/dist/apis/workflow.cjs +8 -8
  204. package/dist/apis/workflow.d.cts +2 -2
  205. package/dist/apis/workflow.d.ts +2 -2
  206. package/dist/apis/workflow.js +4 -4
  207. package/dist/app-5VPBDFW2.cjs +4047 -0
  208. package/dist/app-VJW2KKWE.js +4047 -0
  209. package/dist/app-runtime-SSNHSBR7.cjs +5 -0
  210. package/dist/app-runtime-U7RGV7KT.js +5 -0
  211. package/dist/audit-logs-F2NHDISQ.js +312 -0
  212. package/dist/audit-logs-RFEMBILB.cjs +312 -0
  213. package/dist/audit-logs-runtime-4WMHPWNX.cjs +5 -0
  214. package/dist/audit-logs-runtime-76R6WRAB.js +5 -0
  215. package/dist/automation-HZASSUCS.cjs +4460 -0
  216. package/dist/automation-WEVRW77F.js +4460 -0
  217. package/dist/automation-runtime-L5UKEFLA.js +5 -0
  218. package/dist/automation-runtime-YBGGE5PL.cjs +5 -0
  219. package/dist/billing-3VZPNG6M.cjs +796 -0
  220. package/dist/billing-ASWY7HC3.js +796 -0
  221. package/dist/billing-runtime-C6BMGWCX.js +5 -0
  222. package/dist/billing-runtime-L4Y7MLM3.cjs +5 -0
  223. package/dist/blueprint-manifest-5TNVSDKC.cjs +3169 -0
  224. package/dist/blueprint-manifest-UGGYWGRZ.js +3169 -0
  225. package/dist/blueprint-manifest-runtime-2RTW5C52.js +5 -0
  226. package/dist/blueprint-manifest-runtime-AF3FIDVX.cjs +5 -0
  227. package/dist/chunk-NBYH536J.js +291 -0
  228. package/dist/chunk-WSZWUQDD.cjs +291 -0
  229. package/dist/consent-6SIH4NQS.cjs +342 -0
  230. package/dist/consent-7MNRAINV.js +342 -0
  231. package/dist/consent-runtime-KZ5D4XZU.cjs +5 -0
  232. package/dist/consent-runtime-OAPXBJH2.js +5 -0
  233. package/dist/customer-portal-L5DEQEGC.js +14142 -0
  234. package/dist/customer-portal-MXILX4KH.cjs +14142 -0
  235. package/dist/customer-portal-runtime-MRVZ7JR4.js +5 -0
  236. package/dist/customer-portal-runtime-VGK7RMLC.cjs +5 -0
  237. package/dist/dashboard-RKUQLIME.cjs +483 -0
  238. package/dist/dashboard-UDL26RGG.js +483 -0
  239. package/dist/dashboard-runtime-EXP2AM44.cjs +5 -0
  240. package/dist/dashboard-runtime-PSKSGLCF.js +5 -0
  241. package/dist/data-management-W5JQGGGH.js +925 -0
  242. package/dist/data-management-XFSRLFYA.cjs +925 -0
  243. package/dist/data-management-runtime-PAC7UFGT.cjs +5 -0
  244. package/dist/data-management-runtime-XZ347IUB.js +5 -0
  245. package/dist/deduplication-7RTGTLN5.cjs +193 -0
  246. package/dist/deduplication-RKLRTNZU.js +193 -0
  247. package/dist/deduplication-runtime-BBHG7MJW.cjs +5 -0
  248. package/dist/deduplication-runtime-DLGBF4RN.js +5 -0
  249. package/dist/design-AO6EGLHD.cjs +1352 -0
  250. package/dist/design-VLRA2WGV.js +1352 -0
  251. package/dist/design-runtime-3SKJA7QH.js +5 -0
  252. package/dist/design-runtime-Y3VGTQLP.cjs +5 -0
  253. package/dist/document-OVTR7RVH.cjs +744 -0
  254. package/dist/document-SEZ45XAO.js +744 -0
  255. package/dist/document-runtime-GFEBGNMS.js +5 -0
  256. package/dist/document-runtime-RG3F4R6O.cjs +5 -0
  257. package/dist/email-settings-QGCIUWLC.js +2427 -0
  258. package/dist/email-settings-SEGEKVMF.cjs +2427 -0
  259. package/dist/email-settings-runtime-NS7MU3RB.cjs +5 -0
  260. package/dist/email-settings-runtime-X7F3EPAB.js +5 -0
  261. package/dist/email-template-26SANLRD.cjs +1308 -0
  262. package/dist/email-template-346NDG4D.js +1308 -0
  263. package/dist/email-template-runtime-QBB64BJQ.js +5 -0
  264. package/dist/email-template-runtime-UI2FS4H5.cjs +5 -0
  265. package/dist/entity-HSCBRIOS.js +9411 -0
  266. package/dist/entity-UKAWTND4.cjs +9411 -0
  267. package/dist/entity-mapping-PK2XAARN.cjs +1506 -0
  268. package/dist/entity-mapping-UOGYYCZH.js +1506 -0
  269. package/dist/entity-mapping-runtime-734TTUA2.cjs +5 -0
  270. package/dist/entity-mapping-runtime-HCOJM6DV.js +5 -0
  271. package/dist/entity-runtime-QSFVEFJ6.js +5 -0
  272. package/dist/entity-runtime-XSAICIVR.cjs +5 -0
  273. package/dist/environments-5IS2ZJYQ.cjs +352 -0
  274. package/dist/environments-VCREW73K.js +352 -0
  275. package/dist/environments-runtime-BPR47PW7.js +5 -0
  276. package/dist/environments-runtime-L6TJCVW6.cjs +5 -0
  277. package/dist/erp-integration-735KQ73W.js +5295 -0
  278. package/dist/erp-integration-W7FZDJOB.cjs +5295 -0
  279. package/dist/erp-integration-runtime-FNJXDO75.js +5 -0
  280. package/dist/erp-integration-runtime-WXZIQCLJ.cjs +5 -0
  281. package/dist/event-catalog-MZYFJ23V.cjs +965 -0
  282. package/dist/event-catalog-ZUFXLY7B.js +965 -0
  283. package/dist/event-catalog-runtime-5HQSAJVX.cjs +5 -0
  284. package/dist/event-catalog-runtime-6FA3SCRI.js +5 -0
  285. package/dist/file-637CTR4Y.cjs +2744 -0
  286. package/dist/file-EJJBQEQI.js +2744 -0
  287. package/dist/file-runtime-B6AAGZQF.js +5 -0
  288. package/dist/file-runtime-SFZIKODF.cjs +5 -0
  289. package/dist/iban-ETTCKOHK.cjs +148 -0
  290. package/dist/iban-HXFDAF4I.js +148 -0
  291. package/dist/iban-runtime-EVXLFPPP.js +5 -0
  292. package/dist/iban-runtime-TUM5LVHO.cjs +5 -0
  293. package/dist/index.cjs +105 -100
  294. package/dist/index.d.cts +20 -4
  295. package/dist/index.d.ts +20 -4
  296. package/dist/index.js +56 -51
  297. package/dist/journey-KW3ZFQAL.js +2194 -0
  298. package/dist/journey-XIMSLSZC.cjs +2194 -0
  299. package/dist/journey-runtime-SPBL3F32.cjs +5 -0
  300. package/dist/journey-runtime-YXIAOTMD.js +5 -0
  301. package/dist/kanban-M4P7R5TM.cjs +890 -0
  302. package/dist/kanban-QXQEQIF4.js +890 -0
  303. package/dist/kanban-runtime-NHEUWTCG.cjs +5 -0
  304. package/dist/kanban-runtime-R6EWHBFS.js +5 -0
  305. package/dist/message-2VOVRXBB.cjs +2447 -0
  306. package/dist/message-M62W3KP2.js +2447 -0
  307. package/dist/message-runtime-ITR7MPKT.cjs +5 -0
  308. package/dist/message-runtime-YMKW2N3R.js +5 -0
  309. package/dist/metering-KEMILE75.cjs +2198 -0
  310. package/dist/metering-W3TA6ZUQ.js +2198 -0
  311. package/dist/metering-runtime-HAIWXZXJ.cjs +5 -0
  312. package/dist/metering-runtime-NJ6NEUMB.js +5 -0
  313. package/dist/notes-4LVCGLBE.js +1427 -0
  314. package/dist/notes-OBM5POWI.cjs +1427 -0
  315. package/dist/notes-runtime-CVNAVKPP.js +5 -0
  316. package/dist/notes-runtime-E3YYF74V.cjs +5 -0
  317. package/dist/notification-EEYPLPUV.cjs +1381 -0
  318. package/dist/notification-MJQGIBM7.js +1381 -0
  319. package/dist/notification-runtime-7QLZTPHG.cjs +5 -0
  320. package/dist/notification-runtime-KREP32YP.js +5 -0
  321. package/dist/organization-2UK7QZLQ.cjs +615 -0
  322. package/dist/organization-U5HPX627.js +615 -0
  323. package/dist/organization-runtime-LBCVCZ3W.cjs +5 -0
  324. package/dist/organization-runtime-P3WZ2BBU.js +5 -0
  325. package/dist/partner-directory-CG5CYJGB.cjs +1600 -0
  326. package/dist/partner-directory-XJ7KI7EX.js +1600 -0
  327. package/dist/partner-directory-runtime-QURDOO4Z.js +5 -0
  328. package/dist/partner-directory-runtime-RSONSDNJ.cjs +5 -0
  329. package/dist/permissions-SGPGANEP.js +1415 -0
  330. package/dist/permissions-WCOABHKQ.cjs +1415 -0
  331. package/dist/permissions-runtime-D74HOCVO.js +5 -0
  332. package/dist/permissions-runtime-O5LH7WOU.cjs +5 -0
  333. package/dist/pricing-3RNPCUR6.js +9362 -0
  334. package/dist/pricing-VYHPSVKM.cjs +9362 -0
  335. package/dist/pricing-runtime-6XNS4EOF.cjs +5 -0
  336. package/dist/pricing-runtime-JRR4FWFI.js +5 -0
  337. package/dist/pricing-tier-36WV4P4X.js +121 -0
  338. package/dist/pricing-tier-FKQPW2ND.cjs +121 -0
  339. package/dist/pricing-tier-runtime-32BCKJ7Y.cjs +5 -0
  340. package/dist/pricing-tier-runtime-LEGBNNLA.js +5 -0
  341. package/dist/purpose-JC2E7W3M.cjs +523 -0
  342. package/dist/purpose-QFQ4W255.js +523 -0
  343. package/dist/purpose-runtime-C6IGTUA6.cjs +5 -0
  344. package/dist/purpose-runtime-V5X5ESZV.js +5 -0
  345. package/dist/sandbox-CLZTN7IW.cjs +445 -0
  346. package/dist/sandbox-O2NWMZGJ.js +445 -0
  347. package/dist/sandbox-runtime-4MLOMFPK.js +5 -0
  348. package/dist/sandbox-runtime-GKEK3GQB.cjs +5 -0
  349. package/dist/submission-6FD67HIE.cjs +308 -0
  350. package/dist/submission-MWJU4L32.js +308 -0
  351. package/dist/submission-runtime-5FD4AQSD.cjs +5 -0
  352. package/dist/submission-runtime-JPHKPQ77.js +5 -0
  353. package/dist/targeting-4CQDSEKL.cjs +1369 -0
  354. package/dist/targeting-RB7LBQMX.js +1369 -0
  355. package/dist/targeting-runtime-6JFMP262.cjs +5 -0
  356. package/dist/targeting-runtime-M2VSTKFT.js +5 -0
  357. package/dist/template-variables-JYHE2VCH.cjs +1447 -0
  358. package/dist/template-variables-XLIW4GY6.js +1447 -0
  359. package/dist/template-variables-runtime-62U3ZY5P.js +5 -0
  360. package/dist/template-variables-runtime-LFOA32UM.cjs +5 -0
  361. package/dist/{types-BwBvJkY_.d.ts → types-ChU9Acbv.d.cts} +3 -0
  362. package/dist/{types-BwBvJkY_.d.cts → types-ChU9Acbv.d.ts} +3 -0
  363. package/dist/user-DKA6DDPX.cjs +2265 -0
  364. package/dist/user-O4JDAIRO.js +2265 -0
  365. package/dist/user-runtime-7O2HLFVQ.cjs +5 -0
  366. package/dist/user-runtime-U4HYUWJU.js +5 -0
  367. package/dist/validation-rules-AYCAOVDZ.cjs +1344 -0
  368. package/dist/validation-rules-GCI64B57.js +1344 -0
  369. package/dist/validation-rules-runtime-6MRCS5X2.js +5 -0
  370. package/dist/validation-rules-runtime-X7M3QE5I.cjs +5 -0
  371. package/dist/webhooks-L3FXPRKT.cjs +1431 -0
  372. package/dist/webhooks-XXLU2KWP.js +1431 -0
  373. package/dist/webhooks-runtime-EBM4M3SU.cjs +5 -0
  374. package/dist/webhooks-runtime-XCQYIGQK.js +5 -0
  375. package/dist/workflow-VLNZNE3S.js +3834 -0
  376. package/dist/workflow-YJHUCGVK.cjs +3834 -0
  377. package/dist/workflow-definition-7BA4H6W3.cjs +3100 -0
  378. package/dist/workflow-definition-VFYWBQQ3.js +3100 -0
  379. package/dist/workflow-definition-runtime-S7AZHOU7.js +5 -0
  380. package/dist/workflow-definition-runtime-VRND6VQR.cjs +5 -0
  381. package/dist/workflow-runtime-RLZO2OQB.js +5 -0
  382. package/dist/workflow-runtime-WCJ7NRTH.cjs +5 -0
  383. package/package.json +3 -2
  384. package/dist/chunk-3XEP56SV.cjs +0 -204
  385. package/dist/chunk-ULBEEHG4.js +0 -204
  386. /package/dist/{chunk-CPKBR34V.js → chunk-24T6CJTG.js} +0 -0
  387. /package/dist/{chunk-VQ7R36AC.js → chunk-265TE2OV.js} +0 -0
  388. /package/dist/{chunk-ZV6XYUXS.js → chunk-2BPBDRRO.js} +0 -0
  389. /package/dist/{chunk-KSXTBGIV.js → chunk-3XKBB5AE.js} +0 -0
  390. /package/dist/{chunk-GLO477NZ.js → chunk-3YSEO476.js} +0 -0
  391. /package/dist/{chunk-MKX4CKAB.cjs → chunk-46HU6232.cjs} +0 -0
  392. /package/dist/{chunk-JXBXDTFG.cjs → chunk-4G6LO3JY.cjs} +0 -0
  393. /package/dist/{chunk-Z4LUE424.cjs → chunk-4QCVVDTA.cjs} +0 -0
  394. /package/dist/{chunk-LQOLYXGQ.cjs → chunk-4W22EIRF.cjs} +0 -0
  395. /package/dist/{chunk-372VUPHN.js → chunk-4ZGZDE6D.js} +0 -0
  396. /package/dist/{chunk-IMT3IE5M.cjs → chunk-4ZMLRFDX.cjs} +0 -0
  397. /package/dist/{chunk-S7NDMDRX.js → chunk-5JPM6YUD.js} +0 -0
  398. /package/dist/{chunk-IS2VB342.js → chunk-5MFHAXBT.js} +0 -0
  399. /package/dist/{chunk-WOXXNKTE.js → chunk-5NKXJA43.js} +0 -0
  400. /package/dist/{chunk-S3ZNESMC.cjs → chunk-5WNEYQII.cjs} +0 -0
  401. /package/dist/{chunk-KA3TGFJP.js → chunk-6OYECNL2.js} +0 -0
  402. /package/dist/{chunk-T46LODOF.js → chunk-6UAS2VVG.js} +0 -0
  403. /package/dist/{chunk-PETLAONH.js → chunk-6VWCUZ5M.js} +0 -0
  404. /package/dist/{chunk-YZA5WZUS.js → chunk-75EI2Q64.js} +0 -0
  405. /package/dist/{chunk-2HOJWFQ4.js → chunk-75ZWZM3L.js} +0 -0
  406. /package/dist/{chunk-57QIBYDN.js → chunk-7IKQIVUS.js} +0 -0
  407. /package/dist/{chunk-DJKSULPK.js → chunk-A7AAVJGM.js} +0 -0
  408. /package/dist/{chunk-QLML3IP5.cjs → chunk-ANN2QTMY.cjs} +0 -0
  409. /package/dist/{chunk-KPGC2D6E.js → chunk-AUH6NP6Y.js} +0 -0
  410. /package/dist/{chunk-A6JOROUC.cjs → chunk-BLNXQAMX.cjs} +0 -0
  411. /package/dist/{chunk-LCIJ4TJ4.cjs → chunk-BM6NCHPL.cjs} +0 -0
  412. /package/dist/{chunk-XR4QF6KQ.cjs → chunk-BPHOGIQM.cjs} +0 -0
  413. /package/dist/{chunk-K62XK7KU.js → chunk-BTTPWE2P.js} +0 -0
  414. /package/dist/{chunk-E26ZO7QM.cjs → chunk-COQMJFAB.cjs} +0 -0
  415. /package/dist/{chunk-QVAJ5JP4.js → chunk-CSK5ZUTS.js} +0 -0
  416. /package/dist/{chunk-3ZZ57K3S.cjs → chunk-D32L2HMX.cjs} +0 -0
  417. /package/dist/{chunk-TIJWJVKZ.js → chunk-D7Q4JGN7.js} +0 -0
  418. /package/dist/{chunk-CWSHYFVZ.js → chunk-DZ3P537S.js} +0 -0
  419. /package/dist/{chunk-MSASBR2Y.js → chunk-E2WMGOM5.js} +0 -0
  420. /package/dist/{chunk-RXSS67VI.cjs → chunk-F5JVW2D5.cjs} +0 -0
  421. /package/dist/{chunk-XKI2OAYV.cjs → chunk-FARDEGPH.cjs} +0 -0
  422. /package/dist/{chunk-RWSA3LXE.cjs → chunk-G3VDRMOH.cjs} +0 -0
  423. /package/dist/{chunk-QDVPPRWI.cjs → chunk-G5FKTWUC.cjs} +0 -0
  424. /package/dist/{chunk-WMTYO5OX.cjs → chunk-GWKHOJGD.cjs} +0 -0
  425. /package/dist/{chunk-DNJ54L2G.js → chunk-H45V55VT.js} +0 -0
  426. /package/dist/{chunk-F472YLJG.cjs → chunk-HAZ3WP7V.cjs} +0 -0
  427. /package/dist/{chunk-NAWLLC3T.cjs → chunk-HHMXS5NC.cjs} +0 -0
  428. /package/dist/{chunk-DY2D2IW5.cjs → chunk-IGVVJMX7.cjs} +0 -0
  429. /package/dist/{chunk-KBOVBUBM.js → chunk-IJR3GZKC.js} +0 -0
  430. /package/dist/{chunk-73H6TVKN.js → chunk-IQOCHPWU.js} +0 -0
  431. /package/dist/{chunk-LSIWCIQV.js → chunk-JENQHXFI.js} +0 -0
  432. /package/dist/{chunk-G2REP2VZ.cjs → chunk-JICWF5VI.cjs} +0 -0
  433. /package/dist/{chunk-3HJEWWPS.cjs → chunk-JIUTCNTB.cjs} +0 -0
  434. /package/dist/{chunk-EBCHCYUO.js → chunk-JJWJLY42.js} +0 -0
  435. /package/dist/{chunk-SMGHAG5C.cjs → chunk-JXJC6WEW.cjs} +0 -0
  436. /package/dist/{chunk-HPYHWTTA.cjs → chunk-K2UZPY6U.cjs} +0 -0
  437. /package/dist/{chunk-VGTUK3QD.cjs → chunk-L66IX6GX.cjs} +0 -0
  438. /package/dist/{chunk-NLSZVGHK.cjs → chunk-LKRBFBFN.cjs} +0 -0
  439. /package/dist/{chunk-TLWCYLNA.js → chunk-LLZYRINH.js} +0 -0
  440. /package/dist/{chunk-4SWC43JO.cjs → chunk-M2SSGV7K.cjs} +0 -0
  441. /package/dist/{chunk-PVSS2WPM.cjs → chunk-M2UDF7PY.cjs} +0 -0
  442. /package/dist/{chunk-5SNJAD6F.cjs → chunk-M56QQHVA.cjs} +0 -0
  443. /package/dist/{chunk-QKERXNJJ.cjs → chunk-MB6NKETA.cjs} +0 -0
  444. /package/dist/{chunk-H4VSK4KF.js → chunk-MEUS7LCE.js} +0 -0
  445. /package/dist/{chunk-RD7E4OSJ.cjs → chunk-N5NFJW7Y.cjs} +0 -0
  446. /package/dist/{chunk-FXOX3X7E.cjs → chunk-NEVFKRDU.cjs} +0 -0
  447. /package/dist/{chunk-O4LRVGOY.js → chunk-O4JDWMYD.js} +0 -0
  448. /package/dist/{chunk-IH4CMOML.js → chunk-OEBV2PMV.js} +0 -0
  449. /package/dist/{chunk-VVVATFGK.cjs → chunk-OXJOO2YF.cjs} +0 -0
  450. /package/dist/{chunk-WOSSSFXB.js → chunk-PSQMDY3B.js} +0 -0
  451. /package/dist/{chunk-AJKH25H2.cjs → chunk-QOAWSFXA.cjs} +0 -0
  452. /package/dist/{chunk-UKKJMCNH.js → chunk-QT44OHHL.js} +0 -0
  453. /package/dist/{chunk-B3ZGAG7B.js → chunk-QTR3RH4N.js} +0 -0
  454. /package/dist/{chunk-3N67SSL3.js → chunk-RELUU5QZ.js} +0 -0
  455. /package/dist/{chunk-YYBIU5BQ.js → chunk-RJ3DWFSK.js} +0 -0
  456. /package/dist/{chunk-ARWMTXJV.cjs → chunk-RUZRPIHW.cjs} +0 -0
  457. /package/dist/{chunk-4VFQTSJQ.js → chunk-RW5JOHG7.js} +0 -0
  458. /package/dist/{chunk-EPAIOB5U.cjs → chunk-RXMOHUBP.cjs} +0 -0
  459. /package/dist/{chunk-MRZ7LGKZ.js → chunk-SBSIGQDU.js} +0 -0
  460. /package/dist/{chunk-TRJLYZHD.js → chunk-SITPUXIR.js} +0 -0
  461. /package/dist/{chunk-OGQKJTXF.js → chunk-SZMCMLOQ.js} +0 -0
  462. /package/dist/{chunk-VVQB5W7U.cjs → chunk-T67ZXTVG.cjs} +0 -0
  463. /package/dist/{chunk-HPSGM6QP.js → chunk-TME4YJNP.js} +0 -0
  464. /package/dist/{chunk-MRTAFRO7.js → chunk-TPA4HEAO.js} +0 -0
  465. /package/dist/{chunk-F376L6PP.cjs → chunk-TTNPMFXL.cjs} +0 -0
  466. /package/dist/{chunk-OG2DMGU6.cjs → chunk-TXDVGTQD.cjs} +0 -0
  467. /package/dist/{chunk-XZYZLSUO.cjs → chunk-UNCVJH6J.cjs} +0 -0
  468. /package/dist/{chunk-MHNSZ4HE.js → chunk-UUVJYJHD.js} +0 -0
  469. /package/dist/{chunk-C6UTZEHH.js → chunk-VSZEOCIE.js} +0 -0
  470. /package/dist/{chunk-EQZMT2HF.cjs → chunk-WQBBB6BN.cjs} +0 -0
  471. /package/dist/{chunk-BH5ZXK4J.cjs → chunk-WTMV77T2.cjs} +0 -0
  472. /package/dist/{chunk-BWFXLUK5.cjs → chunk-WWOAKRNG.cjs} +0 -0
  473. /package/dist/{chunk-ITX53XAZ.js → chunk-XSE4CFSM.js} +0 -0
  474. /package/dist/{chunk-SK3VYIZ6.cjs → chunk-YO4M3BZL.cjs} +0 -0
  475. /package/dist/{chunk-XYHTQ523.cjs → chunk-Z5TVWG3I.cjs} +0 -0
  476. /package/dist/{chunk-PXITFTJA.cjs → chunk-ZI33AJQ5.cjs} +0 -0
  477. /package/dist/{chunk-IP2WWEOU.js → chunk-ZKQ573B7.js} +0 -0
@@ -0,0 +1,1447 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/definitions/template-variables.json
4
+ var openapi = "3.0.2";
5
+ var info = {
6
+ title: "Template Variables API",
7
+ description: "This API provides dynamic template processing and variable management, seamless Handlebars template compilation, custom variable operations, and context-aware content generation across email, document templates and snippets.\n",
8
+ version: "1.0.0"
9
+ };
10
+ var servers = [
11
+ {
12
+ url: "https://template-variables-api.sls.epilot.io"
13
+ },
14
+ {
15
+ url: "https://template-variables-api.sls.epilot.io"
16
+ },
17
+ {
18
+ url: "https://template-variables-api.dev.sls.epilot.io",
19
+ description: "Production server"
20
+ }
21
+ ];
22
+ var tags = [
23
+ {
24
+ name: "Templates",
25
+ description: "Template-based Operations"
26
+ },
27
+ {
28
+ name: "Custom Variables",
29
+ description: "Custom Variables Operations"
30
+ }
31
+ ];
32
+ var security = [
33
+ {
34
+ EpilotAuth: []
35
+ },
36
+ {
37
+ EpilotOrg: []
38
+ }
39
+ ];
40
+ var paths = {
41
+ "/v1/template-variables/categories": {
42
+ get: {
43
+ operationId: "getCategories",
44
+ summary: "getCategories",
45
+ description: "Get all template variable categories",
46
+ tags: ["Templates"],
47
+ parameters: [
48
+ {
49
+ name: "lang",
50
+ in: "query",
51
+ schema: {
52
+ $ref: "#/components/schemas/Language"
53
+ }
54
+ }
55
+ ],
56
+ responses: {
57
+ "200": {
58
+ description: "ok",
59
+ content: {
60
+ "application/json": {
61
+ schema: {
62
+ type: "array",
63
+ items: {
64
+ $ref: "#/components/schemas/CategoryResult"
65
+ }
66
+ },
67
+ example: [
68
+ {
69
+ category: "contact",
70
+ description: "Contact"
71
+ },
72
+ {
73
+ category: "account",
74
+ description: "Account"
75
+ },
76
+ {
77
+ category: "organization",
78
+ description: "Organization"
79
+ }
80
+ ]
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "/v1/template-variables:search": {
88
+ post: {
89
+ operationId: "searchVariables",
90
+ summary: "searchVariables",
91
+ description: "Search variables",
92
+ tags: ["Templates"],
93
+ requestBody: {
94
+ content: {
95
+ "application/json": {
96
+ schema: {
97
+ type: "object",
98
+ properties: {
99
+ template_type: {
100
+ $ref: "#/components/schemas/TemplateType"
101
+ },
102
+ query: {
103
+ type: "string",
104
+ description: "Search string",
105
+ example: "logo"
106
+ },
107
+ from: {
108
+ type: "integer",
109
+ default: 0
110
+ },
111
+ size: {
112
+ type: "integer",
113
+ default: 25
114
+ },
115
+ lang: {
116
+ $ref: "#/components/schemas/Language"
117
+ },
118
+ entity_schemas: {
119
+ type: "array",
120
+ items: {
121
+ type: "string",
122
+ description: "Schema slug",
123
+ example: "contact"
124
+ }
125
+ }
126
+ },
127
+ required: ["template_type", "query"]
128
+ }
129
+ }
130
+ }
131
+ },
132
+ responses: {
133
+ "200": {
134
+ description: "ok",
135
+ content: {
136
+ "application/json": {
137
+ schema: {
138
+ type: "array",
139
+ items: {
140
+ $ref: "#/components/schemas/VariableResult"
141
+ }
142
+ },
143
+ example: [
144
+ {
145
+ group: "Personal Details",
146
+ insert: "{{account.name}}",
147
+ description: "Company name",
148
+ type: "simple"
149
+ },
150
+ {
151
+ group: "Personal Details",
152
+ insert: "{{account.tax_id}}",
153
+ description: "Tax ID",
154
+ type: "simple"
155
+ },
156
+ {
157
+ group: "Address details",
158
+ qrdata: "{{account.address_details}}",
159
+ description: "Address Details",
160
+ type: "partial"
161
+ },
162
+ {
163
+ group: "Address Details",
164
+ insert: "{{account.address.street}}",
165
+ description: "Address - Street name",
166
+ type: "simple"
167
+ },
168
+ {
169
+ group: "Address Details",
170
+ insert: "{{account.address.street_number}}",
171
+ description: "Address - Street number",
172
+ type: "simple"
173
+ },
174
+ {
175
+ group: "Address Details",
176
+ insert: "{{account.address.postal_code}}",
177
+ description: "Address - Postal code",
178
+ type: "simple"
179
+ },
180
+ {
181
+ group: "Address Details",
182
+ insert: "{{account.address.city}}",
183
+ description: "Address - City",
184
+ type: "simple"
185
+ }
186
+ ]
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
192
+ },
193
+ "/v1/template-variables:context": {
194
+ post: {
195
+ operationId: "getVariableContext",
196
+ summary: "getVariableContext",
197
+ description: "Get full variable context\n\nCalls Entity API, User API, Brand API and others to construct full context object used for template variable replace\n",
198
+ tags: ["Templates"],
199
+ requestBody: {
200
+ content: {
201
+ "application/json": {
202
+ schema: {
203
+ type: "object",
204
+ properties: {
205
+ parameters: {
206
+ $ref: "#/components/schemas/VariableParameters"
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ },
213
+ responses: {
214
+ "200": {
215
+ description: "ok",
216
+ content: {
217
+ "application/json": {
218
+ schema: {
219
+ $ref: "#/components/schemas/VariableContext"
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
226
+ },
227
+ "/v1/template-variables:replace": {
228
+ post: {
229
+ operationId: "replaceTemplates",
230
+ summary: "replaceTemplates",
231
+ description: "Replace variables in handlebars templates\n\nTakes in an array of input templates and outputs the output text with replaced variables\n",
232
+ tags: ["Templates"],
233
+ requestBody: {
234
+ content: {
235
+ "application/json": {
236
+ schema: {
237
+ type: "object",
238
+ properties: {
239
+ inputs: {
240
+ type: "array",
241
+ items: {
242
+ type: "string",
243
+ example: "Hello, {{contact.first_name}}!\n\n{{{brand.signature}}}\n"
244
+ }
245
+ },
246
+ parameters: {
247
+ $ref: "#/components/schemas/VariableParameters"
248
+ }
249
+ }
250
+ }
251
+ }
252
+ }
253
+ },
254
+ responses: {
255
+ "200": {
256
+ description: "ok",
257
+ content: {
258
+ "application/json": {
259
+ schema: {
260
+ $ref: "#/components/schemas/ReplacementOutput"
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ },
268
+ "/v2/template:replace": {
269
+ post: {
270
+ operationId: "replaceTemplatesV2",
271
+ summary: "Replace variables in templates (V2)",
272
+ description: "Replace variables in handlebars templates with raw value preservation\n\nV2 returns parsed outputs that preserve the original data types (arrays, objects, strings)\ninstead of stringifying always. Variables with strings mixed with other variables will be returned in the stringified format. \nAlongside the parsed outputs for every single variable.\n\nTakes in an array of input templates and outputs an object mapping each input and variable\nto their rendered values with type preservation.\n",
273
+ tags: ["Templates"],
274
+ requestBody: {
275
+ content: {
276
+ "application/json": {
277
+ schema: {
278
+ type: "object",
279
+ properties: {
280
+ inputs: {
281
+ type: "array",
282
+ items: {
283
+ type: "string",
284
+ example: "Hello, {{contact.first_name}}!\n"
285
+ }
286
+ },
287
+ parameters: {
288
+ $ref: "#/components/schemas/VariableParameters"
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }
294
+ },
295
+ responses: {
296
+ "200": {
297
+ description: "ok",
298
+ content: {
299
+ "application/json": {
300
+ schema: {
301
+ $ref: "#/components/schemas/ReplacementOutputV2"
302
+ }
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ },
309
+ "/v1/custom-variables": {
310
+ get: {
311
+ operationId: "getCustomVariables",
312
+ summary: "Get custom variables",
313
+ description: "Get all custom variables of organization",
314
+ tags: ["Custom Variables"],
315
+ responses: {
316
+ "200": {
317
+ description: "Success",
318
+ content: {
319
+ "application/json": {
320
+ schema: {
321
+ type: "array",
322
+ items: {
323
+ $ref: "#/components/schemas/CustomVariable"
324
+ }
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "403": {
330
+ description: "Forbidden"
331
+ }
332
+ }
333
+ },
334
+ post: {
335
+ operationId: "createCustomVariable",
336
+ summary: "Create custom variable",
337
+ description: "Create custom variable",
338
+ tags: ["Custom Variables"],
339
+ requestBody: {
340
+ content: {
341
+ "application/json": {
342
+ schema: {
343
+ $ref: "#/components/schemas/CustomVariable"
344
+ }
345
+ }
346
+ }
347
+ },
348
+ responses: {
349
+ "201": {
350
+ description: "Success",
351
+ content: {
352
+ "application/json": {
353
+ schema: {
354
+ $ref: "#/components/schemas/CustomVariable"
355
+ }
356
+ }
357
+ }
358
+ },
359
+ "403": {
360
+ description: "Forbidden"
361
+ },
362
+ "409": {
363
+ description: "Conflict - Custom variable with the same key already exists"
364
+ }
365
+ }
366
+ }
367
+ },
368
+ "/v1/custom-variables:search": {
369
+ post: {
370
+ operationId: "searchCustomVariables",
371
+ summary: "searchCustomVariables",
372
+ description: "Search custom variables",
373
+ tags: ["Custom Variables"],
374
+ requestBody: {
375
+ content: {
376
+ "application/json": {
377
+ schema: {
378
+ $ref: "#/components/schemas/CustomVariablesSearchParams"
379
+ }
380
+ }
381
+ }
382
+ },
383
+ responses: {
384
+ "200": {
385
+ description: "Success",
386
+ content: {
387
+ "application/json": {
388
+ schema: {
389
+ type: "object",
390
+ properties: {
391
+ results: {
392
+ type: "array",
393
+ items: {
394
+ $ref: "#/components/schemas/CustomVariable"
395
+ }
396
+ },
397
+ hits: {
398
+ type: "integer",
399
+ description: "Total number of results",
400
+ example: 100
401
+ }
402
+ }
403
+ }
404
+ }
405
+ }
406
+ },
407
+ "403": {
408
+ description: "Forbidden"
409
+ }
410
+ }
411
+ }
412
+ },
413
+ "/v1/custom-variables/{id}": {
414
+ put: {
415
+ operationId: "updateCustomVariable",
416
+ summary: "Update custom variable",
417
+ description: "Update custom variable",
418
+ tags: ["Custom Variables"],
419
+ parameters: [
420
+ {
421
+ name: "id",
422
+ description: "Custom variable ID",
423
+ in: "path",
424
+ required: true,
425
+ schema: {
426
+ type: "string"
427
+ },
428
+ example: "rbse777b-3cf8-4bff-bb0c-253fd1123250"
429
+ }
430
+ ],
431
+ requestBody: {
432
+ content: {
433
+ "application/json": {
434
+ schema: {
435
+ $ref: "#/components/schemas/CustomVariable"
436
+ }
437
+ }
438
+ }
439
+ },
440
+ responses: {
441
+ "200": {
442
+ description: "Success",
443
+ content: {
444
+ "application/json": {
445
+ schema: {
446
+ $ref: "#/components/schemas/CustomVariable"
447
+ }
448
+ }
449
+ }
450
+ },
451
+ "403": {
452
+ description: "Forbidden"
453
+ },
454
+ "409": {
455
+ description: "Conflict - Custom variable with the same key already exists"
456
+ }
457
+ }
458
+ },
459
+ get: {
460
+ operationId: "getCustomVariable",
461
+ summary: "Get custom variable",
462
+ description: "Get custom variable",
463
+ tags: ["Custom Variables"],
464
+ parameters: [
465
+ {
466
+ name: "id",
467
+ description: "Custom vairable ID",
468
+ in: "path",
469
+ required: true,
470
+ schema: {
471
+ type: "string"
472
+ },
473
+ example: "rbse777b-3cf8-4bff-bb0c-253fd1123250"
474
+ }
475
+ ],
476
+ responses: {
477
+ "200": {
478
+ description: "Success",
479
+ content: {
480
+ "application/json": {
481
+ schema: {
482
+ $ref: "#/components/schemas/CustomVariable"
483
+ }
484
+ }
485
+ }
486
+ },
487
+ "403": {
488
+ description: "Forbidden"
489
+ },
490
+ "404": {
491
+ description: "Not found"
492
+ }
493
+ }
494
+ },
495
+ delete: {
496
+ operationId: "deleteCustomVariable",
497
+ summary: "Delete custom variable",
498
+ description: "Immediately and permanently deletes a custom variable",
499
+ tags: ["Custom Variables"],
500
+ parameters: [
501
+ {
502
+ name: "id",
503
+ description: "Custom vairable ID",
504
+ in: "path",
505
+ required: true,
506
+ schema: {
507
+ type: "string"
508
+ },
509
+ example: "rbse777b-3cf8-4bff-bb0c-253fd1123250"
510
+ }
511
+ ],
512
+ responses: {
513
+ "204": {
514
+ description: "Success"
515
+ },
516
+ "403": {
517
+ description: "Forbidden"
518
+ }
519
+ }
520
+ }
521
+ },
522
+ "/v1/custom-variables/order-table-blueprint": {
523
+ get: {
524
+ operationId: "getBluePrintTableConfig",
525
+ summary: "Get default table config",
526
+ description: "Get default table config",
527
+ tags: ["Custom Variables"],
528
+ responses: {
529
+ "200": {
530
+ description: "Success",
531
+ content: {
532
+ "application/json": {
533
+ schema: {
534
+ $ref: "#/components/schemas/CustomVariable"
535
+ }
536
+ }
537
+ }
538
+ },
539
+ "403": {
540
+ description: "Forbidden"
541
+ }
542
+ }
543
+ }
544
+ }
545
+ };
546
+ var components = {
547
+ securitySchemes: {
548
+ EpilotAuth: {
549
+ type: "http",
550
+ scheme: "bearer",
551
+ description: "Authorization header with epilot OAuth2 bearer token",
552
+ bearerFormat: "JWT"
553
+ },
554
+ EpilotOrg: {
555
+ description: "Overrides the target organization",
556
+ name: "x-ivy-org-id",
557
+ in: "header",
558
+ type: "apiKey"
559
+ }
560
+ },
561
+ schemas: {
562
+ Language: {
563
+ type: "string",
564
+ description: "2-letter language code (ISO 639-1)",
565
+ default: "de"
566
+ },
567
+ VariableParameters: {
568
+ type: "object",
569
+ properties: {
570
+ template_type: {
571
+ $ref: "#/components/schemas/TemplateType"
572
+ },
573
+ language: {
574
+ $ref: "#/components/schemas/Language"
575
+ },
576
+ main_entity_id: {
577
+ type: "string",
578
+ format: "uuid",
579
+ description: "The main entity ID. Use main entity in order to use the variable without schema slug prefix - or just pass directly to other object ID.",
580
+ example: "63753437-c9e2-4e83-82bb-b1c666514561"
581
+ },
582
+ brand_id: {
583
+ type: "number",
584
+ nullable: true,
585
+ description: "Brand ID",
586
+ example: 123451
587
+ },
588
+ user_id: {
589
+ type: "string",
590
+ nullable: true,
591
+ description: "User ID",
592
+ example: "50001"
593
+ },
594
+ user_org_id: {
595
+ type: "string",
596
+ nullable: true,
597
+ description: "Organization ID of the user",
598
+ example: "729224"
599
+ },
600
+ custom_variables: {
601
+ type: "array",
602
+ description: "Custom variables with specified values form other services.",
603
+ items: {
604
+ $ref: "#/components/schemas/ExternalCustomVariable"
605
+ }
606
+ },
607
+ context_data: {
608
+ type: "object",
609
+ description: "If context data is available, this data will be used for variable replace."
610
+ },
611
+ template_name: {
612
+ type: "string",
613
+ description: "The name of email template"
614
+ },
615
+ template_tags: {
616
+ type: "array",
617
+ description: "The tags of email template",
618
+ items: {
619
+ type: "string"
620
+ }
621
+ },
622
+ variables_version: {
623
+ type: "string",
624
+ description: "The version of the variables syntax supported. Default is 1.0",
625
+ example: "2"
626
+ }
627
+ },
628
+ required: ["template_type"]
629
+ },
630
+ ReplacementOutput: {
631
+ type: "object",
632
+ properties: {
633
+ outputs: {
634
+ type: "array",
635
+ items: {
636
+ type: "string"
637
+ },
638
+ example: [
639
+ '[Brand Name GmbH] Order confirmation\nHello Customer Name\n\n<span color="#ccc">Brand Name GmbH</span>\n<img src="https://logobucket.s3.amazonaws.com/brandlogo.png" alt="Brand Name"/>\n<a href="https://company.com/imprint">imprint</a>\n'
640
+ ]
641
+ }
642
+ }
643
+ },
644
+ ReplacementOutputV2: {
645
+ type: "object",
646
+ properties: {
647
+ outputs: {
648
+ type: "object",
649
+ description: 'Dictionary mapping input templates and variable names to their resolved output values.\nValues preserve their original types (string, array, object) instead of being stringified.\n\nKeys include:\n- Original input templates (e.g., "Hello {{name}}")\n- Individual variables found in templates (e.g., "{{name}}", "{{product_images[*].public_url}}")\n',
650
+ additionalProperties: {
651
+ anyOf: [
652
+ {
653
+ type: "string"
654
+ },
655
+ {
656
+ type: "number"
657
+ },
658
+ {
659
+ type: "boolean"
660
+ },
661
+ {
662
+ type: "array",
663
+ items: {}
664
+ },
665
+ {
666
+ type: "object",
667
+ additionalProperties: {}
668
+ }
669
+ ]
670
+ },
671
+ example: {
672
+ "Hello {{first_name}}": "Hello John",
673
+ "{{first_name}}": "John",
674
+ "{{product_images[*].public_url}}": [
675
+ "http://myimage.server.com/img1.png",
676
+ "http://myimage.server.com/img2.png"
677
+ ]
678
+ }
679
+ }
680
+ }
681
+ },
682
+ VariableResult: {
683
+ type: "object",
684
+ properties: {
685
+ type: {
686
+ type: "string",
687
+ enum: ["simple", "partial"]
688
+ },
689
+ qrdata: {
690
+ type: "string",
691
+ description: "Payload for the QR data"
692
+ },
693
+ group: {
694
+ type: "string",
695
+ description: "Variable group"
696
+ },
697
+ insert: {
698
+ type: "string",
699
+ description: "The value which is used to insert to template"
700
+ },
701
+ description: {
702
+ type: "string",
703
+ description: "Variable description"
704
+ }
705
+ }
706
+ },
707
+ CustomVariablesSearchParams: {
708
+ type: "object",
709
+ properties: {
710
+ type: {
711
+ type: "string",
712
+ description: "Variable type",
713
+ enum: ["order_table", "custom", "journey_link", "snippet"]
714
+ },
715
+ tags: {
716
+ type: "array",
717
+ description: "The tags of custom variable",
718
+ items: {
719
+ type: "string"
720
+ }
721
+ },
722
+ query: {
723
+ type: "string",
724
+ description: "Search string",
725
+ example: "logo"
726
+ },
727
+ from: {
728
+ type: "integer",
729
+ default: 0
730
+ },
731
+ size: {
732
+ type: "integer",
733
+ default: 25
734
+ },
735
+ sort_by: {
736
+ type: "string",
737
+ description: "Sort by field",
738
+ example: "created_at, name, key"
739
+ },
740
+ fields: {
741
+ type: "array",
742
+ description: "Fields to return",
743
+ items: {
744
+ type: "string"
745
+ }
746
+ }
747
+ }
748
+ },
749
+ VariableContext: {
750
+ type: "object",
751
+ properties: {
752
+ unsubscribe_url: {
753
+ type: "string",
754
+ example: "https://consent.sls.epilot.io/v1/unsubscribe?token=abc123"
755
+ },
756
+ main: {
757
+ type: "object",
758
+ additionalProperties: true,
759
+ example: {
760
+ _id: "03be777b-3cf8-4bff-bb0c-253fd1128479",
761
+ _title: "Example Customer",
762
+ customer_number: 123,
763
+ first_name: "Example",
764
+ last_name: "Customer",
765
+ title: "Prof.",
766
+ salutation: "Ms. / Mrs.",
767
+ birthdate: "2018-03-03",
768
+ email: [
769
+ {
770
+ email: "contact.primary@domain.com",
771
+ _tags: ["primary"]
772
+ },
773
+ {
774
+ email: "sale@domain.com"
775
+ }
776
+ ],
777
+ phone: [
778
+ {
779
+ phone: "+49123456789",
780
+ _tags: ["primary", "support"]
781
+ },
782
+ {
783
+ phone: "+49504305025"
784
+ }
785
+ ],
786
+ address: [
787
+ {
788
+ _tags: ["primary", "delivery"],
789
+ country: "Germany",
790
+ city: "K\xF6ln",
791
+ postal_code: "50825",
792
+ street: "Im Mediapark",
793
+ street_number: "8a",
794
+ additional_info: "11th floor"
795
+ },
796
+ {
797
+ _tags: ["billing"],
798
+ country: "Finland",
799
+ city: "K\xF6ln",
800
+ postal_code: "50670",
801
+ street: "Im Mediapark",
802
+ street_number: "8a",
803
+ additional_info: ""
804
+ }
805
+ ],
806
+ account: [
807
+ {
808
+ status: "Active",
809
+ _id: "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
810
+ tax_id: "123abc",
811
+ name: "name",
812
+ email: [
813
+ {
814
+ email: "account.primary@domain.com",
815
+ _tags: ["primary"]
816
+ },
817
+ {
818
+ email: "account.sale@domain.com"
819
+ }
820
+ ],
821
+ phone: [
822
+ {
823
+ phone: "+49123456789",
824
+ _tags: ["primary", "support"]
825
+ },
826
+ {
827
+ phone: "+49504305025"
828
+ }
829
+ ],
830
+ address: [
831
+ {
832
+ _tags: ["primary", "delivery"],
833
+ country: "Germany",
834
+ city: "K\xF6ln",
835
+ postal_code: "50825",
836
+ street: "Im Mediapark",
837
+ street_number: "8a",
838
+ additional_info: "11th floor"
839
+ }
840
+ ]
841
+ }
842
+ ]
843
+ }
844
+ },
845
+ contact: {
846
+ type: "object",
847
+ additionalProperties: true,
848
+ example: {
849
+ _id: "03be777b-3cf8-4bff-bb0c-253fd1128479",
850
+ _title: "Example Customer",
851
+ customer_number: 123,
852
+ first_name: "Example",
853
+ last_name: "Customer",
854
+ title: "Prof.",
855
+ salutation: "Ms. / Mrs.",
856
+ birthdate: "2018-03-03",
857
+ email: [
858
+ {
859
+ email: "contact.primary@domain.com",
860
+ _tags: ["primary"]
861
+ },
862
+ {
863
+ email: "sale@domain.com"
864
+ }
865
+ ],
866
+ phone: [
867
+ {
868
+ phone: "+49123456789",
869
+ _tags: ["primary", "support"]
870
+ },
871
+ {
872
+ phone: "+49504305025"
873
+ }
874
+ ],
875
+ address: [
876
+ {
877
+ _tags: ["primary", "delivery"],
878
+ country: "Germany",
879
+ city: "K\xF6ln",
880
+ postal_code: "50825",
881
+ street: "Im Mediapark",
882
+ street_number: "8a",
883
+ additional_info: "11th floor"
884
+ },
885
+ {
886
+ _tags: ["billing"],
887
+ country: "Finland",
888
+ city: "K\xF6ln",
889
+ postal_code: "50670",
890
+ street: "Im Mediapark",
891
+ street_number: "8a",
892
+ additional_info: ""
893
+ }
894
+ ],
895
+ account: [
896
+ {
897
+ status: "Active",
898
+ _id: "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
899
+ tax_id: "123abc",
900
+ name: "name",
901
+ email: [
902
+ {
903
+ email: "account.primary@domain.com",
904
+ _tags: ["primary"]
905
+ },
906
+ {
907
+ email: "account.sale@domain.com"
908
+ }
909
+ ],
910
+ phone: [
911
+ {
912
+ phone: "+49123456789",
913
+ _tags: ["primary", "support"]
914
+ },
915
+ {
916
+ phone: "+49504305025"
917
+ }
918
+ ],
919
+ address: [
920
+ {
921
+ _tags: ["primary", "delivery"],
922
+ country: "Germany",
923
+ city: "K\xF6lnSS",
924
+ postal_code: "50825",
925
+ street: "Im Mediapark",
926
+ street_number: "8a",
927
+ additional_info: "11th floor"
928
+ }
929
+ ]
930
+ }
931
+ ]
932
+ }
933
+ },
934
+ brand: {
935
+ type: "object",
936
+ additionalProperties: true,
937
+ example: {
938
+ id: 123453,
939
+ name: "Brand name",
940
+ signature: "Signature"
941
+ }
942
+ }
943
+ }
944
+ },
945
+ TemplateType: {
946
+ type: "string",
947
+ enum: ["email", "document"]
948
+ },
949
+ CategoryResult: {
950
+ type: "object",
951
+ properties: {
952
+ category: {
953
+ type: "string",
954
+ example: "contact"
955
+ },
956
+ description: {
957
+ type: "string",
958
+ example: "Contact"
959
+ }
960
+ }
961
+ },
962
+ ExternalCustomVariable: {
963
+ type: "object",
964
+ properties: {
965
+ variable: {
966
+ type: "string",
967
+ example: "{{craftsmen.invitation_link}}"
968
+ },
969
+ value: {
970
+ type: "string",
971
+ example: "https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19"
972
+ }
973
+ }
974
+ },
975
+ CustomVariable: {
976
+ type: "object",
977
+ properties: {
978
+ id: {
979
+ type: "string",
980
+ description: "ID",
981
+ example: "rbse777b-3cf8-4bff-bb0c-253fd1123250"
982
+ },
983
+ type: {
984
+ type: "string",
985
+ description: "Custom variable type",
986
+ enum: ["order_table", "custom", "journey_link", "snippet"]
987
+ },
988
+ name: {
989
+ type: "string",
990
+ description: "Custom variable name",
991
+ example: "My Custom table"
992
+ },
993
+ key: {
994
+ type: "string",
995
+ description: "The key which is used for Handlebar variable syntax {{key}}",
996
+ example: "my_custom_table"
997
+ },
998
+ _tags: {
999
+ type: "array",
1000
+ description: "The tags of custom variable",
1001
+ items: {
1002
+ type: "string"
1003
+ }
1004
+ },
1005
+ helper_params: {
1006
+ type: "array",
1007
+ description: "The helper function parameter's names",
1008
+ items: {
1009
+ type: "string"
1010
+ },
1011
+ example: ["param1", "param2"]
1012
+ },
1013
+ helper_logic: {
1014
+ type: "string",
1015
+ description: "The helper function logic",
1016
+ example: "return param1 * param2;"
1017
+ },
1018
+ config: {
1019
+ type: "object",
1020
+ description: "Variable configuration",
1021
+ example: {
1022
+ header: null,
1023
+ style: {
1024
+ color: "#222",
1025
+ background: "#fff",
1026
+ "font-size": "16px",
1027
+ "font-family": "",
1028
+ "padding-bottom": "4px",
1029
+ "font-weight": "bold",
1030
+ border: "none !important",
1031
+ "text-align": "left"
1032
+ },
1033
+ columns: [
1034
+ {
1035
+ id: "item",
1036
+ index: 0,
1037
+ label: {
1038
+ en: "Item",
1039
+ de: "Produkt"
1040
+ },
1041
+ enable: true,
1042
+ draggable: true,
1043
+ style: {
1044
+ "padding-left": "10px",
1045
+ "max-width": "30%"
1046
+ }
1047
+ },
1048
+ {
1049
+ id: "quantity",
1050
+ index: 1,
1051
+ label: {
1052
+ en: "Quanity",
1053
+ de: "Menge"
1054
+ },
1055
+ enable: true,
1056
+ draggable: true,
1057
+ style: {
1058
+ "min-width": "60px",
1059
+ width: "30%"
1060
+ }
1061
+ },
1062
+ {
1063
+ id: "tax",
1064
+ index: 2,
1065
+ label: {
1066
+ en: "Tax Rate",
1067
+ de: "Steuerrate"
1068
+ },
1069
+ enable: true,
1070
+ draggable: true,
1071
+ style: {
1072
+ "min-width": "60px",
1073
+ width: "30%"
1074
+ }
1075
+ },
1076
+ {
1077
+ id: "unit_amount",
1078
+ index: 3,
1079
+ label: {
1080
+ en: "Unit Net Price",
1081
+ de: "Nettopreis"
1082
+ },
1083
+ enable: true,
1084
+ draggable: true,
1085
+ style: {
1086
+ "min-width": "60px",
1087
+ width: "30%"
1088
+ }
1089
+ },
1090
+ {
1091
+ id: "net_total",
1092
+ index: 4,
1093
+ label: {
1094
+ en: "Net total",
1095
+ de: "Nettosumme"
1096
+ },
1097
+ enable: "true,",
1098
+ draggable: true,
1099
+ style: {
1100
+ "min-width": "60px",
1101
+ width: "30%"
1102
+ }
1103
+ },
1104
+ {
1105
+ id: "gross_total",
1106
+ index: 5,
1107
+ label: {
1108
+ en: "Total",
1109
+ de: "Gesamt"
1110
+ },
1111
+ enable: true,
1112
+ draggable: true,
1113
+ style: {
1114
+ "min-width": "60px",
1115
+ width: "30%"
1116
+ }
1117
+ }
1118
+ ],
1119
+ body: {
1120
+ product_name: {
1121
+ parent_column: "item",
1122
+ enable: true,
1123
+ style: {
1124
+ color: "#222",
1125
+ background: "#fff",
1126
+ "font-size": "14px",
1127
+ "font-family": "",
1128
+ "font-weight": "bold",
1129
+ "font-style": "normal",
1130
+ "padding-top": "16px",
1131
+ "padding-bottom": "8px",
1132
+ border: "none !important",
1133
+ "vertical-align": "top",
1134
+ "text-align": "left",
1135
+ "max-width": "30%",
1136
+ "padding-left": "10px"
1137
+ }
1138
+ },
1139
+ price_description: {
1140
+ parent_column: "item",
1141
+ enable: true,
1142
+ style: {
1143
+ color: "#222",
1144
+ background: "#fff",
1145
+ "font-size": "12px",
1146
+ "font-family": "",
1147
+ "font-weight": "normal",
1148
+ "font-style": "normal",
1149
+ "text-align": "left",
1150
+ "max-width": "30%"
1151
+ }
1152
+ },
1153
+ product_description: {
1154
+ parent_column: "item",
1155
+ enable: true,
1156
+ style: {
1157
+ color: "#222",
1158
+ background: "#fff",
1159
+ "font-size": "12px",
1160
+ "font-family": "",
1161
+ "font-weight": "normal",
1162
+ "font-style": "normal",
1163
+ "text-align": "left",
1164
+ "max-width": "30%"
1165
+ }
1166
+ },
1167
+ quantity: {
1168
+ enable: true,
1169
+ style: {
1170
+ color: "#222",
1171
+ background: "#fff",
1172
+ "font-size": "12px",
1173
+ "font-family": "",
1174
+ "font-weight": "normal",
1175
+ "font-style": "normal",
1176
+ "text-align": "left",
1177
+ "max-width": "30%"
1178
+ }
1179
+ },
1180
+ tax: {
1181
+ enable: true,
1182
+ style: {
1183
+ color: "#222",
1184
+ background: "#fff",
1185
+ "font-size": "12px",
1186
+ "font-family": "",
1187
+ "font-weight": "normal",
1188
+ "font-style": "normal",
1189
+ "text-align": "left",
1190
+ "max-width": "30%"
1191
+ }
1192
+ },
1193
+ unit_amount: {
1194
+ enable: true,
1195
+ style: {
1196
+ color: "#222",
1197
+ background: "#fff",
1198
+ "font-size": "12px",
1199
+ "font-family": "",
1200
+ "font-weight": "normal",
1201
+ "font-style": "normal",
1202
+ "text-align": "left",
1203
+ "max-width": "30%"
1204
+ }
1205
+ },
1206
+ net_total: {
1207
+ enable: true,
1208
+ style: {
1209
+ color: "#222",
1210
+ background: "#fff",
1211
+ "font-size": "12px",
1212
+ "font-family": "",
1213
+ "font-weight": "normal",
1214
+ "font-style": "normal",
1215
+ "text-align": "left",
1216
+ "max-width": "30%"
1217
+ }
1218
+ },
1219
+ gross_total: {
1220
+ enable: true,
1221
+ style: {
1222
+ color: "#222",
1223
+ background: "#fff",
1224
+ "font-size": "12px",
1225
+ "font-family": "",
1226
+ "font-weight": "normal",
1227
+ "font-style": "normal",
1228
+ "text-align": "left",
1229
+ "max-width": "30%"
1230
+ }
1231
+ }
1232
+ },
1233
+ footer: {
1234
+ payment_type: {
1235
+ enable: true,
1236
+ style: {
1237
+ color: "#222",
1238
+ background: "#fff",
1239
+ "font-size": "12px",
1240
+ "font-family": "",
1241
+ "font-weight": "normal",
1242
+ "font-style": "normal",
1243
+ "text-align": "left",
1244
+ "max-width": "30%"
1245
+ }
1246
+ },
1247
+ net_total: {
1248
+ enable: true,
1249
+ style: {
1250
+ color: "#222",
1251
+ background: "#fff",
1252
+ "font-size": "12px",
1253
+ "font-family": "",
1254
+ "font-weight": "normal",
1255
+ "font-style": "normal",
1256
+ "text-align": "left",
1257
+ "max-width": "30%"
1258
+ }
1259
+ },
1260
+ amount_tax: {
1261
+ enable: true,
1262
+ style: {
1263
+ color: "#222",
1264
+ background: "#fff",
1265
+ "font-size": "12px",
1266
+ "font-family": "",
1267
+ "font-weight": "normal",
1268
+ "font-style": "normal",
1269
+ "text-align": "left",
1270
+ "max-width": "30%"
1271
+ }
1272
+ },
1273
+ gross_total: {
1274
+ enable: true,
1275
+ style: {
1276
+ color: "#222",
1277
+ background: "#fff",
1278
+ "font-size": "12px",
1279
+ "font-family": "",
1280
+ "font-weight": "normal",
1281
+ "font-style": "normal",
1282
+ "text-align": "left",
1283
+ "max-width": "30%"
1284
+ }
1285
+ }
1286
+ }
1287
+ }
1288
+ },
1289
+ template: {
1290
+ type: "string",
1291
+ description: "Handlebar template that used to generate the variable content",
1292
+ example: `<table style="table-layout: fixed;width: 100%;max-width: 1000px;border-collapse: collapse;">
1293
+ <thead>
1294
+ <tr style="height: 48px;border-bottom: 1px solid #D5E1ED;">
1295
+ {{#each table_config.header.columns as |column|}}
1296
+ {{#if column.enable}}
1297
+ <th style="{{makeStyle @root.table_config.header.style}};{{makeStyle column.style}};">{{column._label}}</th>
1298
+ {{/if}}
1299
+ {{/each}}
1300
+ </tr>
1301
+ </thead>
1302
+ <tbody style="vertical-align: baseline !important;font-weight: 400;font-size: 12px;position: relative;">
1303
+ <!-- Start rendering products -->
1304
+ {{#each order.products as |product|}}
1305
+ {{#if @last}}
1306
+ <tr style="height: 48px;;font-size:14px;border-bottom: 1px solid #D5E1ED;">
1307
+ {{else}}
1308
+ <tr style="height: 48px;;font-size:14px;">
1309
+ {{/if}}
1310
+ {{#each @root.table_config.header.columns as |column|}}
1311
+ {{#if column.enable}}
1312
+ {{#if (eq column.id 'item')}}
1313
+ <!-- Item -->
1314
+ <td style="{{makeStyle @root.table_config.body.product_name.style}}">
1315
+ {{#if @root.table_config.body.product_name.enable}}
1316
+ {{product.name}}
1317
+ {{/if}}
1318
+ {{#if @root.table_config.body.price_description.enable}}
1319
+ <br>
1320
+ <span style="{{makeStyle @root.table_config.body.price_description.style}}">{{product.price.description}}</span>
1321
+ {{/if}}
1322
+ {{#if @root.table_config.body.product_description.enable}}
1323
+ <br>
1324
+ <span style="{{makeStyle @root.table_config.body.product_description.style}}">{{product.description}}</span>
1325
+ {{/if}}
1326
+ </td>
1327
+ {{/if}}
1328
+ {{#if (eq column.id 'quantity')}}
1329
+ <!-- Quantity -->
1330
+ <td style="{{makeStyle @root.table_config.body.quantity.style}}">{{product.price.quantity}}
1331
+ </td>
1332
+ {{/if}}
1333
+ {{#if (eq column.id 'tax')}}
1334
+ <!-- Tax -->
1335
+ <td style="{{makeStyle @root.table_config.body.tax.style}}">
1336
+ {{product.price.tax_rate}}
1337
+ </td>
1338
+ {{/if}}
1339
+ {{#if (eq column.id 'unit_amount')}}
1340
+ <!-- Unit amount -->
1341
+ <td style="{{makeStyle @root.table_config.body.unit_amount.style}}">
1342
+ {{product.price.unit_amount_net}}
1343
+ </td>
1344
+ {{/if}}
1345
+ {{#if (eq column.id 'net_total')}}
1346
+ <!-- Amount Subtotal -->
1347
+ <td style="{{makeStyle @root.table_config.body.net_total.style}}">
1348
+ {{product.price.amount_subtotal}}
1349
+ </td>
1350
+ {{/if}}
1351
+ {{#if (eq column.id 'amount_tax')}}
1352
+ <!-- Tax amount-->
1353
+ <td style="{{makeStyle @root.table_config.body.amount_tax.style}}">
1354
+ {{product.price.amount_tax}}
1355
+ </td>
1356
+ {{/if}}
1357
+ {{#if (eq column.id 'gross_total')}}
1358
+ <!-- Gross total -->
1359
+ <td style="{{makeStyle @root.table_config.body.gross_total.style}}">
1360
+ {{product.price.amount_total}}
1361
+ {{#if @root.table_config.body.payment_type.enable}}
1362
+ {{#if (eq product.price.type 'recurring')}}
1363
+ <br>
1364
+ <span style="{{makeStyle @root.table_config.body.payment_type.style}}">{{product.price.billing_period}}</span>
1365
+ {{/if}}
1366
+ {{/if}}
1367
+ </td>
1368
+ {{/if}}
1369
+ {{/if}}
1370
+ {{/each}}
1371
+ </tr>
1372
+ {{/each}}
1373
+ <!-- Finish rendering products -->
1374
+ {{#if table_config.footer.gross_total.enable}}
1375
+ {{#each order.total_details.recurrences as |item|}}
1376
+ <tr style="height: 48px;font-size: 14px;">
1377
+ <td style="padding-top: 16px; padding-bottom: 8px; border: none !important; vertical-align: top;" colspan="{{calculate_colspan @root.table_config}}"></td>
1378
+ {{#if @root.table_config.footer.payment_type.enable}}
1379
+ <td style="{{makeStyle @root.table_config.footer.payment_type.style}}" colspan="2">{{item.billing_period}}</td>
1380
+ {{/if}}
1381
+ {{#if (isColumnEnabled @root.table_config 'net_total')}}
1382
+ {{#if @root.table_config.footer.net_total.enable}}
1383
+ <td style="{{makeStyle @root.table_config.footer.net_total.style}}">{{item.amount_subtotal}}</td>
1384
+ {{/if}}
1385
+ {{/if}}
1386
+ <td style="{{makeStyle @root.table_config.footer.gross_total.style}}">{{item.amount_total}}
1387
+ {{#if @root.table_config.footer.amount_tax.enable}}
1388
+ <br>
1389
+ <span style="{{makeStyle @root.table_config.footer.amount_tax.style}}">{{item.full_amount_tax}}</span>
1390
+ {{/if}}
1391
+ </td>
1392
+ </tr>
1393
+ {{/each}}
1394
+ {{/if}}
1395
+ <tr style="height:16px !important;"></tr>
1396
+ </tbody>
1397
+ </table>
1398
+ `
1399
+ },
1400
+ created_at: {
1401
+ type: "string",
1402
+ description: "Creation time",
1403
+ example: "2022-04-19T12:41:43.662Z",
1404
+ readOnly: true
1405
+ },
1406
+ created_by: {
1407
+ type: "string",
1408
+ description: "Created by",
1409
+ example: "100042",
1410
+ readOnly: true
1411
+ },
1412
+ updated_at: {
1413
+ type: "string",
1414
+ description: "Last update time",
1415
+ example: "2022-04-20T12:41:43.662Z",
1416
+ readOnly: true
1417
+ },
1418
+ updated_by: {
1419
+ type: "string",
1420
+ description: "Updated by",
1421
+ example: "100042",
1422
+ readOnly: true
1423
+ }
1424
+ },
1425
+ required: ["key", "template"]
1426
+ }
1427
+ }
1428
+ };
1429
+ var template_variables_default = {
1430
+ openapi,
1431
+ info,
1432
+ servers,
1433
+ tags,
1434
+ security,
1435
+ paths,
1436
+ components
1437
+ };
1438
+ export {
1439
+ components,
1440
+ template_variables_default as default,
1441
+ info,
1442
+ openapi,
1443
+ paths,
1444
+ security,
1445
+ servers,
1446
+ tags
1447
+ };