@epilot/sdk 2.4.3 → 2.4.4-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.
Files changed (348) hide show
  1. package/README.md +1 -0
  2. package/definitions/app-runtime.json +1 -1
  3. package/definitions/app.json +346 -10
  4. package/definitions/calendar-runtime.json +1 -0
  5. package/definitions/calendar.json +675 -0
  6. package/definitions/customer-portal.json +29 -0
  7. package/definitions/notes.json +175 -130
  8. package/definitions/pricing.json +5 -1
  9. package/dist/README-46VYEGGW.js +7 -0
  10. package/dist/README-IVBISSWB.cjs +7 -0
  11. package/dist/{_index-HE4B6FOA.js → _index-5FB6F5YY.js} +3 -0
  12. package/dist/{_index-55HAH24D.cjs → _index-DB2VV4PQ.cjs} +4 -1
  13. package/dist/apis/_registry.d.ts +8 -0
  14. package/dist/apis/access-token.cjs +6 -6
  15. package/dist/apis/access-token.d.ts +9 -12
  16. package/dist/apis/access-token.js +1 -1
  17. package/dist/apis/address-suggestions.cjs +6 -6
  18. package/dist/apis/address-suggestions.d.ts +9 -12
  19. package/dist/apis/address-suggestions.js +1 -1
  20. package/dist/apis/address.cjs +6 -6
  21. package/dist/apis/address.d.ts +9 -12
  22. package/dist/apis/address.js +1 -1
  23. package/dist/apis/ai-agents.cjs +6 -6
  24. package/dist/apis/ai-agents.d.ts +9 -12
  25. package/dist/apis/ai-agents.js +1 -1
  26. package/dist/apis/app.cjs +6 -6
  27. package/dist/apis/app.d.ts +9 -12
  28. package/dist/apis/app.js +1 -1
  29. package/dist/apis/audit-logs.cjs +6 -6
  30. package/dist/apis/audit-logs.d.ts +9 -12
  31. package/dist/apis/audit-logs.js +1 -1
  32. package/dist/apis/automation.cjs +6 -6
  33. package/dist/apis/automation.d.ts +9 -12
  34. package/dist/apis/automation.js +1 -1
  35. package/dist/apis/billing.cjs +6 -6
  36. package/dist/apis/billing.d.ts +9 -12
  37. package/dist/apis/billing.js +1 -1
  38. package/dist/apis/blueprint-manifest.cjs +6 -6
  39. package/dist/apis/blueprint-manifest.d.ts +9 -12
  40. package/dist/apis/blueprint-manifest.js +1 -1
  41. package/dist/apis/calendar.cjs +38 -0
  42. package/dist/apis/calendar.d.ts +15 -0
  43. package/dist/apis/calendar.js +38 -0
  44. package/dist/apis/configuration-hub.cjs +6 -6
  45. package/dist/apis/configuration-hub.d.ts +9 -12
  46. package/dist/apis/configuration-hub.js +1 -1
  47. package/dist/apis/consent.cjs +6 -6
  48. package/dist/apis/consent.d.ts +9 -12
  49. package/dist/apis/consent.js +1 -1
  50. package/dist/apis/customer-portal.cjs +6 -6
  51. package/dist/apis/customer-portal.d.ts +9 -12
  52. package/dist/apis/customer-portal.js +1 -1
  53. package/dist/apis/dashboard.cjs +6 -6
  54. package/dist/apis/dashboard.d.ts +9 -12
  55. package/dist/apis/dashboard.js +1 -1
  56. package/dist/apis/data-governance.cjs +6 -6
  57. package/dist/apis/data-governance.d.ts +9 -12
  58. package/dist/apis/data-governance.js +1 -1
  59. package/dist/apis/deduplication.cjs +6 -6
  60. package/dist/apis/deduplication.d.ts +9 -12
  61. package/dist/apis/deduplication.js +1 -1
  62. package/dist/apis/design.cjs +6 -6
  63. package/dist/apis/design.d.ts +9 -12
  64. package/dist/apis/design.js +1 -1
  65. package/dist/apis/document.cjs +6 -6
  66. package/dist/apis/document.d.ts +9 -12
  67. package/dist/apis/document.js +1 -1
  68. package/dist/apis/email-settings.cjs +6 -6
  69. package/dist/apis/email-settings.d.ts +9 -12
  70. package/dist/apis/email-settings.js +1 -1
  71. package/dist/apis/email-template.cjs +6 -6
  72. package/dist/apis/email-template.d.ts +9 -12
  73. package/dist/apis/email-template.js +1 -1
  74. package/dist/apis/entity-mapping.cjs +6 -6
  75. package/dist/apis/entity-mapping.d.ts +9 -12
  76. package/dist/apis/entity-mapping.js +1 -1
  77. package/dist/apis/entity.cjs +6 -6
  78. package/dist/apis/entity.d.ts +9 -12
  79. package/dist/apis/entity.js +1 -1
  80. package/dist/apis/environments.cjs +6 -6
  81. package/dist/apis/environments.d.ts +9 -12
  82. package/dist/apis/environments.js +1 -1
  83. package/dist/apis/event-catalog.cjs +6 -6
  84. package/dist/apis/event-catalog.d.ts +9 -12
  85. package/dist/apis/event-catalog.js +1 -1
  86. package/dist/apis/file.cjs +6 -6
  87. package/dist/apis/file.d.ts +9 -12
  88. package/dist/apis/file.js +1 -1
  89. package/dist/apis/iban.cjs +6 -6
  90. package/dist/apis/iban.d.ts +9 -12
  91. package/dist/apis/iban.js +1 -1
  92. package/dist/apis/integration-toolkit.cjs +6 -6
  93. package/dist/apis/integration-toolkit.d.ts +9 -12
  94. package/dist/apis/integration-toolkit.js +1 -1
  95. package/dist/apis/journey.cjs +6 -6
  96. package/dist/apis/journey.d.ts +9 -12
  97. package/dist/apis/journey.js +1 -1
  98. package/dist/apis/kanban.cjs +6 -6
  99. package/dist/apis/kanban.d.ts +9 -12
  100. package/dist/apis/kanban.js +1 -1
  101. package/dist/apis/message.cjs +6 -6
  102. package/dist/apis/message.d.ts +9 -12
  103. package/dist/apis/message.js +1 -1
  104. package/dist/apis/metering.cjs +6 -6
  105. package/dist/apis/metering.d.ts +9 -12
  106. package/dist/apis/metering.js +1 -1
  107. package/dist/apis/notes.cjs +6 -6
  108. package/dist/apis/notes.d.ts +9 -12
  109. package/dist/apis/notes.js +1 -1
  110. package/dist/apis/notification.cjs +6 -6
  111. package/dist/apis/notification.d.ts +9 -12
  112. package/dist/apis/notification.js +1 -1
  113. package/dist/apis/organization.cjs +6 -6
  114. package/dist/apis/organization.d.ts +9 -12
  115. package/dist/apis/organization.js +1 -1
  116. package/dist/apis/partner-directory.cjs +6 -6
  117. package/dist/apis/partner-directory.d.ts +9 -12
  118. package/dist/apis/partner-directory.js +1 -1
  119. package/dist/apis/permissions.cjs +6 -6
  120. package/dist/apis/permissions.d.ts +9 -12
  121. package/dist/apis/permissions.js +1 -1
  122. package/dist/apis/pricing-tier.cjs +6 -6
  123. package/dist/apis/pricing-tier.d.ts +9 -12
  124. package/dist/apis/pricing-tier.js +1 -1
  125. package/dist/apis/pricing.cjs +6 -6
  126. package/dist/apis/pricing.d.ts +9 -12
  127. package/dist/apis/pricing.js +1 -1
  128. package/dist/apis/purpose.cjs +6 -6
  129. package/dist/apis/purpose.d.ts +9 -12
  130. package/dist/apis/purpose.js +1 -1
  131. package/dist/apis/query.cjs +6 -6
  132. package/dist/apis/query.d.ts +9 -12
  133. package/dist/apis/query.js +1 -1
  134. package/dist/apis/sandbox.cjs +6 -6
  135. package/dist/apis/sandbox.d.ts +9 -12
  136. package/dist/apis/sandbox.js +1 -1
  137. package/dist/apis/sharing.cjs +6 -6
  138. package/dist/apis/sharing.d.ts +9 -12
  139. package/dist/apis/sharing.js +1 -1
  140. package/dist/apis/submission.cjs +6 -6
  141. package/dist/apis/submission.d.ts +9 -12
  142. package/dist/apis/submission.js +1 -1
  143. package/dist/apis/target.cjs +6 -6
  144. package/dist/apis/target.d.ts +9 -591
  145. package/dist/apis/target.js +1 -1
  146. package/dist/apis/targeting.cjs +6 -6
  147. package/dist/apis/targeting.d.ts +9 -12
  148. package/dist/apis/targeting.js +1 -1
  149. package/dist/apis/template-variables.cjs +6 -6
  150. package/dist/apis/template-variables.d.ts +9 -12
  151. package/dist/apis/template-variables.js +1 -1
  152. package/dist/apis/user.cjs +6 -6
  153. package/dist/apis/user.d.ts +9 -12
  154. package/dist/apis/user.js +1 -1
  155. package/dist/apis/validation-rules.cjs +6 -6
  156. package/dist/apis/validation-rules.d.ts +9 -12
  157. package/dist/apis/validation-rules.js +1 -1
  158. package/dist/apis/webhooks.cjs +6 -6
  159. package/dist/apis/webhooks.d.ts +9 -12
  160. package/dist/apis/webhooks.js +1 -1
  161. package/dist/apis/workflow-definition.cjs +6 -6
  162. package/dist/apis/workflow-definition.d.ts +9 -12
  163. package/dist/apis/workflow-definition.js +1 -1
  164. package/dist/apis/workflow.cjs +6 -6
  165. package/dist/apis/workflow.d.ts +9 -12
  166. package/dist/apis/workflow.js +1 -1
  167. package/dist/authorize.d.ts +3 -0
  168. package/dist/bin/cli.d.ts +1 -0
  169. package/dist/bin/cli.js +1 -1
  170. package/dist/calendar-2YDAYG7S.cjs +7 -0
  171. package/dist/calendar-ACFIHQ2N.js +7 -0
  172. package/dist/calendar-runtime-6CMMEQMG.js +5 -0
  173. package/dist/calendar-runtime-G4SN5PDY.cjs +5 -0
  174. package/dist/{chunk-AM5TSEMU.cjs → chunk-CD4OX2U6.cjs} +4 -2
  175. package/dist/chunk-CKLEBO4K.cjs +14 -0
  176. package/dist/chunk-JNH37UUH.js +14 -0
  177. package/dist/{chunk-M25MI6ZX.js → chunk-TSV242UN.js} +4 -2
  178. package/dist/client-factory.d.ts +9 -0
  179. package/dist/client-map.d.ts +102 -0
  180. package/dist/compact.d.ts +22 -0
  181. package/dist/help.d.ts +12 -0
  182. package/dist/index.cjs +25 -17
  183. package/dist/index.d.ts +12 -180
  184. package/dist/index.js +21 -13
  185. package/dist/{js-yaml-DLCVPJ7G.js → js-yaml-UPZKYVRY.js} +15 -17
  186. package/dist/large-response.d.ts +9 -0
  187. package/dist/openapi.d.ts +12 -0
  188. package/dist/overrides.d.ts +9 -0
  189. package/dist/proxy.d.ts +14 -0
  190. package/dist/registry.d.ts +19 -0
  191. package/dist/retry.d.ts +11 -0
  192. package/dist/sdk.d.ts +29 -0
  193. package/dist/types.d.ts +53 -0
  194. package/docs/calendar.md +441 -0
  195. package/package.json +10 -1
  196. package/dist/README-6MG272KM.cjs +0 -7
  197. package/dist/README-7N542PBL.js +0 -7
  198. package/dist/access-token.d-CnmUTOlq.d.cts +0 -552
  199. package/dist/access-token.d-CnmUTOlq.d.ts +0 -552
  200. package/dist/address-suggestions.d-_YwTOR-9.d.cts +0 -339
  201. package/dist/address-suggestions.d-_YwTOR-9.d.ts +0 -339
  202. package/dist/address.d-CwAPOVxa.d.cts +0 -437
  203. package/dist/address.d-CwAPOVxa.d.ts +0 -437
  204. package/dist/ai-agents.d-OkXfr2bz.d.cts +0 -1339
  205. package/dist/ai-agents.d-OkXfr2bz.d.ts +0 -1339
  206. package/dist/apis/access-token.d.cts +0 -18
  207. package/dist/apis/address-suggestions.d.cts +0 -18
  208. package/dist/apis/address.d.cts +0 -18
  209. package/dist/apis/ai-agents.d.cts +0 -18
  210. package/dist/apis/app.d.cts +0 -18
  211. package/dist/apis/audit-logs.d.cts +0 -18
  212. package/dist/apis/automation.d.cts +0 -18
  213. package/dist/apis/billing.d.cts +0 -18
  214. package/dist/apis/blueprint-manifest.d.cts +0 -18
  215. package/dist/apis/configuration-hub.d.cts +0 -18
  216. package/dist/apis/consent.d.cts +0 -18
  217. package/dist/apis/customer-portal.d.cts +0 -18
  218. package/dist/apis/dashboard.d.cts +0 -18
  219. package/dist/apis/data-governance.d.cts +0 -18
  220. package/dist/apis/deduplication.d.cts +0 -18
  221. package/dist/apis/design.d.cts +0 -18
  222. package/dist/apis/document.d.cts +0 -18
  223. package/dist/apis/email-settings.d.cts +0 -18
  224. package/dist/apis/email-template.d.cts +0 -18
  225. package/dist/apis/entity-mapping.d.cts +0 -18
  226. package/dist/apis/entity.d.cts +0 -18
  227. package/dist/apis/environments.d.cts +0 -18
  228. package/dist/apis/event-catalog.d.cts +0 -18
  229. package/dist/apis/file.d.cts +0 -18
  230. package/dist/apis/iban.d.cts +0 -18
  231. package/dist/apis/integration-toolkit.d.cts +0 -18
  232. package/dist/apis/journey.d.cts +0 -18
  233. package/dist/apis/kanban.d.cts +0 -18
  234. package/dist/apis/message.d.cts +0 -18
  235. package/dist/apis/metering.d.cts +0 -18
  236. package/dist/apis/notes.d.cts +0 -18
  237. package/dist/apis/notification.d.cts +0 -18
  238. package/dist/apis/organization.d.cts +0 -18
  239. package/dist/apis/partner-directory.d.cts +0 -18
  240. package/dist/apis/permissions.d.cts +0 -18
  241. package/dist/apis/pricing-tier.d.cts +0 -18
  242. package/dist/apis/pricing.d.cts +0 -18
  243. package/dist/apis/purpose.d.cts +0 -18
  244. package/dist/apis/query.d.cts +0 -18
  245. package/dist/apis/sandbox.d.cts +0 -18
  246. package/dist/apis/sharing.d.cts +0 -18
  247. package/dist/apis/submission.d.cts +0 -18
  248. package/dist/apis/target.d.cts +0 -597
  249. package/dist/apis/targeting.d.cts +0 -18
  250. package/dist/apis/template-variables.d.cts +0 -18
  251. package/dist/apis/user.d.cts +0 -18
  252. package/dist/apis/validation-rules.d.cts +0 -18
  253. package/dist/apis/webhooks.d.cts +0 -18
  254. package/dist/apis/workflow-definition.d.cts +0 -18
  255. package/dist/apis/workflow.d.cts +0 -18
  256. package/dist/app.d-u7Dq42kU.d.cts +0 -3391
  257. package/dist/app.d-u7Dq42kU.d.ts +0 -3391
  258. package/dist/audit-logs.d-BRToFqeX.d.cts +0 -287
  259. package/dist/audit-logs.d-BRToFqeX.d.ts +0 -287
  260. package/dist/automation.d-Du6-uiz5.d.cts +0 -5283
  261. package/dist/automation.d-Du6-uiz5.d.ts +0 -5283
  262. package/dist/billing.d-Bs8Ku9qE.d.cts +0 -993
  263. package/dist/billing.d-Bs8Ku9qE.d.ts +0 -993
  264. package/dist/blueprint-manifest.d-BPyzoR0X.d.cts +0 -4343
  265. package/dist/blueprint-manifest.d-BPyzoR0X.d.ts +0 -4343
  266. package/dist/configuration-hub.d-Cqaq2F-W.d.cts +0 -478
  267. package/dist/configuration-hub.d-Cqaq2F-W.d.ts +0 -478
  268. package/dist/consent.d-C2PROHhX.d.cts +0 -265
  269. package/dist/consent.d-C2PROHhX.d.ts +0 -265
  270. package/dist/customer-portal.d-DyZ2n2dW.d.cts +0 -16728
  271. package/dist/customer-portal.d-DyZ2n2dW.d.ts +0 -16728
  272. package/dist/dashboard.d-CsGcA74I.d.cts +0 -440
  273. package/dist/dashboard.d-CsGcA74I.d.ts +0 -440
  274. package/dist/data-governance.d-BbZ466j5.d.cts +0 -1178
  275. package/dist/data-governance.d-BbZ466j5.d.ts +0 -1178
  276. package/dist/deduplication.d-D5GYddVu.d.cts +0 -218
  277. package/dist/deduplication.d-D5GYddVu.d.ts +0 -218
  278. package/dist/design.d-BRre8iLg.d.cts +0 -2346
  279. package/dist/design.d-BRre8iLg.d.ts +0 -2346
  280. package/dist/document.d-DN37pjdx.d.cts +0 -648
  281. package/dist/document.d-DN37pjdx.d.ts +0 -648
  282. package/dist/email-settings.d-B7Q_xT25.d.cts +0 -2417
  283. package/dist/email-settings.d-B7Q_xT25.d.ts +0 -2417
  284. package/dist/email-template.d-gtQkdaXM.d.cts +0 -1188
  285. package/dist/email-template.d-gtQkdaXM.d.ts +0 -1188
  286. package/dist/entity-mapping.d-DKSW3sfy.d.cts +0 -1092
  287. package/dist/entity-mapping.d-DKSW3sfy.d.ts +0 -1092
  288. package/dist/entity.d-BHR9dEon.d.cts +0 -18479
  289. package/dist/entity.d-BHR9dEon.d.ts +0 -18479
  290. package/dist/environments.d-BvqvN-PD.d.cts +0 -382
  291. package/dist/environments.d-BvqvN-PD.d.ts +0 -382
  292. package/dist/event-catalog.d-ENw6HO-w.d.cts +0 -1511
  293. package/dist/event-catalog.d-ENw6HO-w.d.ts +0 -1511
  294. package/dist/file.d-DcTJxjp7.d.cts +0 -2992
  295. package/dist/file.d-DcTJxjp7.d.ts +0 -2992
  296. package/dist/iban.d-BwdiGbxi.d.cts +0 -70
  297. package/dist/iban.d-BwdiGbxi.d.ts +0 -70
  298. package/dist/index.d.cts +0 -180
  299. package/dist/integration-toolkit.d-Ry-KC9ow.d.cts +0 -5796
  300. package/dist/integration-toolkit.d-Ry-KC9ow.d.ts +0 -5796
  301. package/dist/journey.d-ClXO0xK8.d.cts +0 -1931
  302. package/dist/journey.d-ClXO0xK8.d.ts +0 -1931
  303. package/dist/kanban.d-BHnSRCYW.d.cts +0 -760
  304. package/dist/kanban.d-BHnSRCYW.d.ts +0 -760
  305. package/dist/message.d-B5UuSqgw.d.cts +0 -3811
  306. package/dist/message.d-B5UuSqgw.d.ts +0 -3811
  307. package/dist/metering.d-DvtPv7wk.d.cts +0 -1841
  308. package/dist/metering.d-DvtPv7wk.d.ts +0 -1841
  309. package/dist/notes.d-BC-scR42.d.cts +0 -1046
  310. package/dist/notes.d-BC-scR42.d.ts +0 -1046
  311. package/dist/notification.d-BfBL3lga.d.cts +0 -1147
  312. package/dist/notification.d-BfBL3lga.d.ts +0 -1147
  313. package/dist/organization.d-DqwnNxMg.d.cts +0 -1271
  314. package/dist/organization.d-DqwnNxMg.d.ts +0 -1271
  315. package/dist/partner-directory.d-BCIjHoGs.d.cts +0 -2337
  316. package/dist/partner-directory.d-BCIjHoGs.d.ts +0 -2337
  317. package/dist/permissions.d-l6AT8SYP.d.cts +0 -1279
  318. package/dist/permissions.d-l6AT8SYP.d.ts +0 -1279
  319. package/dist/pricing-tier.d-Cg0jl6n_.d.cts +0 -81
  320. package/dist/pricing-tier.d-Cg0jl6n_.d.ts +0 -81
  321. package/dist/pricing.d-BHpMU4KU.d.cts +0 -12255
  322. package/dist/pricing.d-BHpMU4KU.d.ts +0 -12255
  323. package/dist/purpose.d-CbIYfTua.d.cts +0 -372
  324. package/dist/purpose.d-CbIYfTua.d.ts +0 -372
  325. package/dist/query.d-Cmp78IhZ.d.cts +0 -2375
  326. package/dist/query.d-Cmp78IhZ.d.ts +0 -2375
  327. package/dist/sandbox.d-BdbOFzDu.d.cts +0 -465
  328. package/dist/sandbox.d-BdbOFzDu.d.ts +0 -465
  329. package/dist/sharing.d-sOXq-gtz.d.cts +0 -571
  330. package/dist/sharing.d-sOXq-gtz.d.ts +0 -571
  331. package/dist/submission.d-BamwfhXw.d.cts +0 -469
  332. package/dist/submission.d-BamwfhXw.d.ts +0 -469
  333. package/dist/targeting.d-BNmcVsNS.d.cts +0 -2057
  334. package/dist/targeting.d-BNmcVsNS.d.ts +0 -2057
  335. package/dist/template-variables.d-Ble9TSBa.d.cts +0 -1320
  336. package/dist/template-variables.d-Ble9TSBa.d.ts +0 -1320
  337. package/dist/types-ChU9Acbv.d.cts +0 -37
  338. package/dist/types-ChU9Acbv.d.ts +0 -37
  339. package/dist/user.d-D18fe97W.d.cts +0 -2270
  340. package/dist/user.d-D18fe97W.d.ts +0 -2270
  341. package/dist/validation-rules.d-Db5c5zTf.d.cts +0 -807
  342. package/dist/validation-rules.d-Db5c5zTf.d.ts +0 -807
  343. package/dist/webhooks.d-pLHIL_io.d.cts +0 -1256
  344. package/dist/webhooks.d-pLHIL_io.d.ts +0 -1256
  345. package/dist/workflow-definition.d-DOeb0KVV.d.cts +0 -1922
  346. package/dist/workflow-definition.d-DOeb0KVV.d.ts +0 -1922
  347. package/dist/workflow.d-CMSKt8oN.d.cts +0 -3151
  348. package/dist/workflow.d-CMSKt8oN.d.ts +0 -3151
@@ -1,1320 +0,0 @@
1
- import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
-
3
- /* Auto-copied from template-variables-client */
4
-
5
-
6
- declare namespace Components {
7
- namespace Schemas {
8
- export interface CategoryResult {
9
- /**
10
- * example:
11
- * contact
12
- */
13
- category?: string;
14
- /**
15
- * example:
16
- * Contact
17
- */
18
- description?: string;
19
- }
20
- export interface CustomVariable {
21
- /**
22
- * ID
23
- * example:
24
- * rbse777b-3cf8-4bff-bb0c-253fd1123250
25
- */
26
- id?: string;
27
- /**
28
- * Custom variable type
29
- */
30
- type?: "order_table" | "custom" | "journey_link" | "snippet";
31
- /**
32
- * Custom variable name
33
- * example:
34
- * My Custom table
35
- */
36
- name?: string;
37
- /**
38
- * The key which is used for Handlebar variable syntax {{key}}
39
- * example:
40
- * my_custom_table
41
- */
42
- key: string;
43
- /**
44
- * The tags of custom variable
45
- */
46
- _tags?: string[];
47
- /**
48
- * The manifest IDs associated with this custom variable
49
- */
50
- _manifest?: string[];
51
- /**
52
- * The helper function parameter's names
53
- * example:
54
- * [
55
- * "param1",
56
- * "param2"
57
- * ]
58
- */
59
- helper_params?: string[];
60
- /**
61
- * The helper function logic
62
- * example:
63
- * return param1 * param2;
64
- */
65
- helper_logic?: string;
66
- /**
67
- * Variable configuration
68
- * example:
69
- * {
70
- * "header": null,
71
- * "style": {
72
- * "color": "#222",
73
- * "background": "#fff",
74
- * "font-size": "16px",
75
- * "font-family": "",
76
- * "padding-bottom": "4px",
77
- * "font-weight": "bold",
78
- * "border": "none !important",
79
- * "text-align": "left"
80
- * },
81
- * "columns": [
82
- * {
83
- * "id": "item",
84
- * "index": 0,
85
- * "label": {
86
- * "en": "Item",
87
- * "de": "Produkt"
88
- * },
89
- * "enable": true,
90
- * "draggable": true,
91
- * "style": {
92
- * "padding-left": "10px",
93
- * "max-width": "30%"
94
- * }
95
- * },
96
- * {
97
- * "id": "quantity",
98
- * "index": 1,
99
- * "label": {
100
- * "en": "Quanity",
101
- * "de": "Menge"
102
- * },
103
- * "enable": true,
104
- * "draggable": true,
105
- * "style": {
106
- * "min-width": "60px",
107
- * "width": "30%"
108
- * }
109
- * },
110
- * {
111
- * "id": "tax",
112
- * "index": 2,
113
- * "label": {
114
- * "en": "Tax Rate",
115
- * "de": "Steuerrate"
116
- * },
117
- * "enable": true,
118
- * "draggable": true,
119
- * "style": {
120
- * "min-width": "60px",
121
- * "width": "30%"
122
- * }
123
- * },
124
- * {
125
- * "id": "unit_amount",
126
- * "index": 3,
127
- * "label": {
128
- * "en": "Unit Net Price",
129
- * "de": "Nettopreis"
130
- * },
131
- * "enable": true,
132
- * "draggable": true,
133
- * "style": {
134
- * "min-width": "60px",
135
- * "width": "30%"
136
- * }
137
- * },
138
- * {
139
- * "id": "net_total",
140
- * "index": 4,
141
- * "label": {
142
- * "en": "Net total",
143
- * "de": "Nettosumme"
144
- * },
145
- * "enable": "true,",
146
- * "draggable": true,
147
- * "style": {
148
- * "min-width": "60px",
149
- * "width": "30%"
150
- * }
151
- * },
152
- * {
153
- * "id": "gross_total",
154
- * "index": 5,
155
- * "label": {
156
- * "en": "Total",
157
- * "de": "Gesamt"
158
- * },
159
- * "enable": true,
160
- * "draggable": true,
161
- * "style": {
162
- * "min-width": "60px",
163
- * "width": "30%"
164
- * }
165
- * }
166
- * ],
167
- * "body": {
168
- * "product_name": {
169
- * "parent_column": "item",
170
- * "enable": true,
171
- * "style": {
172
- * "color": "#222",
173
- * "background": "#fff",
174
- * "font-size": "14px",
175
- * "font-family": "",
176
- * "font-weight": "bold",
177
- * "font-style": "normal",
178
- * "padding-top": "16px",
179
- * "padding-bottom": "8px",
180
- * "border": "none !important",
181
- * "vertical-align": "top",
182
- * "text-align": "left",
183
- * "max-width": "30%",
184
- * "padding-left": "10px"
185
- * }
186
- * },
187
- * "price_description": {
188
- * "parent_column": "item",
189
- * "enable": true,
190
- * "style": {
191
- * "color": "#222",
192
- * "background": "#fff",
193
- * "font-size": "12px",
194
- * "font-family": "",
195
- * "font-weight": "normal",
196
- * "font-style": "normal",
197
- * "text-align": "left",
198
- * "max-width": "30%"
199
- * }
200
- * },
201
- * "product_description": {
202
- * "parent_column": "item",
203
- * "enable": true,
204
- * "style": {
205
- * "color": "#222",
206
- * "background": "#fff",
207
- * "font-size": "12px",
208
- * "font-family": "",
209
- * "font-weight": "normal",
210
- * "font-style": "normal",
211
- * "text-align": "left",
212
- * "max-width": "30%"
213
- * }
214
- * },
215
- * "quantity": {
216
- * "enable": true,
217
- * "style": {
218
- * "color": "#222",
219
- * "background": "#fff",
220
- * "font-size": "12px",
221
- * "font-family": "",
222
- * "font-weight": "normal",
223
- * "font-style": "normal",
224
- * "text-align": "left",
225
- * "max-width": "30%"
226
- * }
227
- * },
228
- * "tax": {
229
- * "enable": true,
230
- * "style": {
231
- * "color": "#222",
232
- * "background": "#fff",
233
- * "font-size": "12px",
234
- * "font-family": "",
235
- * "font-weight": "normal",
236
- * "font-style": "normal",
237
- * "text-align": "left",
238
- * "max-width": "30%"
239
- * }
240
- * },
241
- * "unit_amount": {
242
- * "enable": true,
243
- * "style": {
244
- * "color": "#222",
245
- * "background": "#fff",
246
- * "font-size": "12px",
247
- * "font-family": "",
248
- * "font-weight": "normal",
249
- * "font-style": "normal",
250
- * "text-align": "left",
251
- * "max-width": "30%"
252
- * }
253
- * },
254
- * "net_total": {
255
- * "enable": true,
256
- * "style": {
257
- * "color": "#222",
258
- * "background": "#fff",
259
- * "font-size": "12px",
260
- * "font-family": "",
261
- * "font-weight": "normal",
262
- * "font-style": "normal",
263
- * "text-align": "left",
264
- * "max-width": "30%"
265
- * }
266
- * },
267
- * "gross_total": {
268
- * "enable": true,
269
- * "style": {
270
- * "color": "#222",
271
- * "background": "#fff",
272
- * "font-size": "12px",
273
- * "font-family": "",
274
- * "font-weight": "normal",
275
- * "font-style": "normal",
276
- * "text-align": "left",
277
- * "max-width": "30%"
278
- * }
279
- * }
280
- * },
281
- * "footer": {
282
- * "payment_type": {
283
- * "enable": true,
284
- * "style": {
285
- * "color": "#222",
286
- * "background": "#fff",
287
- * "font-size": "12px",
288
- * "font-family": "",
289
- * "font-weight": "normal",
290
- * "font-style": "normal",
291
- * "text-align": "left",
292
- * "max-width": "30%"
293
- * }
294
- * },
295
- * "net_total": {
296
- * "enable": true,
297
- * "style": {
298
- * "color": "#222",
299
- * "background": "#fff",
300
- * "font-size": "12px",
301
- * "font-family": "",
302
- * "font-weight": "normal",
303
- * "font-style": "normal",
304
- * "text-align": "left",
305
- * "max-width": "30%"
306
- * }
307
- * },
308
- * "amount_tax": {
309
- * "enable": true,
310
- * "style": {
311
- * "color": "#222",
312
- * "background": "#fff",
313
- * "font-size": "12px",
314
- * "font-family": "",
315
- * "font-weight": "normal",
316
- * "font-style": "normal",
317
- * "text-align": "left",
318
- * "max-width": "30%"
319
- * }
320
- * },
321
- * "gross_total": {
322
- * "enable": true,
323
- * "style": {
324
- * "color": "#222",
325
- * "background": "#fff",
326
- * "font-size": "12px",
327
- * "font-family": "",
328
- * "font-weight": "normal",
329
- * "font-style": "normal",
330
- * "text-align": "left",
331
- * "max-width": "30%"
332
- * }
333
- * }
334
- * }
335
- * }
336
- */
337
- config?: {
338
- [key: string]: any;
339
- };
340
- /**
341
- * Handlebar template that used to generate the variable content
342
- * example:
343
- * <table style="table-layout: fixed;width: 100%;max-width: 1000px;border-collapse: collapse;">
344
- * <thead>
345
- * <tr style="height: 48px;border-bottom: 1px solid #D5E1ED;">
346
- * {{#each table_config.header.columns as |column|}}
347
- * {{#if column.enable}}
348
- * <th style="{{makeStyle @root.table_config.header.style}};{{makeStyle column.style}};">{{column._label}}</th>
349
- * {{/if}}
350
- * {{/each}}
351
- * </tr>
352
- * </thead>
353
- * <tbody style="vertical-align: baseline !important;font-weight: 400;font-size: 12px;position: relative;">
354
- * <!-- Start rendering products -->
355
- * {{#each order.products as |product|}}
356
- * {{#if @last}}
357
- * <tr style="height: 48px;;font-size:14px;border-bottom: 1px solid #D5E1ED;">
358
- * {{else}}
359
- * <tr style="height: 48px;;font-size:14px;">
360
- * {{/if}}
361
- * {{#each @root.table_config.header.columns as |column|}}
362
- * {{#if column.enable}}
363
- * {{#if (eq column.id 'item')}}
364
- * <!-- Item -->
365
- * <td style="{{makeStyle @root.table_config.body.product_name.style}}">
366
- * {{#if @root.table_config.body.product_name.enable}}
367
- * {{product.name}}
368
- * {{/if}}
369
- * {{#if @root.table_config.body.price_description.enable}}
370
- * <br>
371
- * <span style="{{makeStyle @root.table_config.body.price_description.style}}">{{product.price.description}}</span>
372
- * {{/if}}
373
- * {{#if @root.table_config.body.product_description.enable}}
374
- * <br>
375
- * <span style="{{makeStyle @root.table_config.body.product_description.style}}">{{product.description}}</span>
376
- * {{/if}}
377
- * </td>
378
- * {{/if}}
379
- * {{#if (eq column.id 'quantity')}}
380
- * <!-- Quantity -->
381
- * <td style="{{makeStyle @root.table_config.body.quantity.style}}">{{product.price.quantity}}
382
- * </td>
383
- * {{/if}}
384
- * {{#if (eq column.id 'tax')}}
385
- * <!-- Tax -->
386
- * <td style="{{makeStyle @root.table_config.body.tax.style}}">
387
- * {{product.price.tax_rate}}
388
- * </td>
389
- * {{/if}}
390
- * {{#if (eq column.id 'unit_amount')}}
391
- * <!-- Unit amount -->
392
- * <td style="{{makeStyle @root.table_config.body.unit_amount.style}}">
393
- * {{product.price.unit_amount_net}}
394
- * </td>
395
- * {{/if}}
396
- * {{#if (eq column.id 'net_total')}}
397
- * <!-- Amount Subtotal -->
398
- * <td style="{{makeStyle @root.table_config.body.net_total.style}}">
399
- * {{product.price.amount_subtotal}}
400
- * </td>
401
- * {{/if}}
402
- * {{#if (eq column.id 'amount_tax')}}
403
- * <!-- Tax amount-->
404
- * <td style="{{makeStyle @root.table_config.body.amount_tax.style}}">
405
- * {{product.price.amount_tax}}
406
- * </td>
407
- * {{/if}}
408
- * {{#if (eq column.id 'gross_total')}}
409
- * <!-- Gross total -->
410
- * <td style="{{makeStyle @root.table_config.body.gross_total.style}}">
411
- * {{product.price.amount_total}}
412
- * {{#if @root.table_config.body.payment_type.enable}}
413
- * {{#if (eq product.price.type 'recurring')}}
414
- * <br>
415
- * <span style="{{makeStyle @root.table_config.body.payment_type.style}}">{{product.price.billing_period}}</span>
416
- * {{/if}}
417
- * {{/if}}
418
- * </td>
419
- * {{/if}}
420
- * {{/if}}
421
- * {{/each}}
422
- * </tr>
423
- * {{/each}}
424
- * <!-- Finish rendering products -->
425
- * {{#if table_config.footer.gross_total.enable}}
426
- * {{#each order.total_details.recurrences as |item|}}
427
- * <tr style="height: 48px;font-size: 14px;">
428
- * <td style="padding-top: 16px; padding-bottom: 8px; border: none !important; vertical-align: top;" colspan="{{calculate_colspan @root.table_config}}"></td>
429
- * {{#if @root.table_config.footer.payment_type.enable}}
430
- * <td style="{{makeStyle @root.table_config.footer.payment_type.style}}" colspan="2">{{item.billing_period}}</td>
431
- * {{/if}}
432
- * {{#if (isColumnEnabled @root.table_config 'net_total')}}
433
- * {{#if @root.table_config.footer.net_total.enable}}
434
- * <td style="{{makeStyle @root.table_config.footer.net_total.style}}">{{item.amount_subtotal}}</td>
435
- * {{/if}}
436
- * {{/if}}
437
- * <td style="{{makeStyle @root.table_config.footer.gross_total.style}}">{{item.amount_total}}
438
- * {{#if @root.table_config.footer.amount_tax.enable}}
439
- * <br>
440
- * <span style="{{makeStyle @root.table_config.footer.amount_tax.style}}">{{item.full_amount_tax}}</span>
441
- * {{/if}}
442
- * </td>
443
- * </tr>
444
- * {{/each}}
445
- * {{/if}}
446
- * <tr style="height:16px !important;"></tr>
447
- * </tbody>
448
- * </table>
449
- *
450
- */
451
- template: string;
452
- /**
453
- * Creation time
454
- * example:
455
- * 2022-04-19T12:41:43.662Z
456
- */
457
- created_at?: string;
458
- /**
459
- * Created by
460
- * example:
461
- * 100042
462
- */
463
- created_by?: string;
464
- /**
465
- * Last update time
466
- * example:
467
- * 2022-04-20T12:41:43.662Z
468
- */
469
- updated_at?: string;
470
- /**
471
- * Updated by
472
- * example:
473
- * 100042
474
- */
475
- updated_by?: string;
476
- }
477
- export interface CustomVariablesSearchParams {
478
- /**
479
- * Variable type
480
- */
481
- type?: "order_table" | "custom" | "journey_link" | "snippet";
482
- /**
483
- * The tags of custom variable
484
- */
485
- tags?: string[];
486
- /**
487
- * Search string
488
- * example:
489
- * logo
490
- */
491
- query?: string;
492
- from?: number;
493
- size?: number;
494
- /**
495
- * Sort by field
496
- * example:
497
- * created_at, name, key
498
- */
499
- sort_by?: string;
500
- /**
501
- * Fields to return
502
- */
503
- fields?: string[];
504
- }
505
- export interface ExternalCustomVariable {
506
- /**
507
- * example:
508
- * {{craftsmen.invitation_link}}
509
- */
510
- variable?: string;
511
- /**
512
- * example:
513
- * https://partner.epilot.cloud/activate-account?user_name=htny.pct%2Btet%40gmail.com&confirmation_code=EdXPRW19
514
- */
515
- value?: string;
516
- }
517
- /**
518
- * 2-letter language code (ISO 639-1)
519
- */
520
- export type Language = string;
521
- export interface ReplacementOutput {
522
- /**
523
- * example:
524
- * [
525
- * "[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"
526
- * ]
527
- */
528
- outputs?: string[];
529
- }
530
- export interface ReplacementOutputV2 {
531
- /**
532
- * Dictionary mapping input templates and variable names to their resolved output values.
533
- * Values preserve their original types (string, array, object) instead of being stringified.
534
- *
535
- * Keys include:
536
- * - Original input templates (e.g., "Hello {{name}}")
537
- * - Individual variables found in templates (e.g., "{{name}}", "{{product_images[*].public_url}}")
538
- *
539
- * example:
540
- * {
541
- * "Hello {{first_name}}": "Hello John",
542
- * "{{first_name}}": "John",
543
- * "{{product_images[*].public_url}}": [
544
- * "http://myimage.server.com/img1.png",
545
- * "http://myimage.server.com/img2.png"
546
- * ]
547
- * }
548
- */
549
- outputs?: {
550
- [name: string]: string | number | boolean | any[] | {
551
- [name: string]: any;
552
- };
553
- };
554
- }
555
- export type TemplateType = "email" | "document";
556
- export interface VariableContext {
557
- /**
558
- * example:
559
- * https://consent.sls.epilot.io/v1/unsubscribe?token=abc123
560
- */
561
- unsubscribe_url?: string;
562
- /**
563
- * example:
564
- * {
565
- * "_id": "03be777b-3cf8-4bff-bb0c-253fd1128479",
566
- * "_title": "Example Customer",
567
- * "customer_number": 123,
568
- * "first_name": "Example",
569
- * "last_name": "Customer",
570
- * "title": "Prof.",
571
- * "salutation": "Ms. / Mrs.",
572
- * "birthdate": "2018-03-03",
573
- * "email": [
574
- * {
575
- * "email": "contact.primary@domain.com",
576
- * "_tags": [
577
- * "primary"
578
- * ]
579
- * },
580
- * {
581
- * "email": "sale@domain.com"
582
- * }
583
- * ],
584
- * "phone": [
585
- * {
586
- * "phone": "+49123456789",
587
- * "_tags": [
588
- * "primary",
589
- * "support"
590
- * ]
591
- * },
592
- * {
593
- * "phone": "+49504305025"
594
- * }
595
- * ],
596
- * "address": [
597
- * {
598
- * "_tags": [
599
- * "primary",
600
- * "delivery"
601
- * ],
602
- * "country": "Germany",
603
- * "city": "Köln",
604
- * "postal_code": "50825",
605
- * "street": "Im Mediapark",
606
- * "street_number": "8a",
607
- * "additional_info": "11th floor"
608
- * },
609
- * {
610
- * "_tags": [
611
- * "billing"
612
- * ],
613
- * "country": "Finland",
614
- * "city": "Köln",
615
- * "postal_code": "50670",
616
- * "street": "Im Mediapark",
617
- * "street_number": "8a",
618
- * "additional_info": ""
619
- * }
620
- * ],
621
- * "account": [
622
- * {
623
- * "status": "Active",
624
- * "_id": "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
625
- * "tax_id": "123abc",
626
- * "name": "name",
627
- * "email": [
628
- * {
629
- * "email": "account.primary@domain.com",
630
- * "_tags": [
631
- * "primary"
632
- * ]
633
- * },
634
- * {
635
- * "email": "account.sale@domain.com"
636
- * }
637
- * ],
638
- * "phone": [
639
- * {
640
- * "phone": "+49123456789",
641
- * "_tags": [
642
- * "primary",
643
- * "support"
644
- * ]
645
- * },
646
- * {
647
- * "phone": "+49504305025"
648
- * }
649
- * ],
650
- * "address": [
651
- * {
652
- * "_tags": [
653
- * "primary",
654
- * "delivery"
655
- * ],
656
- * "country": "Germany",
657
- * "city": "Köln",
658
- * "postal_code": "50825",
659
- * "street": "Im Mediapark",
660
- * "street_number": "8a",
661
- * "additional_info": "11th floor"
662
- * }
663
- * ]
664
- * }
665
- * ]
666
- * }
667
- */
668
- main?: {
669
- [name: string]: any;
670
- };
671
- /**
672
- * example:
673
- * {
674
- * "_id": "03be777b-3cf8-4bff-bb0c-253fd1128479",
675
- * "_title": "Example Customer",
676
- * "customer_number": 123,
677
- * "first_name": "Example",
678
- * "last_name": "Customer",
679
- * "title": "Prof.",
680
- * "salutation": "Ms. / Mrs.",
681
- * "birthdate": "2018-03-03",
682
- * "email": [
683
- * {
684
- * "email": "contact.primary@domain.com",
685
- * "_tags": [
686
- * "primary"
687
- * ]
688
- * },
689
- * {
690
- * "email": "sale@domain.com"
691
- * }
692
- * ],
693
- * "phone": [
694
- * {
695
- * "phone": "+49123456789",
696
- * "_tags": [
697
- * "primary",
698
- * "support"
699
- * ]
700
- * },
701
- * {
702
- * "phone": "+49504305025"
703
- * }
704
- * ],
705
- * "address": [
706
- * {
707
- * "_tags": [
708
- * "primary",
709
- * "delivery"
710
- * ],
711
- * "country": "Germany",
712
- * "city": "Köln",
713
- * "postal_code": "50825",
714
- * "street": "Im Mediapark",
715
- * "street_number": "8a",
716
- * "additional_info": "11th floor"
717
- * },
718
- * {
719
- * "_tags": [
720
- * "billing"
721
- * ],
722
- * "country": "Finland",
723
- * "city": "Köln",
724
- * "postal_code": "50670",
725
- * "street": "Im Mediapark",
726
- * "street_number": "8a",
727
- * "additional_info": ""
728
- * }
729
- * ],
730
- * "account": [
731
- * {
732
- * "status": "Active",
733
- * "_id": "c8d20ff6-df7a-465a-a26e-e5d28c2a3f79",
734
- * "tax_id": "123abc",
735
- * "name": "name",
736
- * "email": [
737
- * {
738
- * "email": "account.primary@domain.com",
739
- * "_tags": [
740
- * "primary"
741
- * ]
742
- * },
743
- * {
744
- * "email": "account.sale@domain.com"
745
- * }
746
- * ],
747
- * "phone": [
748
- * {
749
- * "phone": "+49123456789",
750
- * "_tags": [
751
- * "primary",
752
- * "support"
753
- * ]
754
- * },
755
- * {
756
- * "phone": "+49504305025"
757
- * }
758
- * ],
759
- * "address": [
760
- * {
761
- * "_tags": [
762
- * "primary",
763
- * "delivery"
764
- * ],
765
- * "country": "Germany",
766
- * "city": "KölnSS",
767
- * "postal_code": "50825",
768
- * "street": "Im Mediapark",
769
- * "street_number": "8a",
770
- * "additional_info": "11th floor"
771
- * }
772
- * ]
773
- * }
774
- * ]
775
- * }
776
- */
777
- contact?: {
778
- [name: string]: any;
779
- };
780
- /**
781
- * example:
782
- * {
783
- * "id": 123453,
784
- * "name": "Brand name",
785
- * "signature": "Signature"
786
- * }
787
- */
788
- brand?: {
789
- [name: string]: any;
790
- };
791
- }
792
- export interface VariableParameters {
793
- template_type: TemplateType;
794
- language?: /* 2-letter language code (ISO 639-1) */ Language;
795
- /**
796
- * 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.
797
- * example:
798
- * 63753437-c9e2-4e83-82bb-b1c666514561
799
- */
800
- main_entity_id?: string; // uuid
801
- /**
802
- * Brand ID
803
- * example:
804
- * 123451
805
- */
806
- brand_id?: number | null;
807
- /**
808
- * User ID
809
- * example:
810
- * 50001
811
- */
812
- user_id?: string | null;
813
- /**
814
- * Organization ID of the user
815
- * example:
816
- * 729224
817
- */
818
- user_org_id?: string | null;
819
- /**
820
- * Custom variables with specified values form other services.
821
- */
822
- custom_variables?: ExternalCustomVariable[];
823
- /**
824
- * If context data is available, this data will be used for variable replace.
825
- */
826
- context_data?: {
827
- [key: string]: any;
828
- };
829
- /**
830
- * The name of email template
831
- */
832
- template_name?: string;
833
- /**
834
- * The tags of email template
835
- */
836
- template_tags?: string[];
837
- /**
838
- * The Id of email template
839
- */
840
- template_id?: string;
841
- /**
842
- * The version of the variables syntax supported. Default is 1.0
843
- * example:
844
- * 2
845
- */
846
- variables_version?: string;
847
- }
848
- export interface VariableResult {
849
- type?: "simple" | "partial";
850
- /**
851
- * Payload for the QR data
852
- */
853
- qrdata?: string;
854
- /**
855
- * Variable group
856
- */
857
- group?: string;
858
- /**
859
- * The value which is used to insert to template
860
- */
861
- insert?: string;
862
- /**
863
- * Variable description
864
- */
865
- description?: string;
866
- }
867
- }
868
- }
869
- declare namespace Paths {
870
- namespace CreateCustomVariable {
871
- export type RequestBody = Components.Schemas.CustomVariable;
872
- namespace Responses {
873
- export type $201 = Components.Schemas.CustomVariable;
874
- export interface $403 {
875
- }
876
- export interface $409 {
877
- }
878
- }
879
- }
880
- namespace DeleteCustomVariable {
881
- namespace Parameters {
882
- export type Id = string;
883
- }
884
- export interface PathParameters {
885
- id: Parameters.Id;
886
- }
887
- namespace Responses {
888
- export interface $204 {
889
- }
890
- export interface $403 {
891
- }
892
- }
893
- }
894
- namespace GetBluePrintTableConfig {
895
- namespace Responses {
896
- export type $200 = Components.Schemas.CustomVariable;
897
- export interface $403 {
898
- }
899
- }
900
- }
901
- namespace GetCategories {
902
- namespace Parameters {
903
- export type Lang = /* 2-letter language code (ISO 639-1) */ Components.Schemas.Language;
904
- }
905
- export interface QueryParameters {
906
- lang?: Parameters.Lang;
907
- }
908
- namespace Responses {
909
- export type $200 = Components.Schemas.CategoryResult[];
910
- }
911
- }
912
- namespace GetCustomVariable {
913
- namespace Parameters {
914
- export type Id = string;
915
- }
916
- export interface PathParameters {
917
- id: Parameters.Id;
918
- }
919
- namespace Responses {
920
- export type $200 = Components.Schemas.CustomVariable;
921
- export interface $403 {
922
- }
923
- export interface $404 {
924
- }
925
- }
926
- }
927
- namespace GetCustomVariables {
928
- namespace Responses {
929
- export type $200 = Components.Schemas.CustomVariable[];
930
- export interface $403 {
931
- }
932
- }
933
- }
934
- namespace GetVariableContext {
935
- export interface RequestBody {
936
- parameters?: Components.Schemas.VariableParameters;
937
- }
938
- namespace Responses {
939
- export type $200 = Components.Schemas.VariableContext;
940
- }
941
- }
942
- namespace ReplaceTemplates {
943
- export interface RequestBody {
944
- inputs?: string[];
945
- parameters?: Components.Schemas.VariableParameters;
946
- }
947
- namespace Responses {
948
- export type $200 = Components.Schemas.ReplacementOutput;
949
- }
950
- }
951
- namespace ReplaceTemplatesV2 {
952
- export interface RequestBody {
953
- inputs?: string[];
954
- parameters?: Components.Schemas.VariableParameters;
955
- }
956
- namespace Responses {
957
- export type $200 = Components.Schemas.ReplacementOutputV2;
958
- }
959
- }
960
- namespace SearchCustomVariables {
961
- export type RequestBody = Components.Schemas.CustomVariablesSearchParams;
962
- namespace Responses {
963
- export interface $200 {
964
- results?: Components.Schemas.CustomVariable[];
965
- /**
966
- * Total number of results
967
- * example:
968
- * 100
969
- */
970
- hits?: number;
971
- }
972
- export interface $403 {
973
- }
974
- }
975
- }
976
- namespace SearchVariables {
977
- export interface RequestBody {
978
- template_type: Components.Schemas.TemplateType;
979
- /**
980
- * Search string
981
- * example:
982
- * logo
983
- */
984
- query: string;
985
- from?: number;
986
- size?: number;
987
- lang?: /* 2-letter language code (ISO 639-1) */ Components.Schemas.Language;
988
- entity_schemas?: string[];
989
- }
990
- namespace Responses {
991
- export type $200 = Components.Schemas.VariableResult[];
992
- }
993
- }
994
- namespace UpdateCustomVariable {
995
- namespace Parameters {
996
- export type Id = string;
997
- }
998
- export interface PathParameters {
999
- id: Parameters.Id;
1000
- }
1001
- export type RequestBody = Components.Schemas.CustomVariable;
1002
- namespace Responses {
1003
- export type $200 = Components.Schemas.CustomVariable;
1004
- export interface $403 {
1005
- }
1006
- export interface $409 {
1007
- }
1008
- }
1009
- }
1010
- }
1011
-
1012
-
1013
- interface OperationMethods {
1014
- /**
1015
- * getCategories - getCategories
1016
- *
1017
- * Get all template variable categories
1018
- */
1019
- 'getCategories'(
1020
- parameters?: Parameters<Paths.GetCategories.QueryParameters> | null,
1021
- data?: any,
1022
- config?: AxiosRequestConfig
1023
- ): OperationResponse<Paths.GetCategories.Responses.$200>
1024
- /**
1025
- * searchVariables - searchVariables
1026
- *
1027
- * Search variables
1028
- */
1029
- 'searchVariables'(
1030
- parameters?: Parameters<UnknownParamsObject> | null,
1031
- data?: Paths.SearchVariables.RequestBody,
1032
- config?: AxiosRequestConfig
1033
- ): OperationResponse<Paths.SearchVariables.Responses.$200>
1034
- /**
1035
- * getVariableContext - getVariableContext
1036
- *
1037
- * Get full variable context
1038
- *
1039
- * Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace
1040
- *
1041
- */
1042
- 'getVariableContext'(
1043
- parameters?: Parameters<UnknownParamsObject> | null,
1044
- data?: Paths.GetVariableContext.RequestBody,
1045
- config?: AxiosRequestConfig
1046
- ): OperationResponse<Paths.GetVariableContext.Responses.$200>
1047
- /**
1048
- * replaceTemplates - replaceTemplates
1049
- *
1050
- * Replace variables in handlebars templates
1051
- *
1052
- * Takes in an array of input templates and outputs the output text with replaced variables
1053
- *
1054
- */
1055
- 'replaceTemplates'(
1056
- parameters?: Parameters<UnknownParamsObject> | null,
1057
- data?: Paths.ReplaceTemplates.RequestBody,
1058
- config?: AxiosRequestConfig
1059
- ): OperationResponse<Paths.ReplaceTemplates.Responses.$200>
1060
- /**
1061
- * replaceTemplatesV2 - Replace variables in templates (V2)
1062
- *
1063
- * Replace variables in handlebars templates with raw value preservation
1064
- *
1065
- * V2 returns parsed outputs that preserve the original data types (arrays, objects, strings)
1066
- * instead of stringifying always. Variables with strings mixed with other variables will be returned in the stringified format.
1067
- * Alongside the parsed outputs for every single variable.
1068
- *
1069
- * Takes in an array of input templates and outputs an object mapping each input and variable
1070
- * to their rendered values with type preservation.
1071
- *
1072
- */
1073
- 'replaceTemplatesV2'(
1074
- parameters?: Parameters<UnknownParamsObject> | null,
1075
- data?: Paths.ReplaceTemplatesV2.RequestBody,
1076
- config?: AxiosRequestConfig
1077
- ): OperationResponse<Paths.ReplaceTemplatesV2.Responses.$200>
1078
- /**
1079
- * getCustomVariables - Get custom variables
1080
- *
1081
- * Get all custom variables of organization
1082
- */
1083
- 'getCustomVariables'(
1084
- parameters?: Parameters<UnknownParamsObject> | null,
1085
- data?: any,
1086
- config?: AxiosRequestConfig
1087
- ): OperationResponse<Paths.GetCustomVariables.Responses.$200>
1088
- /**
1089
- * createCustomVariable - Create custom variable
1090
- *
1091
- * Create custom variable
1092
- */
1093
- 'createCustomVariable'(
1094
- parameters?: Parameters<UnknownParamsObject> | null,
1095
- data?: Paths.CreateCustomVariable.RequestBody,
1096
- config?: AxiosRequestConfig
1097
- ): OperationResponse<Paths.CreateCustomVariable.Responses.$201>
1098
- /**
1099
- * searchCustomVariables - searchCustomVariables
1100
- *
1101
- * Search custom variables
1102
- */
1103
- 'searchCustomVariables'(
1104
- parameters?: Parameters<UnknownParamsObject> | null,
1105
- data?: Paths.SearchCustomVariables.RequestBody,
1106
- config?: AxiosRequestConfig
1107
- ): OperationResponse<Paths.SearchCustomVariables.Responses.$200>
1108
- /**
1109
- * getCustomVariable - Get custom variable
1110
- *
1111
- * Get custom variable
1112
- */
1113
- 'getCustomVariable'(
1114
- parameters?: Parameters<Paths.GetCustomVariable.PathParameters> | null,
1115
- data?: any,
1116
- config?: AxiosRequestConfig
1117
- ): OperationResponse<Paths.GetCustomVariable.Responses.$200>
1118
- /**
1119
- * updateCustomVariable - Update custom variable
1120
- *
1121
- * Update custom variable
1122
- */
1123
- 'updateCustomVariable'(
1124
- parameters?: Parameters<Paths.UpdateCustomVariable.PathParameters> | null,
1125
- data?: Paths.UpdateCustomVariable.RequestBody,
1126
- config?: AxiosRequestConfig
1127
- ): OperationResponse<Paths.UpdateCustomVariable.Responses.$200>
1128
- /**
1129
- * deleteCustomVariable - Delete custom variable
1130
- *
1131
- * Immediately and permanently deletes a custom variable
1132
- */
1133
- 'deleteCustomVariable'(
1134
- parameters?: Parameters<Paths.DeleteCustomVariable.PathParameters> | null,
1135
- data?: any,
1136
- config?: AxiosRequestConfig
1137
- ): OperationResponse<Paths.DeleteCustomVariable.Responses.$204>
1138
- /**
1139
- * getBluePrintTableConfig - Get default table config
1140
- *
1141
- * Get default table config
1142
- */
1143
- 'getBluePrintTableConfig'(
1144
- parameters?: Parameters<UnknownParamsObject> | null,
1145
- data?: any,
1146
- config?: AxiosRequestConfig
1147
- ): OperationResponse<Paths.GetBluePrintTableConfig.Responses.$200>
1148
- }
1149
-
1150
- interface PathsDictionary {
1151
- ['/v1/template-variables/categories']: {
1152
- /**
1153
- * getCategories - getCategories
1154
- *
1155
- * Get all template variable categories
1156
- */
1157
- 'get'(
1158
- parameters?: Parameters<Paths.GetCategories.QueryParameters> | null,
1159
- data?: any,
1160
- config?: AxiosRequestConfig
1161
- ): OperationResponse<Paths.GetCategories.Responses.$200>
1162
- }
1163
- ['/v1/template-variables:search']: {
1164
- /**
1165
- * searchVariables - searchVariables
1166
- *
1167
- * Search variables
1168
- */
1169
- 'post'(
1170
- parameters?: Parameters<UnknownParamsObject> | null,
1171
- data?: Paths.SearchVariables.RequestBody,
1172
- config?: AxiosRequestConfig
1173
- ): OperationResponse<Paths.SearchVariables.Responses.$200>
1174
- }
1175
- ['/v1/template-variables:context']: {
1176
- /**
1177
- * getVariableContext - getVariableContext
1178
- *
1179
- * Get full variable context
1180
- *
1181
- * Calls Entity API, User API, Brand API and others to construct full context object used for template variable replace
1182
- *
1183
- */
1184
- 'post'(
1185
- parameters?: Parameters<UnknownParamsObject> | null,
1186
- data?: Paths.GetVariableContext.RequestBody,
1187
- config?: AxiosRequestConfig
1188
- ): OperationResponse<Paths.GetVariableContext.Responses.$200>
1189
- }
1190
- ['/v1/template-variables:replace']: {
1191
- /**
1192
- * replaceTemplates - replaceTemplates
1193
- *
1194
- * Replace variables in handlebars templates
1195
- *
1196
- * Takes in an array of input templates and outputs the output text with replaced variables
1197
- *
1198
- */
1199
- 'post'(
1200
- parameters?: Parameters<UnknownParamsObject> | null,
1201
- data?: Paths.ReplaceTemplates.RequestBody,
1202
- config?: AxiosRequestConfig
1203
- ): OperationResponse<Paths.ReplaceTemplates.Responses.$200>
1204
- }
1205
- ['/v2/template:replace']: {
1206
- /**
1207
- * replaceTemplatesV2 - Replace variables in templates (V2)
1208
- *
1209
- * Replace variables in handlebars templates with raw value preservation
1210
- *
1211
- * V2 returns parsed outputs that preserve the original data types (arrays, objects, strings)
1212
- * instead of stringifying always. Variables with strings mixed with other variables will be returned in the stringified format.
1213
- * Alongside the parsed outputs for every single variable.
1214
- *
1215
- * Takes in an array of input templates and outputs an object mapping each input and variable
1216
- * to their rendered values with type preservation.
1217
- *
1218
- */
1219
- 'post'(
1220
- parameters?: Parameters<UnknownParamsObject> | null,
1221
- data?: Paths.ReplaceTemplatesV2.RequestBody,
1222
- config?: AxiosRequestConfig
1223
- ): OperationResponse<Paths.ReplaceTemplatesV2.Responses.$200>
1224
- }
1225
- ['/v1/custom-variables']: {
1226
- /**
1227
- * getCustomVariables - Get custom variables
1228
- *
1229
- * Get all custom variables of organization
1230
- */
1231
- 'get'(
1232
- parameters?: Parameters<UnknownParamsObject> | null,
1233
- data?: any,
1234
- config?: AxiosRequestConfig
1235
- ): OperationResponse<Paths.GetCustomVariables.Responses.$200>
1236
- /**
1237
- * createCustomVariable - Create custom variable
1238
- *
1239
- * Create custom variable
1240
- */
1241
- 'post'(
1242
- parameters?: Parameters<UnknownParamsObject> | null,
1243
- data?: Paths.CreateCustomVariable.RequestBody,
1244
- config?: AxiosRequestConfig
1245
- ): OperationResponse<Paths.CreateCustomVariable.Responses.$201>
1246
- }
1247
- ['/v1/custom-variables:search']: {
1248
- /**
1249
- * searchCustomVariables - searchCustomVariables
1250
- *
1251
- * Search custom variables
1252
- */
1253
- 'post'(
1254
- parameters?: Parameters<UnknownParamsObject> | null,
1255
- data?: Paths.SearchCustomVariables.RequestBody,
1256
- config?: AxiosRequestConfig
1257
- ): OperationResponse<Paths.SearchCustomVariables.Responses.$200>
1258
- }
1259
- ['/v1/custom-variables/{id}']: {
1260
- /**
1261
- * updateCustomVariable - Update custom variable
1262
- *
1263
- * Update custom variable
1264
- */
1265
- 'put'(
1266
- parameters?: Parameters<Paths.UpdateCustomVariable.PathParameters> | null,
1267
- data?: Paths.UpdateCustomVariable.RequestBody,
1268
- config?: AxiosRequestConfig
1269
- ): OperationResponse<Paths.UpdateCustomVariable.Responses.$200>
1270
- /**
1271
- * getCustomVariable - Get custom variable
1272
- *
1273
- * Get custom variable
1274
- */
1275
- 'get'(
1276
- parameters?: Parameters<Paths.GetCustomVariable.PathParameters> | null,
1277
- data?: any,
1278
- config?: AxiosRequestConfig
1279
- ): OperationResponse<Paths.GetCustomVariable.Responses.$200>
1280
- /**
1281
- * deleteCustomVariable - Delete custom variable
1282
- *
1283
- * Immediately and permanently deletes a custom variable
1284
- */
1285
- 'delete'(
1286
- parameters?: Parameters<Paths.DeleteCustomVariable.PathParameters> | null,
1287
- data?: any,
1288
- config?: AxiosRequestConfig
1289
- ): OperationResponse<Paths.DeleteCustomVariable.Responses.$204>
1290
- }
1291
- ['/v1/custom-variables/order-table-blueprint']: {
1292
- /**
1293
- * getBluePrintTableConfig - Get default table config
1294
- *
1295
- * Get default table config
1296
- */
1297
- 'get'(
1298
- parameters?: Parameters<UnknownParamsObject> | null,
1299
- data?: any,
1300
- config?: AxiosRequestConfig
1301
- ): OperationResponse<Paths.GetBluePrintTableConfig.Responses.$200>
1302
- }
1303
- }
1304
-
1305
- type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1306
-
1307
-
1308
- type CategoryResult = Components.Schemas.CategoryResult;
1309
- type CustomVariable = Components.Schemas.CustomVariable;
1310
- type CustomVariablesSearchParams = Components.Schemas.CustomVariablesSearchParams;
1311
- type ExternalCustomVariable = Components.Schemas.ExternalCustomVariable;
1312
- type Language = Components.Schemas.Language;
1313
- type ReplacementOutput = Components.Schemas.ReplacementOutput;
1314
- type ReplacementOutputV2 = Components.Schemas.ReplacementOutputV2;
1315
- type TemplateType = Components.Schemas.TemplateType;
1316
- type VariableContext = Components.Schemas.VariableContext;
1317
- type VariableParameters = Components.Schemas.VariableParameters;
1318
- type VariableResult = Components.Schemas.VariableResult;
1319
-
1320
- export { type Client as C, type ExternalCustomVariable as E, type Language as L, type OperationMethods as O, Paths as P, type ReplacementOutput as R, type TemplateType as T, type VariableContext as V, Components as a, type PathsDictionary as b, type CategoryResult as c, type CustomVariable as d, type CustomVariablesSearchParams as e, type ReplacementOutputV2 as f, type VariableParameters as g, type VariableResult as h };