cry-klikvet-logic 0.10.288 → 0.10.289

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 (579) hide show
  1. package/dist/IPV.d.ts +4 -0
  2. package/dist/IPV.d.ts.map +1 -0
  3. package/dist/IPV.js +7 -0
  4. package/dist/IPV.js.map +1 -0
  5. package/dist/ObjectId.d.ts +4 -0
  6. package/dist/ObjectId.d.ts.map +1 -0
  7. package/dist/ObjectId.js +4 -0
  8. package/dist/ObjectId.js.map +1 -0
  9. package/dist/besediloKarence.d.ts +51 -0
  10. package/dist/besediloKarence.d.ts.map +1 -0
  11. package/dist/besediloKarence.js +210 -0
  12. package/dist/besediloKarence.js.map +1 -0
  13. package/dist/calcTimeQuery.d.ts +2 -0
  14. package/dist/calcTimeQuery.d.ts.map +1 -0
  15. package/dist/calcTimeQuery.js +14 -0
  16. package/dist/calcTimeQuery.js.map +1 -0
  17. package/dist/certs.d.ts +14 -0
  18. package/dist/certs.d.ts.map +1 -0
  19. package/dist/certs.js +31 -0
  20. package/dist/certs.js.map +1 -0
  21. package/dist/collectionZalogeNaDan.d.ts +2 -0
  22. package/dist/collectionZalogeNaDan.d.ts.map +1 -0
  23. package/dist/collectionZalogeNaDan.js +4 -0
  24. package/dist/collectionZalogeNaDan.js.map +1 -0
  25. package/dist/davki.d.ts +7 -0
  26. package/dist/davki.d.ts.map +1 -0
  27. package/dist/davki.js +15 -0
  28. package/dist/davki.js.map +1 -0
  29. package/dist/davkiRacuna.d.ts +3 -0
  30. package/dist/davkiRacuna.d.ts.map +1 -0
  31. package/dist/davkiRacuna.js +23 -0
  32. package/dist/davkiRacuna.js.map +1 -0
  33. package/dist/dayjs.d.ts +3 -0
  34. package/dist/dayjs.d.ts.map +1 -0
  35. package/dist/dayjs.js +5 -0
  36. package/dist/dayjs.js.map +1 -0
  37. package/dist/ensureIndexes.d.ts +4 -0
  38. package/dist/ensureIndexes.d.ts.map +1 -0
  39. package/dist/ensureIndexes.js +152 -0
  40. package/dist/ensureIndexes.js.map +1 -0
  41. package/dist/idjiArtiklovKiImajoLahkoZalogo.d.ts +2 -0
  42. package/dist/idjiArtiklovKiImajoLahkoZalogo.d.ts.map +1 -0
  43. package/dist/idjiArtiklovKiImajoLahkoZalogo.js +16 -0
  44. package/dist/idjiArtiklovKiImajoLahkoZalogo.js.map +1 -0
  45. package/dist/index.d.ts +114 -0
  46. package/dist/index.d.ts.map +1 -0
  47. package/dist/index.js +75 -0
  48. package/dist/index.js.map +1 -0
  49. package/dist/isSIVAT.d.ts +2 -0
  50. package/dist/isSIVAT.d.ts.map +1 -0
  51. package/dist/isSIVAT.js +31 -0
  52. package/dist/isSIVAT.js.map +1 -0
  53. package/dist/izracunajNovoMaloprodajnoCeno.d.ts +5 -0
  54. package/dist/izracunajNovoMaloprodajnoCeno.d.ts.map +1 -0
  55. package/dist/izracunajNovoMaloprodajnoCeno.js +24 -0
  56. package/dist/izracunajNovoMaloprodajnoCeno.js.map +1 -0
  57. package/dist/karticaArtikla.d.ts +24 -0
  58. package/dist/karticaArtikla.d.ts.map +1 -0
  59. package/dist/karticaArtikla.js +197 -0
  60. package/dist/karticaArtikla.js.map +1 -0
  61. package/dist/koledar.d.ts +13 -0
  62. package/dist/koledar.d.ts.map +1 -0
  63. package/dist/koledar.js +34 -0
  64. package/dist/koledar.js.map +1 -0
  65. package/dist/lahkoImaZalogo.d.ts +4 -0
  66. package/dist/lahkoImaZalogo.d.ts.map +1 -0
  67. package/dist/lahkoImaZalogo.js +16 -0
  68. package/dist/lahkoImaZalogo.js.map +1 -0
  69. package/dist/maint/nastaviNbcArtiklomIzMpc.d.ts +3 -0
  70. package/dist/maint/nastaviNbcArtiklomIzMpc.d.ts.map +1 -0
  71. package/dist/maint/nastaviNbcArtiklomIzMpc.js +39 -0
  72. package/dist/maint/nastaviNbcArtiklomIzMpc.js.map +1 -0
  73. package/dist/maint/poisciNapakeVSpremembiZaloge.d.ts +2 -0
  74. package/dist/maint/poisciNapakeVSpremembiZaloge.d.ts.map +1 -0
  75. package/dist/maint/poisciNapakeVSpremembiZaloge.js +62 -0
  76. package/dist/maint/poisciNapakeVSpremembiZaloge.js.map +1 -0
  77. package/dist/maint/poknjiziVsoZgodovino.d.ts +55 -0
  78. package/dist/maint/poknjiziVsoZgodovino.d.ts.map +1 -0
  79. package/dist/maint/poknjiziVsoZgodovino.js +254 -0
  80. package/dist/maint/poknjiziVsoZgodovino.js.map +1 -0
  81. package/dist/maint/popraviNabaveCeneNaRacunih.d.ts +6 -0
  82. package/dist/maint/popraviNabaveCeneNaRacunih.d.ts.map +1 -0
  83. package/dist/maint/popraviNabaveCeneNaRacunih.js +42 -0
  84. package/dist/maint/popraviNabaveCeneNaRacunih.js.map +1 -0
  85. package/dist/maint/popraviNabavneCeneNaInventurah.d.ts +3 -0
  86. package/dist/maint/popraviNabavneCeneNaInventurah.d.ts.map +1 -0
  87. package/dist/maint/popraviNabavneCeneNaInventurah.js +26 -0
  88. package/dist/maint/popraviNabavneCeneNaInventurah.js.map +1 -0
  89. package/dist/models/PmzKategorijeZivali.d.ts +90 -0
  90. package/dist/models/PmzKategorijeZivali.d.ts.map +1 -0
  91. package/dist/models/PmzKategorijeZivali.js +44 -0
  92. package/dist/models/PmzKategorijeZivali.js.map +1 -0
  93. package/dist/models/Serijske.d.ts +21 -0
  94. package/dist/models/Serijske.d.ts.map +1 -0
  95. package/dist/models/Serijske.js +3 -0
  96. package/dist/models/Serijske.js.map +1 -0
  97. package/dist/models/SmsOddaja.d.ts +15 -0
  98. package/dist/models/SmsOddaja.d.ts.map +1 -0
  99. package/dist/models/SmsOddaja.js +2 -0
  100. package/dist/models/SmsOddaja.js.map +1 -0
  101. package/dist/models/kodaPopusta.d.ts +9 -0
  102. package/dist/models/kodaPopusta.d.ts.map +1 -0
  103. package/dist/models/kodaPopusta.js +2 -0
  104. package/dist/models/kodaPopusta.js.map +1 -0
  105. package/dist/nazivStranke.d.ts +4 -0
  106. package/dist/nazivStranke.d.ts.map +1 -0
  107. package/dist/nazivStranke.js +11 -0
  108. package/dist/nazivStranke.js.map +1 -0
  109. package/dist/neuporabljeno.d.ts +5 -0
  110. package/dist/neuporabljeno.d.ts.map +1 -0
  111. package/dist/neuporabljeno.js +35 -0
  112. package/dist/neuporabljeno.js.map +1 -0
  113. package/dist/pobrisiZgodovinoNaDan.d.ts +3 -0
  114. package/dist/pobrisiZgodovinoNaDan.d.ts.map +1 -0
  115. package/dist/pobrisiZgodovinoNaDan.js +19 -0
  116. package/dist/pobrisiZgodovinoNaDan.js.map +1 -0
  117. package/dist/podatkiRejca.d.ts +56 -0
  118. package/dist/podatkiRejca.d.ts.map +1 -0
  119. package/dist/podatkiRejca.js +116 -0
  120. package/dist/podatkiRejca.js.map +1 -0
  121. package/dist/polnaInventura.d.ts +5 -0
  122. package/dist/polnaInventura.d.ts.map +1 -0
  123. package/dist/polnaInventura.js +124 -0
  124. package/dist/polnaInventura.js.map +1 -0
  125. package/dist/porabaZaDobavnico.d.ts +13 -0
  126. package/dist/porabaZaDobavnico.d.ts.map +1 -0
  127. package/dist/porabaZaDobavnico.js +91 -0
  128. package/dist/porabaZaDobavnico.js.map +1 -0
  129. package/dist/preracunajPostavkoBlagovnice.d.ts +25 -0
  130. package/dist/preracunajPostavkoBlagovnice.d.ts.map +1 -0
  131. package/dist/preracunajPostavkoBlagovnice.js +46 -0
  132. package/dist/preracunajPostavkoBlagovnice.js.map +1 -0
  133. package/dist/preracunajZalogo.d.ts +117 -0
  134. package/dist/preracunajZalogo.d.ts.map +1 -0
  135. package/dist/preracunajZalogo.js +104 -0
  136. package/dist/preracunajZalogo.js.map +1 -0
  137. package/dist/prisotnostOsebe.d.ts +13 -0
  138. package/dist/prisotnostOsebe.d.ts.map +1 -0
  139. package/dist/prisotnostOsebe.js +2 -0
  140. package/dist/prisotnostOsebe.js.map +1 -0
  141. package/dist/q-blagovnice.d.ts +10 -0
  142. package/dist/q-blagovnice.d.ts.map +1 -0
  143. package/dist/q-blagovnice.js +25 -0
  144. package/dist/q-blagovnice.js.map +1 -0
  145. package/dist/q-isciPoObravnavah.d.ts +35 -0
  146. package/dist/q-isciPoObravnavah.d.ts.map +1 -0
  147. package/dist/q-isciPoObravnavah.js +130 -0
  148. package/dist/q-isciPoObravnavah.js.map +1 -0
  149. package/dist/q-isciPoRacunih.d.ts +165 -0
  150. package/dist/q-isciPoRacunih.d.ts.map +1 -0
  151. package/dist/q-isciPoRacunih.js +153 -0
  152. package/dist/q-isciPoRacunih.js.map +1 -0
  153. package/dist/q-mojPromet.d.ts +26 -0
  154. package/dist/q-mojPromet.d.ts.map +1 -0
  155. package/dist/q-mojPromet.js +163 -0
  156. package/dist/q-mojPromet.js.map +1 -0
  157. package/dist/q-porabaZdravil.d.ts +33 -0
  158. package/dist/q-porabaZdravil.d.ts.map +1 -0
  159. package/dist/q-porabaZdravil.js +180 -0
  160. package/dist/q-porabaZdravil.js.map +1 -0
  161. package/dist/q-prodano.d.ts +27 -0
  162. package/dist/q-prodano.d.ts.map +1 -0
  163. package/dist/q-prodano.js +116 -0
  164. package/dist/q-prodano.js.map +1 -0
  165. package/dist/q-prodanoPorabljeno.d.ts +13 -0
  166. package/dist/q-prodanoPorabljeno.d.ts.map +1 -0
  167. package/dist/q-prodanoPorabljeno.js +70 -0
  168. package/dist/q-prodanoPorabljeno.js.map +1 -0
  169. package/dist/q-promet.d.ts +92 -0
  170. package/dist/q-racunovodji.d.ts +34 -0
  171. package/dist/q-racunovodji.d.ts.map +1 -0
  172. package/dist/q-racunovodji.js +276 -0
  173. package/dist/q-racunovodji.js.map +1 -0
  174. package/dist/q-skupineIzdelkov.d.ts +12 -0
  175. package/dist/q-skupineIzdelkov.d.ts.map +1 -0
  176. package/dist/q-skupineIzdelkov.js +55 -0
  177. package/dist/q-skupineIzdelkov.js.map +1 -0
  178. package/dist/q-skupineStrank.d.ts +12 -0
  179. package/dist/q-skupineStrank.d.ts.map +1 -0
  180. package/dist/q-skupineStrank.js +55 -0
  181. package/dist/q-skupineStrank.js.map +1 -0
  182. package/dist/q-strankeKlasificiraj.d.ts +7 -0
  183. package/dist/q-strankeKlasificiraj.d.ts.map +1 -0
  184. package/dist/q-strankeKlasificiraj.js +74 -0
  185. package/dist/q-strankeKlasificiraj.js.map +1 -0
  186. package/dist/q-strankeZadnjiObiski.d.ts +6 -0
  187. package/dist/q-strankeZadnjiObiski.d.ts.map +1 -0
  188. package/dist/q-strankeZadnjiObiski.js +35 -0
  189. package/dist/q-strankeZadnjiObiski.js.map +1 -0
  190. package/dist/q-zakljucek-blagajne.d.ts +35 -0
  191. package/dist/q-zakljucek-blagajne.d.ts.map +1 -0
  192. package/dist/q-zakljucek-blagajne.js +107 -0
  193. package/dist/q-zakljucek-blagajne.js.map +1 -0
  194. package/dist/razknjiziBlagovnico.d.ts +3 -0
  195. package/dist/razknjiziBlagovnico.d.ts.map +1 -0
  196. package/dist/razknjiziBlagovnico.js +41 -0
  197. package/dist/razknjiziBlagovnico.js.map +1 -0
  198. package/dist/razknjiziDobavnico.d.ts +4 -0
  199. package/dist/razknjiziDobavnico.d.ts.map +1 -0
  200. package/dist/razknjiziDobavnico.js +51 -0
  201. package/dist/razknjiziDobavnico.js.map +1 -0
  202. package/dist/razpisiDatum.d.ts +17 -0
  203. package/dist/razpisiDatum.d.ts.map +1 -0
  204. package/dist/razpisiDatum.js +52 -0
  205. package/dist/razpisiDatum.js.map +1 -0
  206. package/dist/round.d.ts +3 -0
  207. package/dist/round.d.ts.map +1 -0
  208. package/dist/round.js +3 -0
  209. package/dist/round.js.map +1 -0
  210. package/dist/serije.d.ts +91 -0
  211. package/dist/serije.d.ts.map +1 -0
  212. package/dist/serije.js +186 -0
  213. package/dist/serije.js.map +1 -0
  214. package/dist/sestaviNaslov.d.ts +4 -0
  215. package/dist/sestaviNaslov.d.ts.map +1 -0
  216. package/dist/sestaviNaslov.js +17 -0
  217. package/dist/sestaviNaslov.js.map +1 -0
  218. package/dist/smsCepljen.d.ts +25 -0
  219. package/dist/smsCepljen.d.ts.map +1 -0
  220. package/dist/smsCepljen.js +27 -0
  221. package/dist/smsCepljen.js.map +1 -0
  222. package/dist/smsCepljenjaNaDan.d.ts +24 -0
  223. package/dist/smsCepljenjaNaDan.d.ts.map +1 -0
  224. package/dist/smsCepljenjaNaDan.js +83 -0
  225. package/dist/smsCepljenjaNaDan.js.map +1 -0
  226. package/dist/smsCepljenjeBesedilo.d.ts +18 -0
  227. package/dist/smsCepljenjeBesedilo.d.ts.map +1 -0
  228. package/dist/smsCepljenjeBesedilo.js +11 -0
  229. package/dist/smsCepljenjeBesedilo.js.map +1 -0
  230. package/dist/smsMenjave.d.ts +11 -0
  231. package/dist/smsMenjave.d.ts.map +1 -0
  232. package/dist/smsMenjave.js +15 -0
  233. package/dist/smsMenjave.js.map +1 -0
  234. package/dist/smsNarocen.d.ts +24 -0
  235. package/dist/smsNarocen.d.ts.map +1 -0
  236. package/dist/smsNarocen.js +26 -0
  237. package/dist/smsNarocen.js.map +1 -0
  238. package/dist/smsNarocenBesedilo.d.ts +18 -0
  239. package/dist/smsNarocenBesedilo.d.ts.map +1 -0
  240. package/dist/smsNarocenBesedilo.js +13 -0
  241. package/dist/smsNarocenBesedilo.js.map +1 -0
  242. package/dist/smsNaroceniNaDan.d.ts +22 -0
  243. package/dist/smsNaroceniNaDan.d.ts.map +1 -0
  244. package/dist/smsNaroceniNaDan.js +60 -0
  245. package/dist/smsNaroceniNaDan.js.map +1 -0
  246. package/dist/spremembaZalogeZaObdobje.d.ts +18 -0
  247. package/dist/spremembaZalogeZaObdobje.d.ts.map +1 -0
  248. package/dist/spremembaZalogeZaObdobje.js +97 -0
  249. package/dist/spremembaZalogeZaObdobje.js.map +1 -0
  250. package/dist/spremeniZalogo.d.ts +44 -0
  251. package/dist/spremeniZalogo.d.ts.map +1 -0
  252. package/dist/spremeniZalogo.js +148 -0
  253. package/dist/spremeniZalogo.js.map +1 -0
  254. package/dist/spremeniZalogoNaPodlagiRacuna.d.ts +5 -0
  255. package/dist/spremeniZalogoNaPodlagiRacuna.d.ts.map +1 -0
  256. package/dist/spremeniZalogoNaPodlagiRacuna.js +119 -0
  257. package/dist/spremeniZalogoNaPodlagiRacuna.js.map +1 -0
  258. package/dist/spremeniZalogoZaDobavo.d.ts +5 -0
  259. package/dist/spremeniZalogoZaDobavo.d.ts.map +1 -0
  260. package/dist/spremeniZalogoZaDobavo.js +227 -0
  261. package/dist/spremeniZalogoZaDobavo.js.map +1 -0
  262. package/dist/spremeniZalogoZaInventuro.d.ts +5 -0
  263. package/dist/spremeniZalogoZaInventuro.d.ts.map +1 -0
  264. package/dist/spremeniZalogoZaInventuro.js +112 -0
  265. package/dist/spremeniZalogoZaInventuro.js.map +1 -0
  266. package/dist/spremeniZalogoZaPorabo.d.ts +6 -0
  267. package/dist/spremeniZalogoZaPorabo.d.ts.map +1 -0
  268. package/dist/spremeniZalogoZaPorabo.js +64 -0
  269. package/dist/spremeniZalogoZaPorabo.js.map +1 -0
  270. package/dist/spremeniZalogoZaPrenos.d.ts +5 -0
  271. package/dist/spremeniZalogoZaPrenos.d.ts.map +1 -0
  272. package/dist/spremeniZalogoZaPrenos.js +90 -0
  273. package/dist/spremeniZalogoZaPrenos.js.map +1 -0
  274. package/dist/statusReprodukcije.d.ts +3 -0
  275. package/dist/statusReprodukcije.d.ts.map +1 -0
  276. package/dist/statusReprodukcije.js +14 -0
  277. package/dist/statusReprodukcije.js.map +1 -0
  278. package/dist/strankaInfo.d.ts +11 -0
  279. package/dist/strankaInfo.d.ts.map +1 -0
  280. package/dist/strankaInfo.js +21 -0
  281. package/dist/strankaInfo.js.map +1 -0
  282. package/dist/strankaRacuna.d.ts +33 -0
  283. package/dist/strankaRacuna.d.ts.map +1 -0
  284. package/dist/strankaRacuna.js +22 -0
  285. package/dist/strankaRacuna.js.map +1 -0
  286. package/dist/support/poisciSpremembeMpc.d.ts +11 -0
  287. package/dist/support/poisciSpremembeMpc.d.ts.map +1 -0
  288. package/dist/support/poisciSpremembeMpc.js +50 -0
  289. package/dist/support/poisciSpremembeMpc.js.map +1 -0
  290. package/dist/test/dvojne-dobave.d.ts +2 -0
  291. package/dist/test/dvojne-dobave.d.ts.map +1 -0
  292. package/dist/test/dvojne-dobave.js +156 -0
  293. package/dist/test/dvojne-dobave.js.map +1 -0
  294. package/dist/test/memdb.d.ts +2 -0
  295. package/dist/test/memdb.d.ts.map +1 -0
  296. package/dist/test/memdb.js +36 -0
  297. package/dist/test/memdb.js.map +1 -0
  298. package/dist/test/mesane-enote.d.ts +2 -0
  299. package/dist/test/mesane-enote.d.ts.map +1 -0
  300. package/dist/test/mesane-enote.js +65 -0
  301. package/dist/test/mesane-enote.js.map +1 -0
  302. package/dist/test/prestavitev.d.ts +2 -0
  303. package/dist/test/prestavitev.d.ts.map +1 -0
  304. package/dist/test/prestavitev.js +122 -0
  305. package/dist/test/prestavitev.js.map +1 -0
  306. package/dist/test/serijske.d.ts +2 -0
  307. package/dist/test/serijske.d.ts.map +1 -0
  308. package/dist/test/serijske.js +315 -0
  309. package/dist/test/serijske.js.map +1 -0
  310. package/dist/test/sprememba-cene.d.ts +2 -0
  311. package/dist/test/sprememba-cene.d.ts.map +1 -0
  312. package/dist/test/sprememba-cene.js +218 -0
  313. package/dist/test/sprememba-cene.js.map +1 -0
  314. package/dist/test/sprememba-cene2.d.ts +2 -0
  315. package/dist/test/sprememba-cene2.d.ts.map +1 -0
  316. package/dist/test/sprememba-cene2.js +144 -0
  317. package/dist/test/sprememba-cene2.js.map +1 -0
  318. package/dist/test/sprememba-cene3.d.ts +2 -0
  319. package/dist/test/sprememba-cene3.d.ts.map +1 -0
  320. package/dist/test/sprememba-cene3.js +145 -0
  321. package/dist/test/sprememba-cene3.js.map +1 -0
  322. package/dist/test/sprememba-cene4.d.ts +2 -0
  323. package/dist/test/sprememba-cene4.d.ts.map +1 -0
  324. package/dist/test/sprememba-cene4.js +108 -0
  325. package/dist/test/sprememba-cene4.js.map +1 -0
  326. package/dist/test/sprememba-cene5.d.ts +2 -0
  327. package/dist/test/sprememba-cene5.d.ts.map +1 -0
  328. package/dist/test/sprememba-cene5.js +115 -0
  329. package/dist/test/sprememba-cene5.js.map +1 -0
  330. package/dist/test/sprememba-cene6.d.ts +2 -0
  331. package/dist/test/sprememba-cene6.d.ts.map +1 -0
  332. package/dist/test/sprememba-cene6.js +148 -0
  333. package/dist/test/sprememba-cene6.js.map +1 -0
  334. package/dist/test/tuja-zaloga.d.ts +2 -0
  335. package/dist/test/tuja-zaloga.d.ts.map +1 -0
  336. package/dist/test/tuja-zaloga.js +124 -0
  337. package/dist/test/tuja-zaloga.js.map +1 -0
  338. package/dist/test/zaloge.d.ts +2 -0
  339. package/dist/test/zaloge.d.ts.map +1 -0
  340. package/dist/test/zaloge.js +160 -0
  341. package/dist/test/zaloge.js.map +1 -0
  342. package/dist/test/zaloge2.d.ts +2 -0
  343. package/dist/test/zaloge2.d.ts.map +1 -0
  344. package/dist/test/zaloge2.js +177 -0
  345. package/dist/test/zaloge2.js.map +1 -0
  346. package/dist/types/CommandForDevice.d.ts +14 -0
  347. package/dist/types/CommandForDevice.d.ts.map +1 -0
  348. package/dist/types/CommandForDevice.js +2 -0
  349. package/dist/types/CommandForDevice.js.map +1 -0
  350. package/dist/types/Dobavnica.d.ts +47 -0
  351. package/dist/types/Dobavnica.d.ts.map +1 -0
  352. package/dist/types/Dobavnica.js +2 -0
  353. package/dist/types/Dobavnica.js.map +1 -0
  354. package/dist/types/GlavaDokumenta.d.ts +9 -0
  355. package/dist/types/GlavaDokumenta.d.ts.map +1 -0
  356. package/dist/types/GlavaDokumenta.js +2 -0
  357. package/dist/types/GlavaDokumenta.js.map +1 -0
  358. package/dist/types/Obvestilo.d.ts +35 -0
  359. package/dist/types/Obvestilo.d.ts.map +1 -0
  360. package/dist/types/Obvestilo.js +2 -0
  361. package/dist/types/Obvestilo.js.map +1 -0
  362. package/dist/types/SpecifikacijaNeuporabljenega.d.ts +8 -0
  363. package/dist/types/SpecifikacijaNeuporabljenega.d.ts.map +1 -0
  364. package/dist/types/SpecifikacijaNeuporabljenega.js +2 -0
  365. package/dist/types/SpecifikacijaNeuporabljenega.js.map +1 -0
  366. package/dist/types/SpecifikacijaPolneInventure.d.ts +13 -0
  367. package/dist/types/SpecifikacijaPolneInventure.d.ts.map +1 -0
  368. package/dist/types/SpecifikacijaPolneInventure.js +2 -0
  369. package/dist/types/SpecifikacijaPolneInventure.js.map +1 -0
  370. package/dist/types/SpremembaCene.d.ts +15 -0
  371. package/dist/types/SpremembaCene.d.ts.map +1 -0
  372. package/dist/types/SpremembaCene.js +2 -0
  373. package/dist/types/SpremembaCene.js.map +1 -0
  374. package/dist/types/VrstaRazknjizbeZdravila.d.ts +2 -0
  375. package/dist/types/VrstaRazknjizbeZdravila.d.ts.map +1 -0
  376. package/dist/types/VrstaRazknjizbeZdravila.js +2 -0
  377. package/dist/types/VrstaRazknjizbeZdravila.js.map +1 -0
  378. package/dist/types/VrstaSpremembeZaloge.d.ts +6 -0
  379. package/dist/types/VrstaSpremembeZaloge.d.ts.map +1 -0
  380. package/dist/types/VrstaSpremembeZaloge.js +2 -0
  381. package/dist/types/VrstaSpremembeZaloge.js.map +1 -0
  382. package/dist/types/VrsteDokumentov.d.ts +9 -0
  383. package/dist/types/VrsteDokumentov.d.ts.map +1 -0
  384. package/dist/types/VrsteDokumentov.js +3 -0
  385. package/dist/types/VrsteDokumentov.js.map +1 -0
  386. package/dist/types/ZalogaDbAccessor.d.ts +20 -0
  387. package/dist/types/ZalogaDbAccessor.d.ts.map +1 -0
  388. package/dist/types/ZalogaDbAccessor.js +2 -0
  389. package/dist/types/ZalogaDbAccessor.js.map +1 -0
  390. package/dist/types/artikel.d.ts +86 -0
  391. package/dist/types/artikel.d.ts.map +1 -0
  392. package/dist/types/artikel.js +34 -0
  393. package/dist/types/artikel.js.map +1 -0
  394. package/dist/types/blagajna.d.ts +19 -0
  395. package/dist/types/blagajna.d.ts.map +1 -0
  396. package/dist/types/blagajna.js +2 -0
  397. package/dist/types/blagajna.js.map +1 -0
  398. package/dist/types/blagovnica.d.ts +120 -0
  399. package/dist/types/blagovnica.d.ts.map +1 -0
  400. package/dist/types/blagovnica.js +2 -0
  401. package/dist/types/blagovnica.js.map +1 -0
  402. package/dist/types/cepljenje.d.ts +40 -0
  403. package/dist/types/cepljenje.d.ts.map +1 -0
  404. package/dist/types/cepljenje.js +2 -0
  405. package/dist/types/cepljenje.js.map +1 -0
  406. package/dist/types/diagnoza.d.ts +6 -0
  407. package/dist/types/diagnoza.d.ts.map +1 -0
  408. package/dist/types/diagnoza.js +2 -0
  409. package/dist/types/diagnoza.js.map +1 -0
  410. package/dist/types/enota.d.ts +14 -0
  411. package/dist/types/enota.d.ts.map +1 -0
  412. package/dist/types/enota.js +9 -0
  413. package/dist/types/enota.js.map +1 -0
  414. package/dist/types/karence.d.ts +26 -0
  415. package/dist/types/karence.d.ts.map +1 -0
  416. package/dist/types/karence.js +13 -0
  417. package/dist/types/karence.js.map +1 -0
  418. package/dist/types/lokacija.d.ts +12 -0
  419. package/dist/types/lokacija.d.ts.map +1 -0
  420. package/dist/types/lokacija.js +2 -0
  421. package/dist/types/lokacija.js.map +1 -0
  422. package/dist/types/nalepka.d.ts +22 -0
  423. package/dist/types/nalepka.d.ts.map +1 -0
  424. package/dist/types/nalepka.js +2 -0
  425. package/dist/types/nalepka.js.map +1 -0
  426. package/dist/types/naprava.d.ts +24 -0
  427. package/dist/types/naprava.d.ts.map +1 -0
  428. package/dist/types/naprava.js +2 -0
  429. package/dist/types/naprava.js.map +1 -0
  430. package/dist/types/narocen.d.ts +28 -0
  431. package/dist/types/narocen.d.ts.map +1 -0
  432. package/dist/types/narocen.js +2 -0
  433. package/dist/types/narocen.js.map +1 -0
  434. package/dist/types/naslov.d.ts +11 -0
  435. package/dist/types/naslov.d.ts.map +1 -0
  436. package/dist/types/naslov.js +2 -0
  437. package/dist/types/naslov.js.map +1 -0
  438. package/dist/types/nastavitve.d.ts +115 -0
  439. package/dist/types/nastavitve.d.ts.map +1 -0
  440. package/dist/types/nastavitve.js +2 -0
  441. package/dist/types/nastavitve.js.map +1 -0
  442. package/dist/types/obravnava.d.ts +80 -0
  443. package/dist/types/obravnava.d.ts.map +1 -0
  444. package/dist/types/obravnava.js +10 -0
  445. package/dist/types/obravnava.js.map +1 -0
  446. package/dist/types/pacient.d.ts +30 -0
  447. package/dist/types/pacient.d.ts.map +1 -0
  448. package/dist/types/pacient.js +2 -0
  449. package/dist/types/pacient.js.map +1 -0
  450. package/dist/types/partnerji.d.ts +14 -0
  451. package/dist/types/partnerji.d.ts.map +1 -0
  452. package/dist/types/partnerji.js +3 -0
  453. package/dist/types/partnerji.js.map +1 -0
  454. package/dist/types/pasma.d.ts +6 -0
  455. package/dist/types/pasma.d.ts.map +1 -0
  456. package/dist/types/pasma.js +2 -0
  457. package/dist/types/pasma.js.map +1 -0
  458. package/dist/types/podpis.d.ts +8 -0
  459. package/dist/types/podpis.d.ts.map +1 -0
  460. package/dist/types/podpis.js +2 -0
  461. package/dist/types/podpis.js.map +1 -0
  462. package/dist/types/poslovalnica.d.ts +20 -0
  463. package/dist/types/poslovalnica.d.ts.map +1 -0
  464. package/dist/types/poslovalnica.js +2 -0
  465. package/dist/types/poslovalnica.js.map +1 -0
  466. package/dist/types/protokol.d.ts +15 -0
  467. package/dist/types/protokol.d.ts.map +1 -0
  468. package/dist/types/protokol.js +2 -0
  469. package/dist/types/protokol.js.map +1 -0
  470. package/dist/types/racun.d.ts +232 -0
  471. package/dist/types/racun.d.ts.map +1 -0
  472. package/dist/types/racun.js +2 -0
  473. package/dist/types/racun.js.map +1 -0
  474. package/dist/types/shared.d.ts +24 -0
  475. package/dist/types/shared.d.ts.map +1 -0
  476. package/dist/types/shared.js +2 -0
  477. package/dist/types/shared.js.map +1 -0
  478. package/dist/types/skladisce.d.ts +10 -0
  479. package/dist/types/skladisce.d.ts.map +1 -0
  480. package/dist/types/skladisce.js +2 -0
  481. package/dist/types/skladisce.js.map +1 -0
  482. package/dist/types/stranka.d.ts +64 -0
  483. package/dist/types/stranka.d.ts.map +1 -0
  484. package/dist/types/stranka.js +2 -0
  485. package/dist/types/stranka.js.map +1 -0
  486. package/dist/types/teren.d.ts +350 -0
  487. package/dist/types/teren.d.ts.map +1 -0
  488. package/dist/types/teren.js +84 -0
  489. package/dist/types/teren.js.map +1 -0
  490. package/dist/types/uporabnik.d.ts +27 -0
  491. package/dist/types/uporabnik.d.ts.map +1 -0
  492. package/dist/types/uporabnik.js +2 -0
  493. package/dist/types/uporabnik.js.map +1 -0
  494. package/dist/types/vrsta.d.ts +10 -0
  495. package/dist/types/vrsta.d.ts.map +1 -0
  496. package/dist/types/vrsta.js +2 -0
  497. package/dist/types/vrsta.js.map +1 -0
  498. package/dist/types/vrstaObravnave.d.ts +10 -0
  499. package/dist/types/vrstaObravnave.d.ts.map +1 -0
  500. package/dist/types/vrstaObravnave.js +2 -0
  501. package/dist/types/vrstaObravnave.js.map +1 -0
  502. package/dist/types/zaloga.d.ts +53 -0
  503. package/dist/types/zaloga.d.ts.map +1 -0
  504. package/dist/types/zaloga.js +2 -0
  505. package/dist/types/zaloga.js.map +1 -0
  506. package/dist/types/zaracunajDobavnice.d.ts +11 -0
  507. package/dist/types/zaracunajDobavnice.d.ts.map +1 -0
  508. package/dist/types/zaracunajDobavnice.js +2 -0
  509. package/dist/types/zaracunajDobavnice.js.map +1 -0
  510. package/dist/updateOpombeRejca.d.ts +3 -0
  511. package/dist/updateOpombeRejca.d.ts.map +1 -0
  512. package/dist/updateOpombeRejca.js +10 -0
  513. package/dist/updateOpombeRejca.js.map +1 -0
  514. package/dist/updatePotrditevBrejosti.d.ts +3 -0
  515. package/dist/updatePotrditevBrejosti.d.ts.map +1 -0
  516. package/dist/updatePotrditevBrejosti.js +13 -0
  517. package/dist/updatePotrditevBrejosti.js.map +1 -0
  518. package/dist/updatePresusitve.d.ts +3 -0
  519. package/dist/updatePresusitve.d.ts.map +1 -0
  520. package/dist/updatePresusitve.js +12 -0
  521. package/dist/updatePresusitve.js.map +1 -0
  522. package/dist/updateStatusOsemenitve.d.ts +3 -0
  523. package/dist/updateStatusOsemenitve.d.ts.map +1 -0
  524. package/dist/updateStatusOsemenitve.js +12 -0
  525. package/dist/updateStatusOsemenitve.js.map +1 -0
  526. package/dist/vrsteDokumentov.d.ts +9 -0
  527. package/dist/vrsteDokumentov.d.ts.map +1 -0
  528. package/dist/vrsteDokumentov.js +29 -0
  529. package/dist/vrsteDokumentov.js.map +1 -0
  530. package/dist/vsotaDobavZaObdobje.d.ts +10 -0
  531. package/dist/vsotaDobavZaObdobje.d.ts.map +1 -0
  532. package/dist/vsotaDobavZaObdobje.js +49 -0
  533. package/dist/vsotaDobavZaObdobje.js.map +1 -0
  534. package/dist/zakljuciBlagovnico.d.ts +4 -0
  535. package/dist/zakljuciBlagovnico.d.ts.map +1 -0
  536. package/dist/zakljuciBlagovnico.js +61 -0
  537. package/dist/zakljuciBlagovnico.js.map +1 -0
  538. package/dist/zalogaDbAccessorInMem.d.ts +8 -0
  539. package/dist/zalogaDbAccessorInMem.d.ts.map +1 -0
  540. package/dist/zalogaDbAccessorInMem.js +124 -0
  541. package/dist/zalogaDbAccessorInMem.js.map +1 -0
  542. package/dist/zalogaNaDan.d.ts +9 -0
  543. package/dist/zalogaNaDan.d.ts.map +1 -0
  544. package/dist/zalogaNaDan.js +38 -0
  545. package/dist/zalogaNaDan.js.map +1 -0
  546. package/dist/zalogaNaDanIzracunana.d.ts +7 -0
  547. package/dist/zalogaNaDanIzracunana.d.ts.map +1 -0
  548. package/dist/zalogaNaDanIzracunana.js +59 -0
  549. package/dist/zalogaNaDanIzracunana.js.map +1 -0
  550. package/dist/zalogaPoDnevih.d.ts +9 -0
  551. package/dist/zalogaPoDnevih.d.ts.map +1 -0
  552. package/dist/zalogaPoDnevih.js +52 -0
  553. package/dist/zalogaPoDnevih.js.map +1 -0
  554. package/dist/zapisiZalogoPoDnevih.d.ts +7 -0
  555. package/dist/zapisiZalogoPoDnevih.d.ts.map +1 -0
  556. package/dist/zapisiZalogoPoDnevih.js +88 -0
  557. package/dist/zapisiZalogoPoDnevih.js.map +1 -0
  558. package/dist/zapisiZalogoPoDnevih_old.d.ts +6 -0
  559. package/dist/zapisiZalogoPoDnevih_old.d.ts.map +1 -0
  560. package/dist/zapisiZalogoPoDnevih_old.js +102 -0
  561. package/dist/zapisiZalogoPoDnevih_old.js.map +1 -0
  562. package/dist/zaracunajDobavnice.d.ts +9 -0
  563. package/dist/zaracunajDobavnice.d.ts.map +1 -0
  564. package/dist/zaracunajDobavnice.js +168 -0
  565. package/dist/zaracunajDobavnice.js.map +1 -0
  566. package/dist/zavarovanje.d.ts +3 -0
  567. package/dist/zavarovanje.d.ts.map +1 -0
  568. package/dist/zavarovanje.js +11 -0
  569. package/dist/zavarovanje.js.map +1 -0
  570. package/dist/zbrisiZalogoArtiklovKiJeNeMorejoImeti.d.ts +2 -0
  571. package/dist/zbrisiZalogoArtiklovKiJeNeMorejoImeti.d.ts.map +1 -0
  572. package/dist/zbrisiZalogoArtiklovKiJeNeMorejoImeti.js +28 -0
  573. package/dist/zbrisiZalogoArtiklovKiJeNeMorejoImeti.js.map +1 -0
  574. package/dist/zeleniPribitek.d.ts +6 -0
  575. package/dist/zeleniPribitek.d.ts.map +1 -0
  576. package/dist/zeleniPribitek.js +8 -0
  577. package/dist/zeleniPribitek.js.map +1 -0
  578. package/package.json +1 -1
  579. package/tsconfig.tsbuildinfo +1 -1
package/dist/IPV.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { MozneKarenceZa } from "./types/karence.js";
2
+ export declare const KARENCE_IPV: Record<MozneKarenceZa, number>;
3
+ export declare const NAJDALJSA_MOZNA_KARENCA_DNI = 90;
4
+ //# sourceMappingURL=IPV.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPV.d.ts","sourceRoot":"","sources":["../src/IPV.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAKnB,CAAA;AAGpC,eAAO,MAAM,2BAA2B,KAAK,CAAC"}
package/dist/IPV.js ADDED
@@ -0,0 +1,7 @@
1
+ export const KARENCE_IPV = {
2
+ meso: 28,
3
+ "not. organi": 28,
4
+ mleko: 7,
5
+ };
6
+ export const NAJDALJSA_MOZNA_KARENCA_DNI = 90;
7
+ //# sourceMappingURL=IPV.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IPV.js","sourceRoot":"","sources":["../src/IPV.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,WAAW,GACvB;IACC,IAAI,EAAE,EAAE;IACR,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,CAAC;CAC0B,CAAA;AAGpC,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ObjectId as OJD } from "bson";
2
+ export declare const ObjectId: typeof OJD;
3
+ export declare const ObjectID: typeof OJD;
4
+ //# sourceMappingURL=ObjectId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectId.d.ts","sourceRoot":"","sources":["../src/ObjectId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,MAAM,CAAC;AAEvC,eAAO,MAAM,QAAQ,YAAM,CAAC;AAC5B,eAAO,MAAM,QAAQ,YAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ObjectId as OJD } from "bson";
2
+ export const ObjectId = OJD;
3
+ export const ObjectID = OJD;
4
+ //# sourceMappingURL=ObjectId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectId.js","sourceRoot":"","sources":["../src/ObjectId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC;AAC5B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { KarencaVrste, Karence, MozneKarenceZa, PodatkiKarence } from "./types/karence.js";
2
+ import { Terapija, OsemenitevGoveda, Obisk } from "./types/teren.js";
3
+ export declare const VseMozneKarenceZa: MozneKarenceZa[];
4
+ export declare function urediKarence(karence: MozneKarenceZa[]): MozneKarenceZa[];
5
+ export declare function besediloKaranceNaKratko(karence?: Partial<Karence>): string;
6
+ export declare function jeVeljavnaKarenca(k: KarencaVrste): boolean;
7
+ export declare function besediloKarence(karenca: Record<MozneKarenceZa, number>, od?: Date): string[];
8
+ export declare function besedilaNajdaljseKarencePoZivalih(postavke?: PodatkiKarence[]): {
9
+ zival: string;
10
+ besedila: string[];
11
+ }[];
12
+ export declare function najdaljsaKarenca(karence: {
13
+ karence?: Partial<Record<MozneKarenceZa, number>>;
14
+ od?: Date;
15
+ }[]): {
16
+ maxDnevi: Record<MozneKarenceZa, {
17
+ za: MozneKarenceZa;
18
+ dni: number;
19
+ }>;
20
+ maxDatum: Record<MozneKarenceZa, {
21
+ za: MozneKarenceZa;
22
+ dni: number;
23
+ od: Date;
24
+ }>;
25
+ };
26
+ export declare function besediloNajdaljseKarence(karence: {
27
+ karence?: Partial<Record<MozneKarenceZa, number>>;
28
+ od?: Date;
29
+ }[]): string[];
30
+ export declare function besediloKarenceZa(za: MozneKarenceZa, dni: number, od?: Date): string;
31
+ export declare function karenceZaTerapije(terapije?: Terapija[]): PodatkiKarence[];
32
+ export declare function karenceZaOsemenitve(osemenitve?: OsemenitevGoveda[]): PodatkiKarence[];
33
+ export declare function karenceZaObiske(obiski?: Obisk[]): PodatkiKarence[];
34
+ export declare function besediloKarenceZaTerapije(terapije?: Terapija[]): {
35
+ zival: string;
36
+ besedila: string[];
37
+ }[];
38
+ export declare function besediloKarenceZaOsemenitve(osemenitve?: OsemenitevGoveda[]): {
39
+ zival: string;
40
+ besedila: string[];
41
+ }[];
42
+ export declare function besediloKarenceZaObiske(obiski?: Obisk[]): {
43
+ zival: string;
44
+ besedila: string[];
45
+ }[];
46
+ export declare function odstraniNeaktvneKarence(vse: PodatkiKarence[]): PodatkiKarence[];
47
+ export declare function zdruzenaBesedilaKarence(obiski: Obisk[], terapije: Terapija[], osemenitve: OsemenitevGoveda[], zdruzeno: boolean, samoAktivne: boolean): {
48
+ zival: string;
49
+ besedila: string[];
50
+ }[];
51
+ //# sourceMappingURL=besediloKarence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"besediloKarence.d.ts","sourceRoot":"","sources":["../src/besediloKarence.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAAqD,CAAC;AAEpG,wBAAgB,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,oBAMrD;AAED,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,OAAO,CAAC,OAAO,CAAM,UAGrE;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,YAAY,WAEhD;AAED,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,EACvC,EAAE,CAAC,EAAE,IAAI,GACP,MAAM,EAAE,CAEV;AAED,wBAAgB,iCAAiC,CAChD,QAAQ,GAAE,cAAc,EAAO;WAsBb,MAAM;cAAY,MAAM,EAAE;IAU5C;AAED,wBAAgB,gBAAgB,CAC/B,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAE,EAAE;;YAIhC,cAAc;aAAO,MAAM;;;YAD3B,cAAc;aAAO,MAAM;YAAM,IAAI;;EAuBhF;AAED,wBAAgB,wBAAwB,CACvC,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IAAC,EAAE,CAAC,EAAE,IAAI,CAAA;CAAE,EAAE,GACzE,MAAM,EAAE,CAQV;AAQD,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAwBpF;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,GAAE,QAAQ,EAAO,GAAI,cAAc,EAAE,CAW9E;AACD,wBAAgB,mBAAmB,CAAC,UAAU,GAAE,gBAAgB,EAAO,GAAI,cAAc,EAAE,CAW1F;AACD,wBAAgB,eAAe,CAAC,MAAM,GAAE,KAAK,EAAO,GAAI,cAAc,EAAE,CAWvE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,QAAQ,EAAO;;;IAElE;AAED,wBAAgB,2BAA2B,CAAC,UAAU,GAAE,gBAAgB,EAAO;;;IAE9E;AACD,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,KAAK,EAAO;;;IAE3D;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAI,cAAc,EAAE,CAUhF;AAED,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,EACrE,QAAQ,EAAE,OAAO,EACjB,WAAW,EAAE,OAAO;;;IAiBpB"}
@@ -0,0 +1,210 @@
1
+ import { dedup } from "cry-helpers";
2
+ import dayjs from "dayjs";
3
+ import { KARENCE_IPV } from "./IPV.js";
4
+ export const VseMozneKarenceZa = ["meso", "not. organi", "mleko", "jajca", "med"];
5
+ export function urediKarence(karence) {
6
+ if (!karence?.length)
7
+ return [];
8
+ let res = [];
9
+ VseMozneKarenceZa.forEach(k => { if (karence.includes(k))
10
+ res.push(k); });
11
+ return res;
12
+ }
13
+ export function besediloKaranceNaKratko(karence = {}) {
14
+ if (!karence)
15
+ return "";
16
+ return VseMozneKarenceZa.map(k => karence[k] || "-").join("/").replace(/(\/-)+$/g, "");
17
+ }
18
+ export function jeVeljavnaKarenca(k) {
19
+ return !!Object.keys(k?.karence || {}).length;
20
+ }
21
+ export function besediloKarence(karenca, od) {
22
+ return Object.keys(karenca).map(za => besediloKarenceZa(za, karenca[za], od));
23
+ }
24
+ export function besedilaNajdaljseKarencePoZivalih(postavke = []) {
25
+ let poZivalih = {};
26
+ // pomnoži postavke, kjer je več živali ločenih z vejico
27
+ postavke = postavke.map(a => {
28
+ return (a.zival || "").split(",").map(z => {
29
+ return {
30
+ karence: a.karence,
31
+ IPV: a.IPV,
32
+ od: a.od,
33
+ zival: z.trim()
34
+ };
35
+ });
36
+ }).flat();
37
+ for (let postavka of postavke) {
38
+ poZivalih[postavka.zival || ""] ||= [];
39
+ poZivalih[postavka.zival || ""].push(postavka);
40
+ if (postavka.IPV)
41
+ poZivalih[postavka.zival || ""].push({ zival: postavka.zival, od: postavka.od, karence: KARENCE_IPV });
42
+ }
43
+ let res = [];
44
+ Object.entries(poZivalih).forEach(([zival, karence]) => {
45
+ res.push({
46
+ zival,
47
+ besedila: besediloNajdaljseKarence(karence)
48
+ });
49
+ });
50
+ return res;
51
+ }
52
+ export function najdaljsaKarenca(karence) {
53
+ let maxDatum = {};
54
+ let maxDnevi = {};
55
+ for (let moznost of karence) {
56
+ for (let _za in moznost.karence) {
57
+ let za = _za;
58
+ let dni = moznost.karence[za] || 0;
59
+ let od = moznost.od;
60
+ if (od) {
61
+ if (!maxDatum[za] || dayjs(maxDatum[za].od).add(maxDatum[za].dni, "days").isBefore(dayjs(od).add(dni, "days"))) {
62
+ maxDatum[za] = { za, dni, od };
63
+ }
64
+ }
65
+ else {
66
+ if (!maxDnevi[za] || maxDnevi[za].dni > dni) {
67
+ maxDnevi[za] = { za, dni };
68
+ }
69
+ }
70
+ }
71
+ }
72
+ return { maxDnevi, maxDatum };
73
+ }
74
+ export function besediloNajdaljseKarence(karence) {
75
+ const { maxDatum, maxDnevi } = najdaljsaKarenca(karence);
76
+ return [
77
+ ...Object.keys(maxDatum).map(za => besediloKarenceZa(za, maxDatum[za]?.dni, maxDatum[za]?.od)),
78
+ ...Object.keys(maxDnevi).map(za => besediloKarenceZa(za, maxDnevi[za]?.dni)),
79
+ ].filter(a => !!a);
80
+ }
81
+ function stDni(dni) {
82
+ if (dni === 1)
83
+ return `${dni} dan`;
84
+ if (dni === 2)
85
+ return `${dni} dneva`;
86
+ return `${dni} dni`;
87
+ }
88
+ export function besediloKarenceZa(za, dni, od) {
89
+ if (!dni)
90
+ return "";
91
+ if (od) {
92
+ let doDne = dayjs(od).add(dni, "days").format("D.M.YYYY");
93
+ switch (za) {
94
+ case "meso": return `Meso ni uporabno za prehrano ljudi do ${doDne} in ${stDni(dni)} po zadnji uporabi zdravila.`;
95
+ case "mleko": return `Mleko ni uporabno za prehrano ljudi do ${doDne} in ${stDni(dni)} po zadnji uporabi zdravila.`;
96
+ case "not. organi": return `Notranji organi niso uporabni za prehrano ljudi do ${doDne} in ${stDni(dni)} po zadnji uporabi zdravila.`;
97
+ case "jajca": return `Jajca niso uporabna za prehrano ljudi do ${doDne} in ${stDni(dni)} po zadnji uporabi zdravila.`;
98
+ case "med": return `Med ni uporaben za prehrano ljudi do ${doDne} in ${stDni(dni)} po zadnji uporabi zdravila.`;
99
+ default: `Karenca za ${za} do ${doDne}.`;
100
+ }
101
+ }
102
+ else {
103
+ switch (za) {
104
+ case "meso": return `Meso ni uporabno za prehrano ljudi ${stDni(dni)} po zadnji uporabi zdravila.`;
105
+ case "mleko": return `Mleko ni uporabno za prehrano ljudi ${stDni(dni)} po zadnji uporabi zdravila.`;
106
+ case "not. organi": return `Notranji organi niso uporabni ${stDni(dni)} po zadnji uporabi zdravila.`;
107
+ case "jajca": return `Jajca niso uporabna za prehrano ljudi ${stDni(dni)} po zadnji uporabi zdravila.`;
108
+ case "med": return `Med ni uporaben za prehrano ljudi ${stDni(dni)} po zadnji uporabi zdravila.`;
109
+ default: `Karenca za ${za} ${stDni(dni)} po zadnji uporabi zdravila.`;
110
+ }
111
+ }
112
+ return "";
113
+ }
114
+ export function karenceZaTerapije(terapije = []) {
115
+ let izTerapije = [];
116
+ for (let terapija of terapije) {
117
+ let zival = terapija.zaZivaliOpisno || terapija.stevilkeZivali?.join(", ");
118
+ for (let postavka of terapija.postavke || []) {
119
+ if (postavka.karence)
120
+ izTerapije.push({ karence: postavka.karence.karence, od: postavka.karencaOd || terapija.datumTerapije, zival, IPV: postavka.IPV });
121
+ }
122
+ if (terapija.IPV)
123
+ izTerapije.push({ karence: KARENCE_IPV, od: terapija.datumTerapije, zival });
124
+ }
125
+ return izTerapije;
126
+ }
127
+ export function karenceZaOsemenitve(osemenitve = []) {
128
+ let izOsemenitve = [];
129
+ for (let osemenitev of osemenitve) {
130
+ let zival = osemenitev.stevilkaZivali;
131
+ for (let postavka of osemenitev.zdravila || []) {
132
+ if (postavka.karence)
133
+ izOsemenitve.push({ karence: postavka.karence.karence, od: postavka.karencaOd || osemenitev.datum, zival, IPV: postavka.IPV });
134
+ }
135
+ if (osemenitev.IPV)
136
+ izOsemenitve.push({ karence: KARENCE_IPV, od: osemenitev.datum, zival });
137
+ }
138
+ return izOsemenitve;
139
+ }
140
+ export function karenceZaObiske(obiski = []) {
141
+ let izObiska = [];
142
+ for (let obisk of obiski) {
143
+ let zival = "obisk " + dayjs(obisk.datum).format("D.M.YYYY");
144
+ for (let postavka of obisk?.zaracunaj || []) {
145
+ if (postavka.karence && !postavka.terapija_id && !postavka.osemenitev_ids?.length && !postavka.osemenitev_id)
146
+ izObiska.push({ karence: postavka.karence.karence, od: postavka.karencaOd || obisk.datum, zival, IPV: postavka.IPV });
147
+ }
148
+ if (obisk.IPV)
149
+ izObiska.push({ karence: KARENCE_IPV, od: obisk.datum, zival });
150
+ }
151
+ return izObiska;
152
+ }
153
+ export function besediloKarenceZaTerapije(terapije = []) {
154
+ return besedilaNajdaljseKarencePoZivalih(karenceZaTerapije(terapije)).filter(a => a.besedila.length);
155
+ }
156
+ export function besediloKarenceZaOsemenitve(osemenitve = []) {
157
+ return besedilaNajdaljseKarencePoZivalih(karenceZaOsemenitve(osemenitve)).filter(a => a.besedila.length);
158
+ }
159
+ export function besediloKarenceZaObiske(obiski = []) {
160
+ return besedilaNajdaljseKarencePoZivalih(karenceZaObiske(obiski)).filter(a => a.besedila.length);
161
+ }
162
+ export function odstraniNeaktvneKarence(vse) {
163
+ let danes = new Date();
164
+ if (!vse?.length)
165
+ return vse;
166
+ return vse.filter(k => {
167
+ if (!k.od || !k.karence)
168
+ return false;
169
+ let dnevi = Object.values(k.karence) || [];
170
+ if (k.IPV)
171
+ dnevi = [...dnevi, ...Object.values(KARENCE_IPV)];
172
+ let doDne = dayjs(k.od).add(Math.max(...dnevi), "days").endOf("day");
173
+ return doDne.isAfter(danes);
174
+ });
175
+ }
176
+ ;
177
+ export function zdruzenaBesedilaKarence(obiski, terapije, osemenitve, zdruzeno, samoAktivne) {
178
+ let vse = [
179
+ ...karenceZaTerapije(terapije?.filter(a => a) || []),
180
+ ...karenceZaOsemenitve(osemenitve?.filter(a => a) || []),
181
+ ...karenceZaObiske(obiski?.filter(a => a) || []),
182
+ ].flat();
183
+ if (samoAktivne)
184
+ vse = odstraniNeaktvneKarence(vse);
185
+ if (zdruzeno) {
186
+ vse.forEach(a => a.zival = "");
187
+ return strniEnakaBesedila(besedilaNajdaljseKarencePoZivalih(vse).flat());
188
+ }
189
+ else {
190
+ return strniEnakaBesedila([
191
+ besedilaNajdaljseKarencePoZivalih(vse).flat()
192
+ ].flat());
193
+ }
194
+ }
195
+ function strniEnakaBesedila(vse = []) {
196
+ let objTxt = {};
197
+ for (let k of vse) {
198
+ let key = k.besedila.join(" ");
199
+ objTxt[key] ||= { zivali: [], besedila: k.besedila };
200
+ objTxt[key].zivali.push(k.zival);
201
+ }
202
+ let res = Object.values(objTxt).map(e => {
203
+ return {
204
+ zival: dedup(e.zivali).join(", "),
205
+ besedila: e.besedila
206
+ };
207
+ });
208
+ return res;
209
+ }
210
+ //# sourceMappingURL=besediloKarence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"besediloKarence.js","sourceRoot":"","sources":["../src/besediloKarence.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,MAAM,iBAAiB,GAAqB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAEpG,MAAM,UAAU,YAAY,CAAC,OAAyB;IAErD,IAAI,CAAC,OAAO,EAAE,MAAM;QAAE,OAAO,EAAE,CAAA;IAC/B,IAAI,GAAG,GAAsB,EAAE,CAAA;IAC/B,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAAE,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;IACzE,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,UAA4B,EAAE;IACrE,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAA;IACvB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAA;AACvF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,CAAe;IAChD,OAAO,CAAC,CAAC,MAAM,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,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QACvC,OAAO;YACN,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YACjC,QAAQ,EAAE,CAAC,CAAC,QAAQ;SACpB,CAAA;IACF,CAAC,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function calcTimeQuery(timeQuery: string): {}[];
2
+ //# sourceMappingURL=calcTimeQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calcTimeQuery.d.ts","sourceRoot":"","sources":["../src/calcTimeQuery.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,QAW9C"}
@@ -0,0 +1,14 @@
1
+ import { times } from "cry-dateranges";
2
+ export function calcTimeQuery(timeQuery) {
3
+ let timeRanges = times(timeQuery);
4
+ return [
5
+ timeRanges.dates.query,
6
+ timeRanges.dayMonths.query,
7
+ timeRanges.years.query,
8
+ timeRanges.months.query,
9
+ timeRanges.days.query,
10
+ timeRanges.weekdays.query,
11
+ timeRanges.hours.query,
12
+ ].flat().filter(k => Object.keys(k).length);
13
+ }
14
+ //# sourceMappingURL=calcTimeQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calcTimeQuery.js","sourceRoot":"","sources":["../src/calcTimeQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,MAAM,UAAU,aAAa,CAAC,SAAiB;IAC3C,IAAI,UAAU,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAClC,OAAO;QACH,UAAU,CAAC,KAAK,CAAC,KAAK;QACtB,UAAU,CAAC,SAAS,CAAC,KAAK;QAC1B,UAAU,CAAC,KAAK,CAAC,KAAK;QACtB,UAAU,CAAC,MAAM,CAAC,KAAK;QACvB,UAAU,CAAC,IAAI,CAAC,KAAK;QACrB,UAAU,CAAC,QAAQ,CAAC,KAAK;QACzB,UAAU,CAAC,KAAK,CAAC,KAAK;KACzB,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Obj } from 'cry-db/dist/types.mjs';
2
+ /**
3
+ * Vrne seznam vseh certifikatov.
4
+ * @param {string} tenant
5
+ */
6
+ declare function getAll(tenant: string): Promise<unknown[]>;
7
+ /**
8
+ * Vrne seznam vseh ne-pretečenih certifikatov.
9
+ * @param {string} tenant
10
+ * @param {Object} query
11
+ */
12
+ declare function getValid(tenant: string, query?: Obj): Promise<unknown[]>;
13
+ export { getAll, getValid, };
14
+ //# sourceMappingURL=certs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certs.d.ts","sourceRoot":"","sources":["../src/certs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C;;;GAGG;AACH,iBAAe,MAAM,CAAE,MAAM,EAAE,MAAM,sBAOpC;AAED;;;;GAIG;AACH,iBAAe,QAAQ,CAAE,MAAM,EAAC,MAAM,EAAE,KAAK,GAAC,GAAM,sBAQnD;AAED,OAAO,EACH,MAAM,EACN,QAAQ,GACX,CAAC"}
package/dist/certs.js ADDED
@@ -0,0 +1,31 @@
1
+ import assert from 'assert';
2
+ import { Repo } from "cry-db";
3
+ /**
4
+ * Vrne seznam vseh certifikatov.
5
+ * @param {string} tenant
6
+ */
7
+ async function getAll(tenant) {
8
+ assert(tenant);
9
+ let repo = new Repo('certifikati', tenant);
10
+ let ret = repo.findAll({}, { project: { certData: 0, certPass: 0, certBase64: 0 } });
11
+ await repo.close();
12
+ return ret;
13
+ }
14
+ /**
15
+ * Vrne seznam vseh ne-pretečenih certifikatov.
16
+ * @param {string} tenant
17
+ * @param {Object} query
18
+ */
19
+ async function getValid(tenant, query = {}) {
20
+ assert(tenant);
21
+ let repo = new Repo('certifikati', tenant);
22
+ query.veljaDo = { $gte: new Date() };
23
+ let ret = repo.findAll(query, { project: { certData: 0, certPass: 0, certBase64: 0 } });
24
+ await repo.close();
25
+ return ret;
26
+ }
27
+ export { getAll, getValid, };
28
+ // (async function () {
29
+ // console.log('get certs', await getValid('vet'))
30
+ // })();
31
+ //# sourceMappingURL=certs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"certs.js","sourceRoot":"","sources":["../src/certs.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAG7B;;;GAGG;AACH,KAAK,UAAU,MAAM,CAAE,MAAc;IAEjC,MAAM,CAAC,MAAM,CAAC,CAAC;IACf,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,EAAC,MAAM,CAAC,CAAA;IACzC,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACrF,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;IAClB,OAAO,GAAG,CAAC;AACf,CAAC;AAED;;;;GAIG;AACH,KAAK,UAAU,QAAQ,CAAE,MAAa,EAAE,QAAU,EAAE;IAEhD,MAAM,CAAC,MAAM,CAAC,CAAC;IACf,IAAI,IAAI,GAAG,IAAI,IAAI,CAAC,aAAa,EAAC,MAAM,CAAC,CAAA;IACzC,KAAK,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,EAAE,CAAA;IACpC,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACxF,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;IACnB,OAAO,GAAG,CAAC;AACf,CAAC;AAED,OAAO,EACH,MAAM,EACN,QAAQ,GACX,CAAC;AAEF,uBAAuB;AACvB,sDAAsD;AACtD,QAAQ"}
@@ -0,0 +1,2 @@
1
+ export declare function collectionZalogeNaDan(samoKonsignacija?: boolean): "zalogaNaDan" | "zalogaNaDanKonsignacija";
2
+ //# sourceMappingURL=collectionZalogeNaDan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectionZalogeNaDan.d.ts","sourceRoot":"","sources":["../src/collectionZalogeNaDan.ts"],"names":[],"mappings":"AACA,wBAAgB,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,OAAO,6CAG/D"}
@@ -0,0 +1,4 @@
1
+ export function collectionZalogeNaDan(samoKonsignacija) {
2
+ return (!!samoKonsignacija) ? "zalogaNaDanKonsignacija" : "zalogaNaDan";
3
+ }
4
+ //# sourceMappingURL=collectionZalogeNaDan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectionZalogeNaDan.js","sourceRoot":"","sources":["../src/collectionZalogeNaDan.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,qBAAqB,CAAC,gBAA0B;IAE/D,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,aAAa,CAAC;AACzE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Davek } from "./types/racun.js";
2
+ export declare function davki(postavke: {
3
+ dst: number;
4
+ tdav: number;
5
+ tprc: number;
6
+ }[]): Davek[];
7
+ //# sourceMappingURL=davki.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"davki.d.ts","sourceRoot":"","sources":["../src/davki.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,wBAAgB,KAAK,CAAC,QAAQ,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,EAAE,GAAG,KAAK,EAAE,CAYvF"}
package/dist/davki.js ADDED
@@ -0,0 +1,15 @@
1
+ import { round4 } from "cry-helpers";
2
+ export function davki(postavke) {
3
+ let d = {};
4
+ Object.values(postavke).forEach(p => {
5
+ d[p.dst] = d[p.dst] || { davek: 0, osnova: 0, dst: Number(p.dst) };
6
+ d[p.dst].davek = (d[p.dst].davek + Number(p.tdav));
7
+ d[p.dst].osnova = (d[p.dst].osnova + Number(p.tprc));
8
+ });
9
+ Object.values(d).forEach(v => {
10
+ v.osnova = round4(v.osnova);
11
+ v.davek = round4(v.davek);
12
+ });
13
+ return Object.values(d);
14
+ }
15
+ //# sourceMappingURL=davki.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"davki.js","sourceRoot":"","sources":["../src/davki.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGrC,MAAM,UAAU,KAAK,CAAC,QAAwD;IAC1E,IAAI,CAAC,GAA0B,EAAE,CAAC;IAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAChC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACnE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAI,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1D,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACzB,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PostavkaRacuna } from "./index.js";
2
+ export declare function davkiRacuna(postavke?: PostavkaRacuna[]): import("./index.js").Davek[];
3
+ //# sourceMappingURL=davkiRacuna.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"davkiRacuna.d.ts","sourceRoot":"","sources":["../src/davkiRacuna.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,wBAAgB,WAAW,CAAC,QAAQ,GAAE,cAAc,EAAO,gCAoB1D"}
@@ -0,0 +1,23 @@
1
+ import { davki } from "./davki.js";
2
+ export function davkiRacuna(postavke = []) {
3
+ let checkFields = [
4
+ "mpc0",
5
+ "prc",
6
+ "mpc",
7
+ "dst",
8
+ "pop",
9
+ "tprc",
10
+ "tmpc",
11
+ "tdav",
12
+ "tpop",
13
+ "kolicina",
14
+ ];
15
+ for (let postavka of postavke) {
16
+ checkFields.forEach(f => {
17
+ if (!(postavka[f] >= 0))
18
+ console.log("davkiRacuna: ni polja", f, postavka[f], postavka);
19
+ });
20
+ }
21
+ return davki(postavke);
22
+ }
23
+ //# sourceMappingURL=davkiRacuna.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"davkiRacuna.js","sourceRoot":"","sources":["../src/davkiRacuna.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAGlC,MAAM,UAAU,WAAW,CAAC,WAA6B,EAAE;IAC1D,IAAI,WAAW,GAA0G;QACxH,MAAM;QACN,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,MAAM;QACN,MAAM;QACN,MAAM;QACN,MAAM;QACN,UAAU;KACV,CAAA;IAED,KAAK,IAAI,QAAQ,IAAI,QAAQ,EAAE;QAC9B,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACvB,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;gBAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAA;QACxF,CAAC,CAAC,CAAA;KACF;IACD,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAA;AACvB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import dayjs from "dayjs";
2
+ export default dayjs;
3
+ //# sourceMappingURL=dayjs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dayjs.d.ts","sourceRoot":"","sources":["../src/dayjs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAe,KAAK,CAAA"}
package/dist/dayjs.js ADDED
@@ -0,0 +1,5 @@
1
+ import dayjs from "dayjs";
2
+ import sl from "dayjs/locale/sl.js";
3
+ dayjs.locale(sl);
4
+ export default dayjs;
5
+ //# sourceMappingURL=dayjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dayjs.js","sourceRoot":"","sources":["../src/dayjs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,oBAAoB,CAAA;AACnC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACjB,eAAe,KAAK,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { Mongo } from "cry-db";
2
+ export declare function dropIndexSafely(mongo: Mongo, collection: string, name: string): Promise<string>;
3
+ export declare function ensureIndexes(db: string, server?: string | undefined): Promise<string[]>;
4
+ //# sourceMappingURL=ensureIndexes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureIndexes.d.ts","sourceRoot":"","sources":["../src/ensureIndexes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAqB9B,wBAAsB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAC9E,OAAO,CAAC,MAAM,CAAC,CAcpB;AAGD,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,GAAG,SAAqB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAqHzG"}