@epilot/sdk 2.1.0-rc.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/definitions/app.json +38 -0
  2. package/definitions/automation.json +2 -37
  3. package/definitions/blueprint-manifest-runtime.json +1 -1
  4. package/definitions/blueprint-manifest.json +115 -1
  5. package/definitions/customer-portal-runtime.json +1 -1
  6. package/definitions/customer-portal.json +279 -42
  7. package/definitions/data-management.json +10 -0
  8. package/definitions/email-template.json +25 -3
  9. package/definitions/entity.json +205 -3
  10. package/definitions/erp-integration-runtime.json +1 -1
  11. package/definitions/erp-integration.json +472 -13
  12. package/definitions/journey.json +257 -12
  13. package/definitions/kanban.json +630 -78
  14. package/definitions/organization-runtime.json +1 -1
  15. package/definitions/organization.json +614 -51
  16. package/definitions/workflow.json +40 -0
  17. package/dist/README-VG67PX4R.js +7 -0
  18. package/dist/README-W4B35MRN.cjs +7 -0
  19. package/dist/_index-AMVZBT2K.cjs +99 -0
  20. package/dist/_index-S6LFD3ER.js +99 -0
  21. package/dist/access-token-6BJDZSFE.cjs +7 -0
  22. package/dist/access-token-GSQZLDXR.js +7 -0
  23. package/dist/address-HA4RMRNQ.cjs +7 -0
  24. package/dist/address-QVJUGMOG.js +7 -0
  25. package/dist/address-suggestions-74244BAJ.js +7 -0
  26. package/dist/address-suggestions-IUQMYF27.cjs +7 -0
  27. package/dist/ai-agents-IZWFEUSH.js +7 -0
  28. package/dist/ai-agents-PWHKNRCX.cjs +7 -0
  29. package/dist/apis/access-token.cjs +10 -8
  30. package/dist/apis/access-token.js +5 -3
  31. package/dist/apis/address-suggestions.cjs +10 -8
  32. package/dist/apis/address-suggestions.js +5 -3
  33. package/dist/apis/address.cjs +10 -8
  34. package/dist/apis/address.js +5 -3
  35. package/dist/apis/ai-agents.cjs +10 -8
  36. package/dist/apis/ai-agents.js +5 -3
  37. package/dist/apis/app.cjs +10 -8
  38. package/dist/apis/app.js +5 -3
  39. package/dist/apis/audit-logs.cjs +10 -8
  40. package/dist/apis/audit-logs.js +5 -3
  41. package/dist/apis/automation.cjs +10 -8
  42. package/dist/apis/automation.js +5 -3
  43. package/dist/apis/billing.cjs +10 -8
  44. package/dist/apis/billing.js +5 -3
  45. package/dist/apis/blueprint-manifest.cjs +10 -8
  46. package/dist/apis/blueprint-manifest.js +5 -3
  47. package/dist/apis/consent.cjs +10 -8
  48. package/dist/apis/consent.js +5 -3
  49. package/dist/apis/customer-portal.cjs +10 -8
  50. package/dist/apis/customer-portal.js +5 -3
  51. package/dist/apis/dashboard.cjs +10 -8
  52. package/dist/apis/dashboard.js +5 -3
  53. package/dist/apis/data-management.cjs +10 -8
  54. package/dist/apis/data-management.js +5 -3
  55. package/dist/apis/deduplication.cjs +10 -8
  56. package/dist/apis/deduplication.js +5 -3
  57. package/dist/apis/design.cjs +10 -8
  58. package/dist/apis/design.js +5 -3
  59. package/dist/apis/document.cjs +10 -8
  60. package/dist/apis/document.js +5 -3
  61. package/dist/apis/email-settings.cjs +10 -8
  62. package/dist/apis/email-settings.js +5 -3
  63. package/dist/apis/email-template.cjs +10 -8
  64. package/dist/apis/email-template.js +5 -3
  65. package/dist/apis/entity-mapping.cjs +10 -8
  66. package/dist/apis/entity-mapping.js +5 -3
  67. package/dist/apis/entity.cjs +10 -8
  68. package/dist/apis/entity.js +5 -3
  69. package/dist/apis/environments.cjs +10 -8
  70. package/dist/apis/environments.js +5 -3
  71. package/dist/apis/erp-integration.cjs +10 -8
  72. package/dist/apis/erp-integration.js +5 -3
  73. package/dist/apis/event-catalog.cjs +10 -8
  74. package/dist/apis/event-catalog.js +5 -3
  75. package/dist/apis/file.cjs +10 -8
  76. package/dist/apis/file.js +5 -3
  77. package/dist/apis/iban.cjs +10 -8
  78. package/dist/apis/iban.js +5 -3
  79. package/dist/apis/journey.cjs +10 -8
  80. package/dist/apis/journey.js +5 -3
  81. package/dist/apis/kanban.cjs +10 -8
  82. package/dist/apis/kanban.js +5 -3
  83. package/dist/apis/message.cjs +10 -8
  84. package/dist/apis/message.js +5 -3
  85. package/dist/apis/metering.cjs +10 -8
  86. package/dist/apis/metering.js +5 -3
  87. package/dist/apis/notes.cjs +10 -8
  88. package/dist/apis/notes.js +5 -3
  89. package/dist/apis/notification.cjs +10 -8
  90. package/dist/apis/notification.js +5 -3
  91. package/dist/apis/organization.cjs +10 -8
  92. package/dist/apis/organization.d.cts +2 -2
  93. package/dist/apis/organization.d.ts +2 -2
  94. package/dist/apis/organization.js +5 -3
  95. package/dist/apis/partner-directory.cjs +10 -8
  96. package/dist/apis/partner-directory.js +5 -3
  97. package/dist/apis/permissions.cjs +10 -8
  98. package/dist/apis/permissions.js +5 -3
  99. package/dist/apis/pricing-tier.cjs +10 -8
  100. package/dist/apis/pricing-tier.js +5 -3
  101. package/dist/apis/pricing.cjs +10 -8
  102. package/dist/apis/pricing.js +5 -3
  103. package/dist/apis/purpose.cjs +10 -8
  104. package/dist/apis/purpose.js +5 -3
  105. package/dist/apis/sandbox.cjs +10 -8
  106. package/dist/apis/sandbox.js +5 -3
  107. package/dist/apis/submission.cjs +10 -8
  108. package/dist/apis/submission.js +5 -3
  109. package/dist/apis/targeting.cjs +10 -8
  110. package/dist/apis/targeting.js +5 -3
  111. package/dist/apis/template-variables.cjs +10 -8
  112. package/dist/apis/template-variables.js +5 -3
  113. package/dist/apis/user.cjs +10 -8
  114. package/dist/apis/user.js +5 -3
  115. package/dist/apis/validation-rules.cjs +10 -8
  116. package/dist/apis/validation-rules.js +5 -3
  117. package/dist/apis/webhooks.cjs +10 -8
  118. package/dist/apis/webhooks.js +5 -3
  119. package/dist/apis/workflow-definition.cjs +10 -8
  120. package/dist/apis/workflow-definition.js +5 -3
  121. package/dist/apis/workflow.cjs +10 -8
  122. package/dist/apis/workflow.js +5 -3
  123. package/dist/app-IKHWU222.cjs +7 -0
  124. package/dist/app-VLM3SWKA.js +7 -0
  125. package/dist/audit-logs-5VXHOQ7S.js +7 -0
  126. package/dist/audit-logs-D2LFUA2R.cjs +7 -0
  127. package/dist/automation-3HGCK725.cjs +7 -0
  128. package/dist/automation-72VGEJCY.js +7 -0
  129. package/dist/billing-DUWDISHP.cjs +7 -0
  130. package/dist/billing-IPALEAG2.js +7 -0
  131. package/dist/blueprint-manifest-CXSCRQ5X.js +7 -0
  132. package/dist/blueprint-manifest-SHNZPK5O.cjs +7 -0
  133. package/dist/{chunk-6J7CIOKR.js → chunk-2HOJWFQ4.js} +1 -1
  134. package/dist/{chunk-BDIJHJOG.js → chunk-372VUPHN.js} +1 -1
  135. package/dist/{chunk-Q5TESEDZ.cjs → chunk-3HJEWWPS.cjs} +2 -2
  136. package/dist/{chunk-ID6BXIOZ.js → chunk-3N67SSL3.js} +1 -1
  137. package/dist/chunk-3XEP56SV.cjs +204 -0
  138. package/dist/{chunk-7KFKA3AH.cjs → chunk-3ZZ57K3S.cjs} +2 -2
  139. package/dist/{chunk-CVSQT5PV.cjs → chunk-4SWC43JO.cjs} +2 -2
  140. package/dist/{chunk-O3R6C3WW.js → chunk-4VFQTSJQ.js} +1 -1
  141. package/dist/{chunk-LXAJ722U.js → chunk-57QIBYDN.js} +1 -1
  142. package/dist/{chunk-SPZSDRM6.cjs → chunk-5SNJAD6F.cjs} +2 -2
  143. package/dist/{chunk-OI2M6FSB.js → chunk-73H6TVKN.js} +1 -1
  144. package/dist/{chunk-BB7WFIE2.cjs → chunk-A6JOROUC.cjs} +2 -2
  145. package/dist/{chunk-SHPXCOTN.cjs → chunk-AJKH25H2.cjs} +3 -3
  146. package/dist/{chunk-DBNEZWK2.cjs → chunk-ARWMTXJV.cjs} +2 -2
  147. package/dist/{chunk-7BPPP4M2.js → chunk-B3ZGAG7B.js} +1 -1
  148. package/dist/{chunk-5WN2YXNU.cjs → chunk-BH5ZXK4J.cjs} +2 -2
  149. package/dist/{chunk-JM6HKPSC.cjs → chunk-BWFXLUK5.cjs} +2 -2
  150. package/dist/{chunk-V56ZCL54.js → chunk-C6UTZEHH.js} +1 -1
  151. package/dist/{chunk-ZPCMZO2O.js → chunk-CPKBR34V.js} +1 -1
  152. package/dist/{chunk-UTQY2DSM.js → chunk-CWSHYFVZ.js} +1 -1
  153. package/dist/{chunk-5YVVQBA2.js → chunk-DJKSULPK.js} +1 -1
  154. package/dist/{chunk-XLOXC52O.js → chunk-DNJ54L2G.js} +1 -1
  155. package/dist/{chunk-YXPUCBVK.cjs → chunk-DY2D2IW5.cjs} +2 -2
  156. package/dist/{chunk-Z5LLUUFD.cjs → chunk-E26ZO7QM.cjs} +2 -2
  157. package/dist/{chunk-RNKZDJOY.js → chunk-EBCHCYUO.js} +1 -1
  158. package/dist/{chunk-4MO4WLKA.cjs → chunk-EPAIOB5U.cjs} +2 -2
  159. package/dist/{chunk-UX2IZQNM.cjs → chunk-EQZMT2HF.cjs} +2 -2
  160. package/dist/{chunk-U52A2DMK.cjs → chunk-F376L6PP.cjs} +2 -2
  161. package/dist/{chunk-TBBLLEB2.cjs → chunk-F472YLJG.cjs} +2 -2
  162. package/dist/{chunk-W3MM2BSK.cjs → chunk-FXOX3X7E.cjs} +2 -2
  163. package/dist/{chunk-E4IFBCNM.cjs → chunk-G2REP2VZ.cjs} +2 -2
  164. package/dist/{chunk-CFGXI3FX.js → chunk-GLO477NZ.js} +1 -1
  165. package/dist/{chunk-PBNPZ7UX.js → chunk-H4VSK4KF.js} +1 -1
  166. package/dist/{chunk-33TQRYMY.js → chunk-HPSGM6QP.js} +1 -1
  167. package/dist/{chunk-RQKN4WTW.cjs → chunk-HPYHWTTA.cjs} +2 -2
  168. package/dist/{chunk-5RXE7X63.js → chunk-IH4CMOML.js} +2 -2
  169. package/dist/{chunk-VD5TBK2T.cjs → chunk-IMT3IE5M.cjs} +2 -2
  170. package/dist/{chunk-DIP442PL.js → chunk-IP2WWEOU.js} +1 -1
  171. package/dist/{chunk-FCLW3FLF.js → chunk-IS2VB342.js} +1 -1
  172. package/dist/{chunk-UNHWLNE4.js → chunk-ITX53XAZ.js} +1 -1
  173. package/dist/{chunk-KU2XF4TS.cjs → chunk-JXBXDTFG.cjs} +2 -2
  174. package/dist/{chunk-Y4YQEDR3.js → chunk-K62XK7KU.js} +1 -1
  175. package/dist/chunk-KA3TGFJP.js +14 -0
  176. package/dist/{chunk-IXRDP4VP.js → chunk-KBOVBUBM.js} +1 -1
  177. package/dist/{chunk-MKZGM4A6.js → chunk-KPGC2D6E.js} +1 -1
  178. package/dist/{chunk-ZAPA4RPI.js → chunk-KSXTBGIV.js} +1 -1
  179. package/dist/{chunk-PLBIQ2Y7.cjs → chunk-LCIJ4TJ4.cjs} +2 -2
  180. package/dist/{chunk-TUAAE3UC.cjs → chunk-LQOLYXGQ.cjs} +2 -2
  181. package/dist/{chunk-6ADJEPMJ.js → chunk-LSIWCIQV.js} +1 -1
  182. package/dist/{chunk-CBRWUULQ.js → chunk-MHNSZ4HE.js} +1 -1
  183. package/dist/{chunk-WOOKHE7Y.cjs → chunk-MKX4CKAB.cjs} +2 -2
  184. package/dist/{chunk-N2P26AAD.js → chunk-MRTAFRO7.js} +1 -1
  185. package/dist/{chunk-YGULLD73.js → chunk-MRZ7LGKZ.js} +1 -1
  186. package/dist/{chunk-CLMZ2EXW.js → chunk-MSASBR2Y.js} +1 -1
  187. package/dist/{chunk-KEJRWMXR.cjs → chunk-NAWLLC3T.cjs} +2 -2
  188. package/dist/chunk-NJK5F5TF.cjs +21 -0
  189. package/dist/{chunk-HBPCJRZX.cjs → chunk-NLSZVGHK.cjs} +2 -2
  190. package/dist/{chunk-CK36RZXR.js → chunk-O4LRVGOY.js} +1 -1
  191. package/dist/chunk-OG2DMGU6.cjs +14 -0
  192. package/dist/{chunk-TIJGLQKO.js → chunk-OGQKJTXF.js} +1 -1
  193. package/dist/{chunk-UE4XPL43.js → chunk-PETLAONH.js} +1 -1
  194. package/dist/{chunk-MK4ZGXVE.cjs → chunk-PVSS2WPM.cjs} +2 -2
  195. package/dist/{chunk-ONN5COYQ.cjs → chunk-PXITFTJA.cjs} +2 -2
  196. package/dist/{chunk-ZAXYMQ2B.cjs → chunk-QDVPPRWI.cjs} +2 -2
  197. package/dist/{chunk-IPFHV2FV.cjs → chunk-QKERXNJJ.cjs} +2 -2
  198. package/dist/{chunk-ZDJ3J6Z6.cjs → chunk-QLML3IP5.cjs} +2 -2
  199. package/dist/{chunk-YFHQYQII.js → chunk-QVAJ5JP4.js} +1 -1
  200. package/dist/{chunk-S2QF6HG2.cjs → chunk-RD7E4OSJ.cjs} +2 -2
  201. package/dist/{chunk-XIB2G42L.cjs → chunk-RWSA3LXE.cjs} +2 -2
  202. package/dist/{chunk-R6WNZVTA.cjs → chunk-RXSS67VI.cjs} +2 -2
  203. package/dist/{chunk-UXVV3BSC.cjs → chunk-S3ZNESMC.cjs} +2 -2
  204. package/dist/{chunk-YNPRF4BX.js → chunk-S7NDMDRX.js} +1 -1
  205. package/dist/{chunk-HO7KACZZ.cjs → chunk-SK3VYIZ6.cjs} +2 -2
  206. package/dist/{chunk-CX3KG7D2.cjs → chunk-SMGHAG5C.cjs} +2 -2
  207. package/dist/{chunk-D5FJ26GG.js → chunk-T46LODOF.js} +1 -1
  208. package/dist/{chunk-Y4ZMNMYI.js → chunk-TIJWJVKZ.js} +1 -1
  209. package/dist/{chunk-EIILOQ6X.js → chunk-TLWCYLNA.js} +1 -1
  210. package/dist/{chunk-JX45ME2Z.js → chunk-TRJLYZHD.js} +1 -1
  211. package/dist/{chunk-RNBO3DEN.js → chunk-UKKJMCNH.js} +1 -1
  212. package/dist/chunk-ULBEEHG4.js +204 -0
  213. package/dist/{chunk-UDO4JYVU.cjs → chunk-VGTUK3QD.cjs} +2 -2
  214. package/dist/{chunk-4JPVFLVU.js → chunk-VQ7R36AC.js} +1 -1
  215. package/dist/{chunk-IPDIEZBN.cjs → chunk-VVQB5W7U.cjs} +2 -2
  216. package/dist/{chunk-HKZQ56AS.cjs → chunk-VVVATFGK.cjs} +2 -2
  217. package/dist/{chunk-URRL33D5.cjs → chunk-WMTYO5OX.cjs} +2 -2
  218. package/dist/{chunk-U4BMKRG6.js → chunk-WOSSSFXB.js} +1 -1
  219. package/dist/{chunk-OBQIS3KU.js → chunk-WOXXNKTE.js} +1 -1
  220. package/dist/{chunk-WAKSLH7V.cjs → chunk-XKI2OAYV.cjs} +2 -2
  221. package/dist/{chunk-5Y2KLUU6.cjs → chunk-XR4QF6KQ.cjs} +2 -2
  222. package/dist/{chunk-6BERHKDQ.cjs → chunk-XYHTQ523.cjs} +2 -2
  223. package/dist/{chunk-XD6XML3Z.cjs → chunk-XZYZLSUO.cjs} +2 -2
  224. package/dist/chunk-YPSWSI3M.js +21 -0
  225. package/dist/{chunk-4K3MX2J6.js → chunk-YYBIU5BQ.js} +1 -1
  226. package/dist/{chunk-HSGQSTVK.js → chunk-YZA5WZUS.js} +1 -1
  227. package/dist/{chunk-GGBSLAVO.cjs → chunk-Z4LUE424.cjs} +2 -2
  228. package/dist/{chunk-NSOHW3R6.js → chunk-ZV6XYUXS.js} +1 -1
  229. package/dist/consent-CS2ZBZX4.cjs +7 -0
  230. package/dist/consent-NNYHF2N4.js +7 -0
  231. package/dist/customer-portal-D3SLPAHZ.js +7 -0
  232. package/dist/customer-portal-UR3GN4VU.cjs +7 -0
  233. package/dist/dashboard-UHYR5RTY.cjs +7 -0
  234. package/dist/dashboard-UTPGXFW5.js +7 -0
  235. package/dist/data-management-QH2IJ5QV.js +7 -0
  236. package/dist/data-management-TEFRLGSU.cjs +7 -0
  237. package/dist/deduplication-ECVAZVVA.cjs +7 -0
  238. package/dist/deduplication-GYIST22B.js +7 -0
  239. package/dist/design-KUVXMFFK.cjs +7 -0
  240. package/dist/design-YKBXRW5C.js +7 -0
  241. package/dist/document-CY2A2OE7.js +7 -0
  242. package/dist/document-RYQ7MF6U.cjs +7 -0
  243. package/dist/email-settings-TQ5GGDYG.js +7 -0
  244. package/dist/email-settings-TQC34GST.cjs +7 -0
  245. package/dist/email-template-M2VVL4TI.cjs +7 -0
  246. package/dist/email-template-WYROV3UG.js +7 -0
  247. package/dist/entity-FA6PZX6S.js +7 -0
  248. package/dist/entity-IX5NSHPX.cjs +7 -0
  249. package/dist/entity-mapping-7J3IAGKQ.js +7 -0
  250. package/dist/entity-mapping-ZNMFCUKK.cjs +7 -0
  251. package/dist/environments-E3X6NYGX.js +7 -0
  252. package/dist/environments-P2JS4F5N.cjs +7 -0
  253. package/dist/erp-integration-EP2XFEH5.js +7 -0
  254. package/dist/erp-integration-NNV72VFI.cjs +7 -0
  255. package/dist/event-catalog-C45ISVMP.cjs +7 -0
  256. package/dist/event-catalog-D7VJ7WRS.js +7 -0
  257. package/dist/file-UOWBTDIU.cjs +7 -0
  258. package/dist/file-XSN3NAVZ.js +7 -0
  259. package/dist/iban-24GHLFDB.cjs +7 -0
  260. package/dist/iban-LDKYDVQV.js +7 -0
  261. package/dist/index.cjs +107 -100
  262. package/dist/index.d.cts +17 -2
  263. package/dist/index.d.ts +17 -2
  264. package/dist/index.js +58 -51
  265. package/dist/journey-7CKX67M7.js +7 -0
  266. package/dist/journey-EUZ6MVHG.cjs +7 -0
  267. package/dist/kanban-CHTH2ZSY.cjs +7 -0
  268. package/dist/kanban-HI6LL5WY.js +7 -0
  269. package/dist/message-3XZLJR6R.cjs +7 -0
  270. package/dist/message-ZNMCS5YH.js +7 -0
  271. package/dist/metering-DZNZPPY6.cjs +7 -0
  272. package/dist/metering-KOSCPPKB.js +7 -0
  273. package/dist/notes-3AO5GXIT.js +7 -0
  274. package/dist/notes-MPWOQC5J.cjs +7 -0
  275. package/dist/notification-PZOCUYD5.cjs +7 -0
  276. package/dist/notification-VWDZRSFZ.js +7 -0
  277. package/dist/organization-RARYYG2E.cjs +7 -0
  278. package/dist/organization-ZERPH2IH.js +7 -0
  279. package/dist/{organization.d-Bd2Hmk8v.d.cts → organization.d-DqwnNxMg.d.cts} +34 -7
  280. package/dist/{organization.d-Bd2Hmk8v.d.ts → organization.d-DqwnNxMg.d.ts} +34 -7
  281. package/dist/partner-directory-2XMPQWWX.js +7 -0
  282. package/dist/partner-directory-WHNTKQ5E.cjs +7 -0
  283. package/dist/permissions-4T3GFNB4.js +7 -0
  284. package/dist/permissions-FGBIJNN7.cjs +7 -0
  285. package/dist/pricing-4Z4TOETA.cjs +7 -0
  286. package/dist/pricing-C65DTZSX.js +7 -0
  287. package/dist/pricing-tier-NI35WOUP.cjs +7 -0
  288. package/dist/pricing-tier-VUOFK5Q7.js +7 -0
  289. package/dist/purpose-AKOEUHZ4.cjs +7 -0
  290. package/dist/purpose-RBRV3AQZ.js +7 -0
  291. package/dist/sandbox-2KN4X66E.cjs +7 -0
  292. package/dist/sandbox-L2SOOGGR.js +7 -0
  293. package/dist/submission-7BISSPO6.js +7 -0
  294. package/dist/submission-Q24BU4GS.cjs +7 -0
  295. package/dist/targeting-EYGYZD6M.cjs +7 -0
  296. package/dist/targeting-GEJTJN5Z.js +7 -0
  297. package/dist/template-variables-OAYS2E3G.cjs +1148 -0
  298. package/dist/template-variables-VKDJJZUT.js +1148 -0
  299. package/dist/user-EIEOI3OG.js +7 -0
  300. package/dist/user-NJJ7XVKB.cjs +7 -0
  301. package/dist/validation-rules-P6F5P73P.js +7 -0
  302. package/dist/validation-rules-VDU3CIZV.cjs +7 -0
  303. package/dist/webhooks-I7JWU34X.cjs +7 -0
  304. package/dist/webhooks-WPLEHVPX.js +7 -0
  305. package/dist/workflow-3LLURW3H.js +7 -0
  306. package/dist/workflow-RAGQDYXT.cjs +7 -0
  307. package/dist/workflow-definition-B6ELOZUR.cjs +7 -0
  308. package/dist/workflow-definition-D24CRCK2.js +7 -0
  309. package/docs/access-token.md +440 -0
  310. package/docs/address-suggestions.md +256 -0
  311. package/docs/address.md +284 -0
  312. package/docs/ai-agents.md +1891 -0
  313. package/docs/app.md +3388 -0
  314. package/docs/audit-logs.md +242 -0
  315. package/docs/automation.md +4044 -0
  316. package/docs/billing.md +783 -0
  317. package/docs/blueprint-manifest.md +3234 -0
  318. package/docs/consent.md +213 -0
  319. package/docs/customer-portal.md +11399 -0
  320. package/docs/dashboard.md +640 -0
  321. package/docs/data-management.md +883 -0
  322. package/docs/deduplication.md +135 -0
  323. package/docs/design.md +1273 -0
  324. package/docs/document.md +590 -0
  325. package/docs/email-settings.md +1544 -0
  326. package/docs/email-template.md +1197 -0
  327. package/docs/entity-mapping.md +2864 -0
  328. package/docs/entity.md +9595 -0
  329. package/docs/environments.md +259 -0
  330. package/docs/erp-integration.md +4572 -0
  331. package/docs/event-catalog.md +835 -0
  332. package/docs/file.md +1453 -0
  333. package/docs/iban.md +61 -0
  334. package/docs/journey.md +2268 -0
  335. package/docs/kanban.md +882 -0
  336. package/docs/message.md +2122 -0
  337. package/docs/metering.md +1431 -0
  338. package/docs/notes.md +670 -0
  339. package/docs/notification.md +1207 -0
  340. package/docs/organization.md +733 -0
  341. package/docs/partner-directory.md +1197 -0
  342. package/docs/permissions.md +1047 -0
  343. package/docs/pricing-tier.md +81 -0
  344. package/docs/pricing.md +5923 -0
  345. package/docs/purpose.md +283 -0
  346. package/docs/sandbox.md +389 -0
  347. package/docs/submission.md +195 -0
  348. package/docs/targeting.md +959 -0
  349. package/docs/template-variables.md +1141 -0
  350. package/docs/user.md +2555 -0
  351. package/docs/validation-rules.md +1597 -0
  352. package/docs/webhooks.md +996 -0
  353. package/docs/workflow-definition.md +3842 -0
  354. package/docs/workflow.md +4465 -0
  355. package/package.json +3 -2
  356. package/dist/chunk-GMBRXWMD.cjs +0 -14
  357. package/dist/chunk-L43U5IO3.js +0 -14
  358. package/dist/chunk-XE25WERA.js +0 -125
  359. package/dist/chunk-XEQMAKGA.cjs +0 -125
@@ -0,0 +1,1431 @@
1
+ # Metering API
2
+
3
+ - **Base URL:** `https://metering.sls.epilot.io`
4
+ - **Full API Docs:** [https://docs.epilot.io/api/metering](https://docs.epilot.io/api/metering)
5
+
6
+ ## Usage
7
+
8
+ ```ts
9
+ import { epilot } from '@epilot/sdk'
10
+
11
+ epilot.authorize(() => '<token>')
12
+ const { data } = await epilot.metering.getCustomerMeters(...)
13
+ ```
14
+
15
+ ### Tree-shakeable import
16
+
17
+ ```ts
18
+ import { getClient, authorize } from '@epilot/sdk/metering'
19
+
20
+ const meteringClient = getClient()
21
+ authorize(meteringClient, () => '<token>')
22
+ const { data } = await meteringClient.getCustomerMeters(...)
23
+ ```
24
+
25
+ ## Operations
26
+
27
+ **ECP**
28
+ - [`getCustomerMeters`](#getcustomermeters)
29
+ - [`getMetersByContractId`](#getmetersbycontractid)
30
+ - [`updateMeter`](#updatemeter)
31
+ - [`getMeter`](#getmeter)
32
+ - [`getMeterCounters`](#getmetercounters)
33
+ - [`getCounterDetails`](#getcounterdetails)
34
+ - [`createPortalMeterReadings`](#createportalmeterreadings)
35
+
36
+ **ECP Admin**
37
+ - [`createMeterReading`](#createmeterreading)
38
+ - [`createMeterReadings`](#createmeterreadings)
39
+ - [`batchWriteMeterReadings`](#batchwritemeterreadings)
40
+ - [`createMeterReadingFromSubmission`](#createmeterreadingfromsubmission)
41
+ - [`getAllowedReadingForMeter`](#getallowedreadingformeter)
42
+ - [`createReadingWithMeter`](#createreadingwithmeter)
43
+ - [`getReadingsByInterval`](#getreadingsbyinterval)
44
+ - [`updateMeterReading`](#updatemeterreading)
45
+ - [`deleteMeterReading`](#deletemeterreading)
46
+
47
+ **Schemas**
48
+ - [`ErrorResp`](#errorresp)
49
+ - [`EntityId`](#entityid)
50
+ - [`EntitySlug`](#entityslug)
51
+ - [`BaseEntity`](#baseentity)
52
+ - [`Entity`](#entity)
53
+ - [`EntityItem`](#entityitem)
54
+ - [`Id`](#id)
55
+ - [`EntityRelation`](#entityrelation)
56
+ - [`Meter`](#meter)
57
+ - [`Direction`](#direction)
58
+ - [`TariffType`](#tarifftype)
59
+ - [`Reason`](#reason)
60
+ - [`ReasonString`](#reasonstring)
61
+ - [`ReadBy`](#readby)
62
+ - [`ReadingStatus`](#readingstatus)
63
+ - [`Reading`](#reading)
64
+ - [`MeterReading`](#meterreading)
65
+ - [`PortalMeterReading`](#portalmeterreading)
66
+ - [`UpdateMeterReading`](#updatemeterreading)
67
+ - [`MeterCounter`](#metercounter)
68
+ - [`CounterReadingOnSubmission`](#counterreadingonsubmission)
69
+ - [`SubmissionMeterReading`](#submissionmeterreading)
70
+ - [`Unit`](#unit)
71
+ - [`Source`](#source)
72
+ - [`ActionLabel`](#actionlabel)
73
+ - [`Rule`](#rule)
74
+ - [`JourneyActions`](#journeyactions)
75
+ - [`ReadingWithMeter`](#readingwithmeter)
76
+ - [`ActivityId`](#activityid)
77
+
78
+ ### `getCustomerMeters`
79
+
80
+ Get Customer Meters
81
+
82
+ `GET /v1/metering/meter`
83
+
84
+ ```ts
85
+ const { data } = await client.getCustomerMeters()
86
+ ```
87
+
88
+ <details>
89
+ <summary>Response</summary>
90
+
91
+ ```json
92
+ {
93
+ "data": [
94
+ {
95
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
96
+ "_title": "Example Entity",
97
+ "_org": "123",
98
+ "_tags": ["example", "mock"],
99
+ "_created_at": "2021-02-09T12:41:43.662Z",
100
+ "_updated_at": "2021-02-09T12:41:43.662Z",
101
+ "_schema": "meter",
102
+ "ma_lo_id": "A09-123",
103
+ "status": "active",
104
+ "meter_type": "three-phase-meter",
105
+ "tariff_type": "Peak load tariff",
106
+ "meter_number": "J-1093-1AK",
107
+ "sector": "power",
108
+ "location": [
109
+ {
110
+ "country": "Germany",
111
+ "city": "Koln",
112
+ "postal_code": 81475,
113
+ "street": "Melatengürtel",
114
+ "street_number": 71,
115
+ "additional_info": "5. Etage",
116
+ "_tags": ["billing", "delivery"]
117
+ }
118
+ ],
119
+ "used_for": "Domestic Usage",
120
+ "manufacturer": "Energy One",
121
+ "calibration_date": "2022-10-10T00:00:00.000Z",
122
+ "contract": {
123
+ "$relation": [
124
+ {
125
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
126
+ "_slug": "contact"
127
+ }
128
+ ]
129
+ },
130
+ "customer": {
131
+ "$relation": [
132
+ {
133
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
134
+ "_slug": "contact"
135
+ }
136
+ ]
137
+ },
138
+ "journey_actions": {
139
+ "journey_id": "string",
140
+ "action_label": {
141
+ "en": "string",
142
+ "de": "string"
143
+ },
144
+ "slug": "string",
145
+ "rules": [
146
+ {
147
+ "entity": "string",
148
+ "attribute": "string",
149
+ "attribute_value": "string"
150
+ }
151
+ ]
152
+ },
153
+ "last_reading": "2022-10-10T00:00:00.000Z",
154
+ "current_consumption": 100.5
155
+ }
156
+ ]
157
+ }
158
+ ```
159
+
160
+ </details>
161
+
162
+ ---
163
+
164
+ ### `getMetersByContractId`
165
+
166
+ Retrieves all meters related to a contract.
167
+
168
+ `GET /v1/metering/contract/meters/{contract_id}`
169
+
170
+ ```ts
171
+ const { data } = await client.getMetersByContractId({
172
+ contract_id: 'example',
173
+ })
174
+ ```
175
+
176
+ <details>
177
+ <summary>Response</summary>
178
+
179
+ ```json
180
+ {
181
+ "data": [
182
+ {
183
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
184
+ "_title": "Example Entity",
185
+ "_org": "123",
186
+ "_tags": ["example", "mock"],
187
+ "_created_at": "2021-02-09T12:41:43.662Z",
188
+ "_updated_at": "2021-02-09T12:41:43.662Z",
189
+ "_schema": "meter",
190
+ "ma_lo_id": "A09-123",
191
+ "status": "active",
192
+ "meter_type": "three-phase-meter",
193
+ "tariff_type": "Peak load tariff",
194
+ "meter_number": "J-1093-1AK",
195
+ "sector": "power",
196
+ "location": [
197
+ {
198
+ "country": "Germany",
199
+ "city": "Koln",
200
+ "postal_code": 81475,
201
+ "street": "Melatengürtel",
202
+ "street_number": 71,
203
+ "additional_info": "5. Etage",
204
+ "_tags": ["billing", "delivery"]
205
+ }
206
+ ],
207
+ "used_for": "Domestic Usage",
208
+ "manufacturer": "Energy One",
209
+ "calibration_date": "2022-10-10T00:00:00.000Z",
210
+ "contract": {
211
+ "$relation": [
212
+ {
213
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
214
+ "_slug": "contact"
215
+ }
216
+ ]
217
+ },
218
+ "customer": {
219
+ "$relation": [
220
+ {
221
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
222
+ "_slug": "contact"
223
+ }
224
+ ]
225
+ }
226
+ }
227
+ ]
228
+ }
229
+ ```
230
+
231
+ </details>
232
+
233
+ ---
234
+
235
+ ### `updateMeter`
236
+
237
+ Update Meter
238
+
239
+ `PATCH /v1/metering/meter/{id}`
240
+
241
+ ```ts
242
+ const { data } = await client.updateMeter(
243
+ {
244
+ id: '123e4567-e89b-12d3-a456-426614174000',
245
+ },
246
+ {},
247
+ )
248
+ ```
249
+
250
+ <details>
251
+ <summary>Response</summary>
252
+
253
+ ```json
254
+ {
255
+ "data": {
256
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
257
+ "_title": "Example Entity",
258
+ "_org": "123",
259
+ "_tags": ["example", "mock"],
260
+ "_created_at": "2021-02-09T12:41:43.662Z",
261
+ "_updated_at": "2021-02-09T12:41:43.662Z",
262
+ "_schema": "meter",
263
+ "ma_lo_id": "A09-123",
264
+ "status": "active",
265
+ "meter_type": "three-phase-meter",
266
+ "tariff_type": "Peak load tariff",
267
+ "meter_number": "J-1093-1AK",
268
+ "sector": "power",
269
+ "location": [
270
+ {
271
+ "country": "Germany",
272
+ "city": "Koln",
273
+ "postal_code": 81475,
274
+ "street": "Melatengürtel",
275
+ "street_number": 71,
276
+ "additional_info": "5. Etage",
277
+ "_tags": ["billing", "delivery"]
278
+ }
279
+ ],
280
+ "used_for": "Domestic Usage",
281
+ "manufacturer": "Energy One",
282
+ "calibration_date": "2022-10-10T00:00:00.000Z",
283
+ "contract": {
284
+ "$relation": [
285
+ {
286
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
287
+ "_slug": "contact"
288
+ }
289
+ ]
290
+ },
291
+ "customer": {
292
+ "$relation": [
293
+ {
294
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
295
+ "_slug": "contact"
296
+ }
297
+ ]
298
+ }
299
+ }
300
+ }
301
+ ```
302
+
303
+ </details>
304
+
305
+ ---
306
+
307
+ ### `getMeter`
308
+
309
+ Get Meter
310
+
311
+ `GET /v1/metering/meter/{id}`
312
+
313
+ ```ts
314
+ const { data } = await client.getMeter({
315
+ id: '123e4567-e89b-12d3-a456-426614174000',
316
+ })
317
+ ```
318
+
319
+ <details>
320
+ <summary>Response</summary>
321
+
322
+ ```json
323
+ {
324
+ "data": {
325
+ "entity": {
326
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
327
+ "_title": "Example Entity",
328
+ "_org": "123",
329
+ "_tags": ["example", "mock"],
330
+ "_created_at": "2021-02-09T12:41:43.662Z",
331
+ "_updated_at": "2021-02-09T12:41:43.662Z",
332
+ "_schema": "meter",
333
+ "ma_lo_id": "A09-123",
334
+ "status": "active",
335
+ "meter_type": "three-phase-meter",
336
+ "tariff_type": "Peak load tariff",
337
+ "meter_number": "J-1093-1AK",
338
+ "sector": "power",
339
+ "location": [
340
+ {
341
+ "country": "Germany",
342
+ "city": "Koln",
343
+ "postal_code": 81475,
344
+ "street": "Melatengürtel",
345
+ "street_number": 71,
346
+ "additional_info": "5. Etage",
347
+ "_tags": ["billing", "delivery"]
348
+ }
349
+ ],
350
+ "used_for": "Domestic Usage",
351
+ "manufacturer": "Energy One",
352
+ "calibration_date": "2022-10-10T00:00:00.000Z",
353
+ "contract": {
354
+ "$relation": [
355
+ {
356
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
357
+ "_slug": "contact"
358
+ }
359
+ ]
360
+ },
361
+ "customer": {
362
+ "$relation": [
363
+ {
364
+ "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
365
+ "_slug": "contact"
366
+ }
367
+ ]
368
+ }
369
+ },
370
+ "journey_actions": {
371
+ "journey_id": "string",
372
+ "action_label": {
373
+ "en": "string",
374
+ "de": "string"
375
+ },
376
+ "slug": "string",
377
+ "rules": [
378
+ {
379
+ "entity": "string",
380
+ "attribute": "string",
381
+ "attribute_value": "string"
382
+ }
383
+ ]
384
+ },
385
+ "relations": [
386
+ {
387
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
388
+ "_title": "Example Entity",
389
+ "_org": "123",
390
+ "_tags": ["example", "mock"],
391
+ "_created_at": "2021-02-09T12:41:43.662Z",
392
+ "_updated_at": "2021-02-09T12:41:43.662Z"
393
+ }
394
+ ]
395
+ }
396
+ }
397
+ ```
398
+
399
+ </details>
400
+
401
+ ---
402
+
403
+ ### `getMeterCounters`
404
+
405
+ Get Meter Counters
406
+
407
+ `GET /v1/metering/counter`
408
+
409
+ ```ts
410
+ const { data } = await client.getMeterCounters({
411
+ meter_id: 'example',
412
+ })
413
+ ```
414
+
415
+ <details>
416
+ <summary>Response</summary>
417
+
418
+ ```json
419
+ {
420
+ "data": [
421
+ {
422
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
423
+ "_title": "Example Entity",
424
+ "_org": "123",
425
+ "_tags": ["example", "mock"],
426
+ "_created_at": "2021-02-09T12:41:43.662Z",
427
+ "_updated_at": "2021-02-09T12:41:43.662Z",
428
+ "_schema": "meter_counter",
429
+ "obis_number": "A-34",
430
+ "direction": "feed-in",
431
+ "transformer_ratio": 70,
432
+ "unit": "string",
433
+ "forecast_reading_value": 270,
434
+ "forecast_as_of": "2022-12-10T00:00:00.000Z",
435
+ "current_consumption": 240,
436
+ "last_reading": "2022-10-10T00:00:00.000Z",
437
+ "conversion_factor": 3,
438
+ "tariff_type": "ht"
439
+ }
440
+ ]
441
+ }
442
+ ```
443
+
444
+ </details>
445
+
446
+ ---
447
+
448
+ ### `getCounterDetails`
449
+
450
+ Get Counter Details
451
+
452
+ `GET /v1/metering/counter/{counter_id}`
453
+
454
+ ```ts
455
+ const { data } = await client.getCounterDetails({
456
+ counter_id: 'example',
457
+ })
458
+ ```
459
+
460
+ <details>
461
+ <summary>Response</summary>
462
+
463
+ ```json
464
+ {
465
+ "data": {
466
+ "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
467
+ "_title": "Example Entity",
468
+ "_org": "123",
469
+ "_tags": ["example", "mock"],
470
+ "_created_at": "2021-02-09T12:41:43.662Z",
471
+ "_updated_at": "2021-02-09T12:41:43.662Z",
472
+ "_schema": "meter_counter",
473
+ "obis_number": "A-34",
474
+ "direction": "feed-in",
475
+ "transformer_ratio": 70,
476
+ "unit": "string",
477
+ "forecast_reading_value": 270,
478
+ "forecast_as_of": "2022-12-10T00:00:00.000Z",
479
+ "current_consumption": 240,
480
+ "last_reading": "2022-10-10T00:00:00.000Z",
481
+ "conversion_factor": 3,
482
+ "tariff_type": "ht"
483
+ }
484
+ }
485
+ ```
486
+
487
+ </details>
488
+
489
+ ---
490
+
491
+ ### `createMeterReading`
492
+
493
+ Create Meter Reading
494
+
495
+ `POST /v1/metering/reading`
496
+
497
+ ```ts
498
+ const { data } = await client.createMeterReading(
499
+ null,
500
+ {
501
+ value: 240,
502
+ read_by: 'John Doe',
503
+ reason: '',
504
+ meter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
505
+ counter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
506
+ direction: 'feed-in',
507
+ timestamp: '2022-10-10T00:00:00.000Z',
508
+ source: 'ECP',
509
+ status: 'valid',
510
+ external_id: 'string',
511
+ remark: 'Customer reported unusual consumption',
512
+ metadata: {
513
+ registration_id: '1234567890',
514
+ business_unit: 'ABC'
515
+ },
516
+ note: 'string',
517
+ unit: 'string'
518
+ },
519
+ )
520
+ ```
521
+
522
+ <details>
523
+ <summary>Response</summary>
524
+
525
+ ```json
526
+ {
527
+ "data": {
528
+ "value": 240,
529
+ "read_by": "John Doe",
530
+ "reason": "",
531
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
532
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
533
+ "direction": "feed-in",
534
+ "timestamp": "2022-10-10T00:00:00.000Z",
535
+ "source": "ECP",
536
+ "status": "valid",
537
+ "external_id": "string",
538
+ "remark": "Customer reported unusual consumption",
539
+ "metadata": {
540
+ "registration_id": "1234567890",
541
+ "business_unit": "ABC"
542
+ },
543
+ "note": "string",
544
+ "unit": "string"
545
+ }
546
+ }
547
+ ```
548
+
549
+ </details>
550
+
551
+ ---
552
+
553
+ ### `createMeterReadings`
554
+
555
+ Create Meter Readings
556
+
557
+ `POST /v1/metering/readings`
558
+
559
+ ```ts
560
+ const { data } = await client.createMeterReadings(
561
+ {
562
+ async: true,
563
+ activity_id: 'example',
564
+ skip_validation: true,
565
+ },
566
+ {
567
+ readings: [
568
+ {
569
+ value: 240,
570
+ read_by: 'John Doe',
571
+ reason: '',
572
+ meter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
573
+ counter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
574
+ direction: 'feed-in',
575
+ timestamp: '2022-10-10T00:00:00.000Z',
576
+ source: 'ECP',
577
+ status: 'valid',
578
+ external_id: 'string',
579
+ remark: 'Customer reported unusual consumption',
580
+ metadata: {
581
+ registration_id: '1234567890',
582
+ business_unit: 'ABC'
583
+ },
584
+ note: 'string',
585
+ unit: 'string'
586
+ }
587
+ ]
588
+ },
589
+ )
590
+ ```
591
+
592
+ <details>
593
+ <summary>Response</summary>
594
+
595
+ ```json
596
+ {
597
+ "data": [
598
+ {
599
+ "value": 240,
600
+ "read_by": "John Doe",
601
+ "reason": "",
602
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
603
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
604
+ "direction": "feed-in",
605
+ "timestamp": "2022-10-10T00:00:00.000Z",
606
+ "source": "ECP",
607
+ "status": "valid",
608
+ "external_id": "string",
609
+ "remark": "Customer reported unusual consumption",
610
+ "metadata": {
611
+ "registration_id": "1234567890",
612
+ "business_unit": "ABC"
613
+ },
614
+ "note": "string",
615
+ "unit": "string"
616
+ }
617
+ ]
618
+ }
619
+ ```
620
+
621
+ </details>
622
+
623
+ ---
624
+
625
+ ### `createPortalMeterReadings`
626
+
627
+ Inserts multiple meter readings at once for a given meter. Limited to 2 readings per request.
628
+
629
+ `POST /v1/metering/readings/{meter_id}`
630
+
631
+ ```ts
632
+ const { data } = await client.createPortalMeterReadings(
633
+ {
634
+ meter_id: 'example',
635
+ },
636
+ {
637
+ readings: [
638
+ {
639
+ value: 240,
640
+ read_by: 'John Doe',
641
+ reason: '',
642
+ meter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
643
+ counter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
644
+ direction: 'feed-in',
645
+ timestamp: '2022-10-10T00:00:00.000Z',
646
+ source: 'ECP',
647
+ status: 'valid',
648
+ external_id: 'string',
649
+ remark: 'Customer reported unusual consumption',
650
+ metadata: {
651
+ registration_id: '1234567890',
652
+ business_unit: 'ABC'
653
+ },
654
+ note: 'string',
655
+ unit: 'string'
656
+ }
657
+ ]
658
+ },
659
+ )
660
+ ```
661
+
662
+ <details>
663
+ <summary>Response</summary>
664
+
665
+ ```json
666
+ {
667
+ "data": [
668
+ {
669
+ "value": 240,
670
+ "read_by": "John Doe",
671
+ "reason": "",
672
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
673
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
674
+ "direction": "feed-in",
675
+ "timestamp": "2022-10-10T00:00:00.000Z",
676
+ "source": "ECP",
677
+ "status": "valid",
678
+ "external_id": "string",
679
+ "remark": "Customer reported unusual consumption",
680
+ "metadata": {
681
+ "registration_id": "1234567890",
682
+ "business_unit": "ABC"
683
+ },
684
+ "note": "string",
685
+ "unit": "string"
686
+ }
687
+ ]
688
+ }
689
+ ```
690
+
691
+ </details>
692
+
693
+ ---
694
+
695
+ ### `batchWriteMeterReadings`
696
+
697
+ Batch Write Readings
698
+
699
+ `POST /v2/metering/readings`
700
+
701
+ ```ts
702
+ const { data } = await client.batchWriteMeterReadings(
703
+ {
704
+ async: true,
705
+ skip_validation: true,
706
+ activity_id: 'example',
707
+ },
708
+ {
709
+ identifiers: ['string'],
710
+ readings: [
711
+ {
712
+ value: 240,
713
+ read_by: 'John Doe',
714
+ reason: '',
715
+ meter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
716
+ counter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
717
+ direction: 'feed-in',
718
+ timestamp: '2022-10-10T00:00:00.000Z',
719
+ source: 'ECP',
720
+ status: 'valid',
721
+ external_id: 'string',
722
+ remark: 'Customer reported unusual consumption',
723
+ metadata: {
724
+ registration_id: '1234567890',
725
+ business_unit: 'ABC'
726
+ },
727
+ note: 'string',
728
+ unit: 'string',
729
+ operation: 'create'
730
+ }
731
+ ]
732
+ },
733
+ )
734
+ ```
735
+
736
+ <details>
737
+ <summary>Response</summary>
738
+
739
+ ```json
740
+ {
741
+ "data": [
742
+ {
743
+ "value": 240,
744
+ "read_by": "John Doe",
745
+ "reason": "",
746
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
747
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
748
+ "direction": "feed-in",
749
+ "timestamp": "2022-10-10T00:00:00.000Z",
750
+ "source": "ECP",
751
+ "status": "valid",
752
+ "external_id": "string",
753
+ "remark": "Customer reported unusual consumption",
754
+ "metadata": {
755
+ "registration_id": "1234567890",
756
+ "business_unit": "ABC"
757
+ },
758
+ "note": "string",
759
+ "unit": "string"
760
+ }
761
+ ]
762
+ }
763
+ ```
764
+
765
+ </details>
766
+
767
+ ---
768
+
769
+ ### `createMeterReadingFromSubmission`
770
+
771
+ Create Meter Reading from Submission
772
+
773
+ `POST /v1/metering/reading/submission`
774
+
775
+ ```ts
776
+ const { data } = await client.createMeterReadingFromSubmission(
777
+ null,
778
+ {
779
+ org_id: '123',
780
+ entity: {
781
+ _org: '123',
782
+ meterReadings: [
783
+ {
784
+ meterId: 'string',
785
+ readings: [
786
+ {
787
+ counterId: 'string',
788
+ direction: 'feed-in',
789
+ unit: 'string',
790
+ value: 240
791
+ }
792
+ ],
793
+ readingValue: 240,
794
+ readingDate: '2022-10-10T10:10:00.000Z',
795
+ readBy: 'John Doe',
796
+ reason: '',
797
+ maloId: 'A09-123',
798
+ obisNumber: 'A-34',
799
+ readingUnit: 'string',
800
+ meterType: 'one_tariff',
801
+ feedInValue: 240,
802
+ feedOutValue: 240,
803
+ htValue: 240,
804
+ ntValue: 240
805
+ }
806
+ ]
807
+ }
808
+ },
809
+ )
810
+ ```
811
+
812
+ <details>
813
+ <summary>Response</summary>
814
+
815
+ ```json
816
+ {
817
+ "message": "Successfully Processed"
818
+ }
819
+ ```
820
+
821
+ </details>
822
+
823
+ ---
824
+
825
+ ### `getAllowedReadingForMeter`
826
+
827
+ Get allowed reading for the given meter
828
+
829
+ `GET /v1/metering/allowed/reading/{meter_id}`
830
+
831
+ ```ts
832
+ const { data } = await client.getAllowedReadingForMeter({
833
+ meter_id: 'example',
834
+ timestamp: 'example',
835
+ })
836
+ ```
837
+
838
+ <details>
839
+ <summary>Response</summary>
840
+
841
+ ```json
842
+ {
843
+ "data": [
844
+ {
845
+ "counter_id": "string",
846
+ "min_value": 0,
847
+ "max_value": 0
848
+ }
849
+ ]
850
+ }
851
+ ```
852
+
853
+ </details>
854
+
855
+ ---
856
+
857
+ ### `createReadingWithMeter`
858
+
859
+ Create Reading with Meter
860
+
861
+ `POST /v1/metering/reading/with-meter`
862
+
863
+ ```ts
864
+ const { data } = await client.createReadingWithMeter(
865
+ null,
866
+ {
867
+ ma_lo_id: 'A09-123',
868
+ meter_id: 'string',
869
+ obis_number: 'A-34',
870
+ unit: 'string',
871
+ direction: 'feed-in',
872
+ tariff_type: 'ht',
873
+ value: 240,
874
+ read_by: 'John Doe',
875
+ reason: '',
876
+ timestamp: '2022-10-10T10:10:00.000Z',
877
+ source: 'ECP'
878
+ },
879
+ )
880
+ ```
881
+
882
+ <details>
883
+ <summary>Response</summary>
884
+
885
+ ```json
886
+ {
887
+ "data": {
888
+ "value": 240,
889
+ "read_by": "John Doe",
890
+ "reason": "",
891
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
892
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
893
+ "direction": "feed-in",
894
+ "timestamp": "2022-10-10T00:00:00.000Z",
895
+ "source": "ECP",
896
+ "status": "valid",
897
+ "external_id": "string",
898
+ "remark": "Customer reported unusual consumption",
899
+ "metadata": {
900
+ "registration_id": "1234567890",
901
+ "business_unit": "ABC"
902
+ },
903
+ "note": "string",
904
+ "unit": "string"
905
+ }
906
+ }
907
+ ```
908
+
909
+ </details>
910
+
911
+ ---
912
+
913
+ ### `getReadingsByInterval`
914
+
915
+ Get Readings by Interval
916
+
917
+ `GET /v1/metering/reading/{meter_id}/{counter_id}`
918
+
919
+ ```ts
920
+ const { data } = await client.getReadingsByInterval({
921
+ meter_id: 'example',
922
+ counter_id: 'example',
923
+ start_date: 'example',
924
+ end_date: 'example',
925
+ direction: 'example',
926
+ size: 1,
927
+ from: 1,
928
+ type: 'example',
929
+ sort: 'example',
930
+ })
931
+ ```
932
+
933
+ <details>
934
+ <summary>Response</summary>
935
+
936
+ ```json
937
+ {
938
+ "results": [
939
+ {
940
+ "value": 240,
941
+ "read_by": "John Doe",
942
+ "reason": "",
943
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
944
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
945
+ "direction": "feed-in",
946
+ "timestamp": "2022-10-10T00:00:00.000Z",
947
+ "source": "ECP",
948
+ "status": "valid",
949
+ "external_id": "string",
950
+ "remark": "Customer reported unusual consumption",
951
+ "metadata": {
952
+ "registration_id": "1234567890",
953
+ "business_unit": "ABC"
954
+ },
955
+ "note": "string",
956
+ "unit": "string"
957
+ }
958
+ ],
959
+ "hits": 120,
960
+ "firstRecordCreatedAt": "2022-10-01T20:00:00.000Z"
961
+ }
962
+ ```
963
+
964
+ </details>
965
+
966
+ ---
967
+
968
+ ### `updateMeterReading`
969
+
970
+ Update Meter Reading
971
+
972
+ `PUT /v1/metering/reading/{meter_id}/{counter_id}`
973
+
974
+ ```ts
975
+ const { data } = await client.updateMeterReading(
976
+ {
977
+ meter_id: 'example',
978
+ counter_id: 'example',
979
+ timestamp: 'example',
980
+ },
981
+ {
982
+ value: 240,
983
+ read_by: 'John Doe',
984
+ reason: 'string',
985
+ meter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
986
+ counter_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',
987
+ direction: 'feed-in',
988
+ timestamp: '2022-10-10T00:00:00.000Z',
989
+ source: 'ECP',
990
+ status: 'valid',
991
+ external_id: 'string',
992
+ remark: 'Customer reported unusual consumption',
993
+ metadata: {
994
+ registration_id: '1234567890',
995
+ business_unit: 'ABC'
996
+ }
997
+ },
998
+ )
999
+ ```
1000
+
1001
+ <details>
1002
+ <summary>Response</summary>
1003
+
1004
+ ```json
1005
+ {
1006
+ "data": {
1007
+ "value": 240,
1008
+ "read_by": "John Doe",
1009
+ "reason": "",
1010
+ "meter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1011
+ "counter_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
1012
+ "direction": "feed-in",
1013
+ "timestamp": "2022-10-10T00:00:00.000Z",
1014
+ "source": "ECP",
1015
+ "status": "valid",
1016
+ "external_id": "string",
1017
+ "remark": "Customer reported unusual consumption",
1018
+ "metadata": {
1019
+ "registration_id": "1234567890",
1020
+ "business_unit": "ABC"
1021
+ },
1022
+ "note": "string",
1023
+ "unit": "string"
1024
+ }
1025
+ }
1026
+ ```
1027
+
1028
+ </details>
1029
+
1030
+ ---
1031
+
1032
+ ### `deleteMeterReading`
1033
+
1034
+ Delete Meter Reading
1035
+
1036
+ `DELETE /v1/metering/reading/{meter_id}/{counter_id}`
1037
+
1038
+ ```ts
1039
+ const { data } = await client.deleteMeterReading({
1040
+ meter_id: 'example',
1041
+ counter_id: 'example',
1042
+ timestamp: 'example',
1043
+ })
1044
+ ```
1045
+
1046
+ <details>
1047
+ <summary>Response</summary>
1048
+
1049
+ ```json
1050
+ {
1051
+ "data": {
1052
+ "meterId": "string",
1053
+ "counterId": "string",
1054
+ "timestamp": "2022-10-01T20:00:00.000Z"
1055
+ }
1056
+ }
1057
+ ```
1058
+
1059
+ </details>
1060
+
1061
+ ---
1062
+
1063
+ ## Schemas
1064
+
1065
+ ### `ErrorResp`
1066
+
1067
+ ```ts
1068
+ type ErrorResp = {
1069
+ message?: string
1070
+ }
1071
+ ```
1072
+
1073
+ ### `EntityId`
1074
+
1075
+ ```ts
1076
+ type EntityId = string // uuid
1077
+ ```
1078
+
1079
+ ### `EntitySlug`
1080
+
1081
+ URL-friendly identifier for the entity schema
1082
+
1083
+ ```ts
1084
+ type EntitySlug = string
1085
+ ```
1086
+
1087
+ ### `BaseEntity`
1088
+
1089
+ ```ts
1090
+ type BaseEntity = {
1091
+ _id: string // uuid
1092
+ _title: string
1093
+ _org: string
1094
+ _tags?: string[]
1095
+ _created_at: string // date-time
1096
+ _updated_at: string // date-time
1097
+ }
1098
+ ```
1099
+
1100
+ ### `Entity`
1101
+
1102
+ ```ts
1103
+ type Entity = Record<string, unknown>
1104
+ ```
1105
+
1106
+ ### `EntityItem`
1107
+
1108
+ ```ts
1109
+ type EntityItem = {
1110
+ _id: string // uuid
1111
+ _title: string
1112
+ _org: string
1113
+ _tags?: string[]
1114
+ _created_at: string // date-time
1115
+ _updated_at: string // date-time
1116
+ }
1117
+ ```
1118
+
1119
+ ### `Id`
1120
+
1121
+ ```ts
1122
+ type Id = string
1123
+ ```
1124
+
1125
+ ### `EntityRelation`
1126
+
1127
+ ```ts
1128
+ type EntityRelation = {
1129
+ entity_id?: string // uuid
1130
+ _slug?: "contact" | "contract"
1131
+ }
1132
+ ```
1133
+
1134
+ ### `Meter`
1135
+
1136
+ ```ts
1137
+ type Meter = {
1138
+ _id: string // uuid
1139
+ _title: string
1140
+ _org: string
1141
+ _tags?: string[]
1142
+ _created_at: string // date-time
1143
+ _updated_at: string // date-time
1144
+ _schema: "meter"
1145
+ ma_lo_id?: string
1146
+ status?: "active" | "decommissioned"
1147
+ meter_type?: "three-phase-meter" | "bellow-gas-meter" | "rotary-piston-meter" | "smart-meter" | "performance-meter" | "maximum-meter" | "turbine-gas-meter" | "ultrasonic-gas-meter" | "alternating-current-meter" | "modern-metering-system" | "intelligent-measuring-system" | "electronic-meter"
1148
+ tariff_type?: string
1149
+ meter_number?: string
1150
+ sector?: "power" | "water" | "gas" | "district_heating" | "waste_water"
1151
+ location?: object
1152
+ used_for?: string
1153
+ manufacturer?: string
1154
+ calibration_date?: string
1155
+ contract?: {
1156
+ $relation?: Array<{
1157
+ entity_id?: { ... }
1158
+ _slug?: { ... }
1159
+ }>
1160
+ }
1161
+ customer?: {
1162
+ $relation?: Array<{
1163
+ entity_id?: { ... }
1164
+ _slug?: { ... }
1165
+ }>
1166
+ }
1167
+ }
1168
+ ```
1169
+
1170
+ ### `Direction`
1171
+
1172
+ ```ts
1173
+ type Direction = "feed-in" | "feed-out"
1174
+ ```
1175
+
1176
+ ### `TariffType`
1177
+
1178
+ ```ts
1179
+ type TariffType = "ht" | "nt"
1180
+ ```
1181
+
1182
+ ### `Reason`
1183
+
1184
+ The reason for recording the reading
1185
+ If no reason is specified or left empty, the Epilot UI will show 'Regular' as the default display text
1186
+
1187
+
1188
+ ```ts
1189
+ type Reason = "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1190
+ ```
1191
+
1192
+ ### `ReasonString`
1193
+
1194
+ This field is deprecated. Please use the Reason enum instead.
1195
+
1196
+
1197
+ ```ts
1198
+ type ReasonString = string
1199
+ ```
1200
+
1201
+ ### `ReadBy`
1202
+
1203
+ The person who recorded the reading
1204
+
1205
+ ```ts
1206
+ type ReadBy = string
1207
+ ```
1208
+
1209
+ ### `ReadingStatus`
1210
+
1211
+ ```ts
1212
+ type ReadingStatus = "valid" | "in-validation" | "implausible" | null | ""
1213
+ ```
1214
+
1215
+ ### `Reading`
1216
+
1217
+ ```ts
1218
+ type Reading = {
1219
+ value: number
1220
+ read_by?: string
1221
+ reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1222
+ meter_id?: string // uuid
1223
+ counter_id?: string // uuid
1224
+ direction?: "feed-in" | "feed-out"
1225
+ timestamp?: string // date-time
1226
+ source: "ECP" | "ERP" | "360" | "journey-submission"
1227
+ status?: "valid" | "in-validation" | "implausible" | null | ""
1228
+ external_id?: string
1229
+ remark?: string
1230
+ metadata?: Record<string, string>
1231
+ note?: string
1232
+ unit?: string
1233
+ }
1234
+ ```
1235
+
1236
+ ### `MeterReading`
1237
+
1238
+ ```ts
1239
+ type MeterReading = {
1240
+ value: number
1241
+ read_by?: string
1242
+ reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1243
+ meter_id: string // uuid
1244
+ counter_id?: string // uuid
1245
+ direction?: "feed-in" | "feed-out"
1246
+ timestamp?: string // date-time
1247
+ source: "ECP" | "ERP" | "360" | "journey-submission"
1248
+ status?: "valid" | "in-validation" | "implausible" | null | ""
1249
+ external_id?: string
1250
+ remark?: string
1251
+ metadata?: Record<string, string>
1252
+ note?: string
1253
+ unit?: string
1254
+ }
1255
+ ```
1256
+
1257
+ ### `PortalMeterReading`
1258
+
1259
+ ```ts
1260
+ type PortalMeterReading = {
1261
+ value: number
1262
+ read_by?: string
1263
+ reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1264
+ meter_id?: string // uuid
1265
+ counter_id: string // uuid
1266
+ direction?: "feed-in" | "feed-out"
1267
+ timestamp?: string // date-time
1268
+ source: "ECP" | "ERP" | "360" | "journey-submission"
1269
+ status?: "valid" | "in-validation" | "implausible" | null | ""
1270
+ external_id?: string
1271
+ remark?: string
1272
+ metadata?: Record<string, string>
1273
+ note?: string
1274
+ unit?: string
1275
+ }
1276
+ ```
1277
+
1278
+ ### `UpdateMeterReading`
1279
+
1280
+ ```ts
1281
+ type UpdateMeterReading = {
1282
+ value: number
1283
+ read_by?: string
1284
+ reason?: string
1285
+ meter_id: string // uuid
1286
+ counter_id?: string // uuid
1287
+ direction?: "feed-in" | "feed-out"
1288
+ timestamp?: string // date-time
1289
+ source: "ECP" | "ERP" | "360" | "journey-submission"
1290
+ status?: "valid" | "in-validation" | "implausible" | null | ""
1291
+ external_id?: string
1292
+ remark?: string
1293
+ metadata?: Record<string, string>
1294
+ }
1295
+ ```
1296
+
1297
+ ### `MeterCounter`
1298
+
1299
+ ```ts
1300
+ type MeterCounter = {
1301
+ _id: string // uuid
1302
+ _title: string
1303
+ _org: string
1304
+ _tags?: string[]
1305
+ _created_at: string // date-time
1306
+ _updated_at: string // date-time
1307
+ _schema: "meter_counter"
1308
+ obis_number?: string
1309
+ direction?: "feed-in" | "feed-out"
1310
+ transformer_ratio?: number
1311
+ unit?: string
1312
+ forecast_reading_value?: string
1313
+ forecast_as_of?: string
1314
+ current_consumption?: number
1315
+ last_reading?: string
1316
+ conversion_factor?: number
1317
+ tariff_type?: "ht" | "nt"
1318
+ }
1319
+ ```
1320
+
1321
+ ### `CounterReadingOnSubmission`
1322
+
1323
+ ```ts
1324
+ type CounterReadingOnSubmission = {
1325
+ counterId: string
1326
+ direction: "feed-in" | "feed-out"
1327
+ unit?: string
1328
+ value: number
1329
+ }
1330
+ ```
1331
+
1332
+ ### `SubmissionMeterReading`
1333
+
1334
+ ```ts
1335
+ type SubmissionMeterReading = {
1336
+ meterId: string
1337
+ readings?: Array<{
1338
+ counterId: string
1339
+ direction: "feed-in" | "feed-out"
1340
+ unit?: string
1341
+ value: number
1342
+ }>
1343
+ readingValue?: number
1344
+ readingDate?: string
1345
+ readBy?: string
1346
+ reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1347
+ maloId?: string
1348
+ obisNumber?: string
1349
+ readingUnit?: string
1350
+ meterType?: "one_tariff" | "two_tariff" | "bi_directional"
1351
+ feedInValue?: number
1352
+ feedOutValue?: number
1353
+ htValue?: number
1354
+ ntValue?: number
1355
+ }
1356
+ ```
1357
+
1358
+ ### `Unit`
1359
+
1360
+ ```ts
1361
+ type Unit = string
1362
+ ```
1363
+
1364
+ ### `Source`
1365
+
1366
+ ```ts
1367
+ type Source = "ECP" | "ERP" | "360" | "journey-submission"
1368
+ ```
1369
+
1370
+ ### `ActionLabel`
1371
+
1372
+ ```ts
1373
+ type ActionLabel = {
1374
+ en?: string
1375
+ de?: string
1376
+ }
1377
+ ```
1378
+
1379
+ ### `Rule`
1380
+
1381
+ ```ts
1382
+ type Rule = {
1383
+ entity?: string
1384
+ attribute?: string
1385
+ attribute_value?: string
1386
+ }
1387
+ ```
1388
+
1389
+ ### `JourneyActions`
1390
+
1391
+ ```ts
1392
+ type JourneyActions = {
1393
+ journey_id?: string
1394
+ action_label?: {
1395
+ en?: string
1396
+ de?: string
1397
+ }
1398
+ slug?: string
1399
+ rules?: Array<{
1400
+ entity?: string
1401
+ attribute?: string
1402
+ attribute_value?: string
1403
+ }>
1404
+ }
1405
+ ```
1406
+
1407
+ ### `ReadingWithMeter`
1408
+
1409
+ ```ts
1410
+ type ReadingWithMeter = {
1411
+ ma_lo_id?: string
1412
+ meter_id?: string
1413
+ obis_number?: string
1414
+ unit?: string
1415
+ direction?: "feed-in" | "feed-out"
1416
+ tariff_type?: "ht" | "nt"
1417
+ value?: number
1418
+ read_by?: string
1419
+ reason?: "" | "regular" | "irregular" | "last" | "first" | "meter_change" | "contract_change" | "meter_adjustment"
1420
+ timestamp?: string
1421
+ source?: "ECP" | "ERP" | "360" | "journey-submission"
1422
+ }
1423
+ ```
1424
+
1425
+ ### `ActivityId`
1426
+
1427
+ See https://github.com/ulid/spec
1428
+
1429
+ ```ts
1430
+ type ActivityId = string // ulid
1431
+ ```