@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,796 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
2
+
3
+ // src/definitions/billing.json
4
+ var openapi = "3.0.3";
5
+ var info = {
6
+ title: "Billing API",
7
+ description: "API to manage billing data for epilot contracts and orders",
8
+ version: "1.0.0"
9
+ };
10
+ var tags = [
11
+ {
12
+ name: "Billing Events",
13
+ description: "Manage installments, payments and reimbursements"
14
+ },
15
+ {
16
+ name: "Contracts",
17
+ description: "Manage contracts within 360"
18
+ },
19
+ {
20
+ name: "Balance",
21
+ description: "Get customer balance"
22
+ }
23
+ ];
24
+ var security = [
25
+ {
26
+ EpilotAuth: []
27
+ }
28
+ ];
29
+ var paths = {
30
+ "/v1/billing/events": {
31
+ get: {
32
+ operationId: "getBillingEvents",
33
+ summary: "getBillingEvents",
34
+ description: "Get and filter billing events such as installments and reimbursements.",
35
+ tags: ["Billing Events"],
36
+ parameters: [
37
+ {
38
+ in: "query",
39
+ name: "from",
40
+ required: false,
41
+ schema: {
42
+ type: "number",
43
+ description: "Initial offset to set for the search results",
44
+ example: 0,
45
+ default: 0
46
+ }
47
+ },
48
+ {
49
+ in: "query",
50
+ name: "size",
51
+ required: false,
52
+ schema: {
53
+ type: "number",
54
+ description: "Size of the search results",
55
+ example: 100,
56
+ default: 100
57
+ }
58
+ },
59
+ {
60
+ name: "entity_id",
61
+ in: "query",
62
+ description: "Entity ID to filter billing events by",
63
+ required: false,
64
+ schema: {
65
+ type: "array",
66
+ items: {
67
+ type: "string"
68
+ }
69
+ }
70
+ },
71
+ {
72
+ name: "event_type",
73
+ in: "query",
74
+ schema: {
75
+ type: "string",
76
+ enum: ["installment", "reimbursement"],
77
+ description: "Type of billing event to filter by"
78
+ }
79
+ },
80
+ {
81
+ name: "date_after",
82
+ in: "query",
83
+ schema: {
84
+ type: "string",
85
+ format: "date-time",
86
+ description: "List billing events after this date"
87
+ }
88
+ },
89
+ {
90
+ name: "date_before",
91
+ in: "query",
92
+ schema: {
93
+ type: "string",
94
+ format: "date-time",
95
+ description: "List billing events before this date"
96
+ }
97
+ }
98
+ ],
99
+ responses: {
100
+ "200": {
101
+ description: "List of billing events",
102
+ content: {
103
+ "application/json": {
104
+ schema: {
105
+ type: "object",
106
+ properties: {
107
+ hits: {
108
+ type: "integer"
109
+ },
110
+ results: {
111
+ type: "array",
112
+ items: {
113
+ $ref: "#/components/schemas/BillingEvent"
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ post: {
124
+ operationId: "createBillingEvent",
125
+ summary: "createBillingEvent",
126
+ description: "Create a new billing event.",
127
+ tags: ["Billing Events"],
128
+ requestBody: {
129
+ required: true,
130
+ content: {
131
+ "application/json": {
132
+ schema: {
133
+ allOf: [
134
+ {
135
+ $ref: "#/components/schemas/BillingEvent"
136
+ }
137
+ ]
138
+ }
139
+ }
140
+ }
141
+ },
142
+ responses: {
143
+ "201": {
144
+ description: "Billing event created successfully",
145
+ content: {
146
+ "application/json": {
147
+ schema: {
148
+ allOf: [
149
+ {
150
+ $ref: "#/components/schemas/BillingEvent"
151
+ }
152
+ ]
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "/v1/billing/events/{id}": {
161
+ get: {
162
+ operationId: "getBillingEvent",
163
+ summary: "getBillingEvent",
164
+ description: "Get a single billing event by ID.",
165
+ tags: ["Billing Events"],
166
+ parameters: [
167
+ {
168
+ name: "id",
169
+ in: "path",
170
+ required: true,
171
+ description: "ID of the billing event to get",
172
+ schema: {
173
+ type: "string"
174
+ }
175
+ }
176
+ ],
177
+ responses: {
178
+ "200": {
179
+ description: "Billing Event",
180
+ content: {
181
+ "application/json": {
182
+ schema: {
183
+ $ref: "#/components/schemas/BillingEvent"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ },
190
+ patch: {
191
+ operationId: "updateBillingEvent",
192
+ summary: "updateBillingEvent",
193
+ description: "Update an existing billing event.",
194
+ tags: ["Billing Events"],
195
+ parameters: [
196
+ {
197
+ name: "id",
198
+ in: "path",
199
+ required: true,
200
+ description: "ID of the billing event to update",
201
+ schema: {
202
+ type: "string"
203
+ }
204
+ }
205
+ ],
206
+ requestBody: {
207
+ required: true,
208
+ content: {
209
+ "application/json": {
210
+ schema: {
211
+ $ref: "#/components/schemas/BillingEvent"
212
+ }
213
+ }
214
+ }
215
+ },
216
+ responses: {
217
+ "200": {
218
+ description: "Billing Event updated successfully",
219
+ content: {
220
+ "application/json": {
221
+ schema: {
222
+ $ref: "#/components/schemas/BillingEvent"
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ },
229
+ delete: {
230
+ operationId: "deleteBillingEvent",
231
+ summary: "deleteBillingEvent",
232
+ description: "Delete an existing billing event.",
233
+ tags: ["Billing Events"],
234
+ parameters: [
235
+ {
236
+ name: "id",
237
+ in: "path",
238
+ required: true,
239
+ description: "ID of the billing event to delete",
240
+ schema: {
241
+ type: "string"
242
+ }
243
+ }
244
+ ],
245
+ responses: {
246
+ "204": {
247
+ description: "Billing Event deleted successfully"
248
+ }
249
+ }
250
+ }
251
+ },
252
+ "/v1/billing/external/{external_id}": {
253
+ get: {
254
+ operationId: "getBillingEventByExternalId",
255
+ summary: "getBillingEventByExternalId",
256
+ description: "Get a single billing event by External ID.",
257
+ tags: ["Billing Events"],
258
+ parameters: [
259
+ {
260
+ name: "external_id",
261
+ in: "path",
262
+ required: true,
263
+ description: "ID of the billing event to get",
264
+ schema: {
265
+ type: "string"
266
+ }
267
+ }
268
+ ],
269
+ responses: {
270
+ "200": {
271
+ description: "Billing Event",
272
+ content: {
273
+ "application/json": {
274
+ schema: {
275
+ $ref: "#/components/schemas/BillingEvent"
276
+ }
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ },
283
+ "/v1/billing/contracts": {
284
+ post: {
285
+ operationId: "createContractEntity",
286
+ summary: "createContractEntity",
287
+ description: "Create a new contract entity.",
288
+ tags: ["Contracts"],
289
+ requestBody: {
290
+ required: true,
291
+ content: {
292
+ "application/json": {
293
+ schema: {
294
+ $ref: "#/components/schemas/Contract"
295
+ }
296
+ }
297
+ }
298
+ },
299
+ responses: {
300
+ "201": {
301
+ description: "Contract created successfully",
302
+ content: {
303
+ "application/json": {
304
+ schema: {
305
+ $ref: "#/components/schemas/ContractItem"
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ },
313
+ "/v1/billing/contracts/{id}": {
314
+ patch: {
315
+ operationId: "updateContractEntity",
316
+ summary: "updateContractEntity",
317
+ description: "Update an existing contract entity.",
318
+ tags: ["Contracts"],
319
+ parameters: [
320
+ {
321
+ name: "id",
322
+ in: "path",
323
+ required: true,
324
+ description: "ID of the contract entity to update",
325
+ schema: {
326
+ type: "string"
327
+ }
328
+ }
329
+ ],
330
+ requestBody: {
331
+ required: true,
332
+ content: {
333
+ "application/json": {
334
+ schema: {
335
+ $ref: "#/components/schemas/Contract"
336
+ }
337
+ }
338
+ }
339
+ },
340
+ responses: {
341
+ "200": {
342
+ description: "Contract updated successfully",
343
+ content: {
344
+ "application/json": {
345
+ schema: {
346
+ $ref: "#/components/schemas/ContractItem"
347
+ }
348
+ }
349
+ }
350
+ }
351
+ }
352
+ },
353
+ delete: {
354
+ operationId: "deleteContractEntity",
355
+ summary: "deleteContractEntity",
356
+ description: "Delete an existing contract entity.",
357
+ tags: ["Contracts"],
358
+ parameters: [
359
+ {
360
+ name: "id",
361
+ in: "path",
362
+ required: true,
363
+ description: "ID of the contract entity to delete",
364
+ schema: {
365
+ type: "string"
366
+ }
367
+ }
368
+ ],
369
+ responses: {
370
+ "204": {
371
+ description: "Contract deleted successfully",
372
+ content: {
373
+ "application/json": {
374
+ schema: {
375
+ $ref: "#/components/schemas/ContractItem"
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "/v1/billing/customers/{id}/balance": {
384
+ get: {
385
+ operationId: "getCustomerBalance",
386
+ summary: "getCustomerBalance",
387
+ description: "Get total balance across all contracts and orders of a customer entity.",
388
+ tags: ["Balance"],
389
+ parameters: [
390
+ {
391
+ name: "id",
392
+ in: "path",
393
+ description: "Customer entity ID (contact or account)",
394
+ required: true,
395
+ schema: {
396
+ type: "string",
397
+ example: "1e3f0d58-69d2-4dbb-9a43-3ee63d862e8e"
398
+ }
399
+ }
400
+ ],
401
+ responses: {
402
+ "200": {
403
+ description: "OK",
404
+ content: {
405
+ "application/json": {
406
+ schema: {
407
+ $ref: "#/components/schemas/Balance"
408
+ }
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ }
415
+ };
416
+ var components = {
417
+ securitySchemes: {
418
+ EpilotAuth: {
419
+ type: "http",
420
+ scheme: "bearer",
421
+ description: "Epilot 360 Bearer Token",
422
+ bearerFormat: "JWT"
423
+ }
424
+ },
425
+ schemas: {
426
+ BaseEntity: {
427
+ type: "object",
428
+ additionalProperties: true,
429
+ properties: {
430
+ _id: {
431
+ $ref: "#/components/schemas/EntityId"
432
+ },
433
+ _title: {
434
+ type: "string",
435
+ description: "Title of entity"
436
+ },
437
+ _org: {
438
+ type: "string",
439
+ description: "Organization Id the entity belongs to"
440
+ },
441
+ _schema: {
442
+ $ref: "#/components/schemas/EntitySlug"
443
+ },
444
+ _tags: {
445
+ type: "array",
446
+ items: {
447
+ type: "string"
448
+ }
449
+ },
450
+ _created_at: {
451
+ type: "string"
452
+ },
453
+ _updated_at: {
454
+ type: "string"
455
+ }
456
+ }
457
+ },
458
+ EntityId: {
459
+ type: "string",
460
+ description: "Entity ID",
461
+ example: "5da0a718-c822-403d-9f5d-20d4584e0528"
462
+ },
463
+ EntitySlug: {
464
+ description: "URL-friendly identifier for the entity schema",
465
+ type: "string",
466
+ enum: [
467
+ "contact",
468
+ "contract",
469
+ "file",
470
+ "order",
471
+ "opportunity",
472
+ "product",
473
+ "price",
474
+ "meter",
475
+ "meter_counter",
476
+ "billing_event"
477
+ ],
478
+ example: "contact"
479
+ },
480
+ EntityRelationItem: {
481
+ type: "object",
482
+ properties: {
483
+ entity_id: {
484
+ type: "string",
485
+ description: "Entity ID for the related contract.",
486
+ example: "f589786b-3024-43cd-9cb3-5a3c953f2896"
487
+ }
488
+ }
489
+ },
490
+ BaseBillingEvent: {
491
+ allOf: [
492
+ {
493
+ $ref: "#/components/schemas/BaseEntity"
494
+ }
495
+ ],
496
+ description: "A base billing event to be inherited by all billing events.",
497
+ type: "object",
498
+ required: ["type", "contract", "billing_amount", "billing_amount_decimal", "billing_currency"],
499
+ additionalProperties: true,
500
+ properties: {
501
+ billing_amount: {
502
+ type: "integer",
503
+ description: "Amount to be paid in cents i.e. precision 2",
504
+ example: 10050
505
+ },
506
+ billing_amount_decimal: {
507
+ type: "string",
508
+ description: "Amount to be paid in cents in decimal string representation",
509
+ example: "100.50"
510
+ },
511
+ billing_currency: {
512
+ $ref: "#/components/schemas/Currency"
513
+ },
514
+ external_id: {
515
+ type: "string",
516
+ description: "Unique identifier for event, used to reference the event to a 3rd party resource such as a SAP Installment.",
517
+ example: "d4fb2a4e-3f74-4fc4-8fba-6fdaaaa3b08e"
518
+ },
519
+ contract: {
520
+ type: "object",
521
+ properties: {
522
+ $relation: {
523
+ type: "array",
524
+ items: {
525
+ $ref: "#/components/schemas/EntityRelationItem"
526
+ }
527
+ }
528
+ }
529
+ }
530
+ }
531
+ },
532
+ InstallmentEvent: {
533
+ description: "An entity that describes an installment billing event.",
534
+ allOf: [
535
+ {
536
+ $ref: "#/components/schemas/BaseBillingEvent"
537
+ },
538
+ {
539
+ type: "object",
540
+ properties: {
541
+ type: {
542
+ type: "string",
543
+ enum: ["installment"],
544
+ description: "Type of the billing event.",
545
+ example: "installment"
546
+ },
547
+ due_date: {
548
+ type: "string",
549
+ format: "date-time",
550
+ description: "Date on which the installment is due."
551
+ },
552
+ paid_date: {
553
+ type: "string",
554
+ format: "date-time",
555
+ description: "Date on which the installment is paid by the customer."
556
+ }
557
+ },
558
+ required: ["due_date"]
559
+ }
560
+ ]
561
+ },
562
+ ReimbursementEvent: {
563
+ description: "An entity that describes a reimbursement billing event.",
564
+ allOf: [
565
+ {
566
+ $ref: "#/components/schemas/BaseBillingEvent"
567
+ },
568
+ {
569
+ type: "object",
570
+ properties: {
571
+ type: {
572
+ type: "string",
573
+ enum: ["reimbursement"],
574
+ description: "Type of the billing event.",
575
+ example: "reimbursement"
576
+ },
577
+ paid_date: {
578
+ type: "string",
579
+ format: "date-time",
580
+ description: "Date on which the customer is reimbursed."
581
+ }
582
+ }
583
+ }
584
+ ]
585
+ },
586
+ BillingEvent: {
587
+ description: "An entity that describes a billing event such as a future installment or a reimbursement back to the customer.",
588
+ oneOf: [
589
+ {
590
+ $ref: "#/components/schemas/InstallmentEvent"
591
+ },
592
+ {
593
+ $ref: "#/components/schemas/ReimbursementEvent"
594
+ }
595
+ ]
596
+ },
597
+ Contract: {
598
+ allOf: [
599
+ {
600
+ $ref: "#/components/schemas/BaseEntity"
601
+ },
602
+ {
603
+ type: "object",
604
+ properties: {
605
+ contract_name: {
606
+ type: "string",
607
+ description: "The name of the contract.",
608
+ example: "Grid Contract"
609
+ },
610
+ contract_number: {
611
+ type: "string",
612
+ description: "The unique identifier of the contract.",
613
+ example: "12345"
614
+ },
615
+ status: {
616
+ type: "string",
617
+ enum: [
618
+ "draft",
619
+ "in_approval_process",
620
+ "approved",
621
+ "active",
622
+ "deactivated",
623
+ "revoked",
624
+ "terminated",
625
+ "expired"
626
+ ],
627
+ default: "draft",
628
+ description: "The status of the contract.",
629
+ example: "approved"
630
+ },
631
+ description: {
632
+ type: "string",
633
+ description: "A brief description of the contract.",
634
+ example: "This contract is for the supply of widgets."
635
+ },
636
+ account_number: {
637
+ type: "string",
638
+ description: "The account number associated with the contract.",
639
+ example: "67890"
640
+ },
641
+ branch: {
642
+ type: "string",
643
+ enum: ["power", "gas", "water", "waste_water", "district_heating"],
644
+ description: "The branch associated with the contract.",
645
+ example: "power"
646
+ },
647
+ billing_address: {
648
+ type: "string",
649
+ description: "The billing address associated with the contract.",
650
+ example: "123 Main St, Anytown"
651
+ },
652
+ delivery_address: {
653
+ type: "string",
654
+ description: "The delivery address associated with the contract.",
655
+ example: "456 Elm St, Anytown"
656
+ },
657
+ additional_addresses: {
658
+ type: "string",
659
+ description: "Any additional addresses associated with the contract.",
660
+ example: "789 Oak St, Anytown"
661
+ },
662
+ termination_date: {
663
+ type: "string",
664
+ description: "The date on which the contract was terminated.",
665
+ example: "2022-01-01"
666
+ },
667
+ termination_reason: {
668
+ type: "string",
669
+ description: "The reason for the termination of the contract.",
670
+ example: "Non-payment"
671
+ },
672
+ billing_period: {
673
+ type: "string",
674
+ enum: ["weekly", "monthly", "every_quarter", "every_6_months", "yearly"],
675
+ default: "weekly",
676
+ description: "The billing period associated with the contract.",
677
+ example: "monthly"
678
+ },
679
+ billing_duration_amount: {
680
+ type: "number",
681
+ minimum: 0,
682
+ description: "The duration of the billing period.",
683
+ example: 30
684
+ },
685
+ renewal_duration_amount: {
686
+ type: "number",
687
+ minimum: 0,
688
+ description: "The duration of the renewal period.",
689
+ example: 365
690
+ },
691
+ renewal_duration_unit: {
692
+ type: "string",
693
+ enum: ["weeks", "months", "years"],
694
+ default: "months",
695
+ description: "The unit of time for the renewal period.",
696
+ example: "years"
697
+ },
698
+ notice_time_amount: {
699
+ type: "number",
700
+ minimum: 0,
701
+ description: "The amount of notice required for termination of the contract.",
702
+ example: 30
703
+ },
704
+ notice_time_unit: {
705
+ type: "string",
706
+ enum: ["weeks", "months", "years"],
707
+ default: "months",
708
+ description: "The unit of time for the notice period.",
709
+ example: "months"
710
+ },
711
+ start_date: {
712
+ type: "string",
713
+ description: "The start date of the contract.",
714
+ example: "2021-01-01"
715
+ },
716
+ billing_due_day: {
717
+ type: "integer",
718
+ description: "Defines the day of the month in which the installments are due.",
719
+ minimum: 1,
720
+ maximum: 31,
721
+ example: 2
722
+ },
723
+ installment_amount: {
724
+ type: "integer",
725
+ description: "Set amount for installments in cents. (precision 2)",
726
+ example: 10050
727
+ },
728
+ balance: {
729
+ type: "integer",
730
+ description: "Current balance of the contract in cents. (precision 2)",
731
+ example: 8990
732
+ },
733
+ balance_currency: {
734
+ $ref: "#/components/schemas/Currency"
735
+ }
736
+ }
737
+ }
738
+ ]
739
+ },
740
+ ContractItem: {
741
+ allOf: [
742
+ {
743
+ $ref: "#/components/schemas/Contract"
744
+ }
745
+ ],
746
+ required: ["_id", "_title", "_org", "_created_at", "_updated_at"]
747
+ },
748
+ Balance: {
749
+ type: "object",
750
+ properties: {
751
+ balance: {
752
+ type: "integer",
753
+ description: "Current balance of the customer in cents. (precision 2)",
754
+ example: 8990
755
+ },
756
+ balance_decimal: {
757
+ type: "string",
758
+ description: "Current balance of the customer in decimal string representation.",
759
+ example: "89.90"
760
+ },
761
+ balance_currency: {
762
+ $ref: "#/components/schemas/Currency"
763
+ }
764
+ }
765
+ },
766
+ Currency: {
767
+ type: "string",
768
+ description: "Currency code in ISO 4217 format",
769
+ example: "EUR"
770
+ }
771
+ }
772
+ };
773
+ var servers = [
774
+ {
775
+ url: "https://billing.sls.epilot.io"
776
+ }
777
+ ];
778
+ var billing_default = {
779
+ openapi,
780
+ info,
781
+ tags,
782
+ security,
783
+ paths,
784
+ components,
785
+ servers
786
+ };
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+ exports.components = components; exports.default = billing_default; exports.info = info; exports.openapi = openapi; exports.paths = paths; exports.security = security; exports.servers = servers; exports.tags = tags;