@nomalism-com/api 0.34.1 → 0.34.3

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 (561) hide show
  1. package/dist/index.cjs +4333 -3
  2. package/dist/index.d.ts +1964 -3
  3. package/dist/index.js +4333 -3
  4. package/package-lock.json +2199 -289
  5. package/package.json +12 -10
  6. package/src/modules/document/inventario.ts +1 -3
  7. package/src/modules/document/materialEntrance.ts +17 -53
  8. package/src/modules/document/order.ts +9 -27
  9. package/src/modules/document/propostaSheets.ts +10 -25
  10. package/src/modules/document/purchase.ts +2 -10
  11. package/src/modules/document/quebra.ts +4 -10
  12. package/src/modules/document/returnToProvider.ts +5 -11
  13. package/src/modules/document/transformado.ts +1 -5
  14. package/src/modules/document/upfrontReturn.ts +4 -3
  15. package/src/modules/documentManagement/multimedia.ts +0 -2
  16. package/src/modules/integration/emailLog.ts +8 -12
  17. package/src/modules/integration/emailTemplate.ts +6 -12
  18. package/src/modules/integration/emailTemplateAttachment.ts +1 -5
  19. package/src/modules/integration/googleFilePermission.ts +10 -7
  20. package/src/modules/integration/googleSheets.ts +10 -19
  21. package/src/modules/integration/observation.ts +14 -16
  22. package/src/modules/integration/observationType.ts +12 -14
  23. package/src/modules/integration/projectInfo.ts +1 -3
  24. package/src/modules/integration/settings.ts +9 -10
  25. package/src/modules/print/npc.ts +5 -9
  26. package/src/modules/print/printer.ts +7 -11
  27. package/src/modules/stock/file.ts +7 -7
  28. package/src/modules/stock/location.ts +19 -25
  29. package/src/modules/stock/prison.ts +5 -20
  30. package/src/modules/stock/productGoogleSheets.ts +2 -3
  31. package/src/modules/stock/productImage.ts +18 -29
  32. package/src/modules/stock/promotion.ts +19 -26
  33. package/src/modules/stock/promotionAssoc.ts +18 -24
  34. package/src/modules/stock/queryList.ts +11 -22
  35. package/src/modules/stock/queryParameter.ts +10 -17
  36. package/src/modules/stock/returnReason.ts +7 -11
  37. package/src/modules/stock/savedProviderProposal.ts +5 -7
  38. package/src/modules/stock/schedule.ts +1 -7
  39. package/src/modules/stock/sideMenu.ts +6 -10
  40. package/src/modules/stock/stockMovement.ts +13 -20
  41. package/src/modules/stock/typeOfLocation.ts +23 -26
  42. package/src/modules/stock/unitOfMeasure.ts +23 -26
  43. package/src/modules/stock/vatTax.ts +19 -26
  44. package/src/modules/stock/vatTaxZone.ts +23 -28
  45. package/src/modules/supply/clientCurrentAccount.ts +14 -26
  46. package/src/modules/supply/documentHeader.ts +41 -67
  47. package/src/modules/supply/documentLine.ts +17 -29
  48. package/src/modules/supply/documentLineAssoc.ts +12 -18
  49. package/src/modules/supply/documentLineNote.ts +5 -7
  50. package/src/modules/supply/documentSet.ts +13 -16
  51. package/src/modules/supply/documentType.ts +15 -29
  52. package/src/modules/supply/externalDocumentHeader.ts +23 -26
  53. package/src/modules/supply/externalDocumentType.ts +4 -7
  54. package/src/modules/supply/orderManagement.ts +5 -7
  55. package/src/modules/supply/payment.ts +29 -55
  56. package/src/modules/supply/preSale.ts +16 -30
  57. package/src/modules/supply/preSaleProduct.ts +4 -4
  58. package/src/modules/supply/providerCurrentAccount.ts +3 -5
  59. package/src/modules/supply/startDocumentHeaderLastUpdate.ts +3 -3
  60. package/src/modules/supply/vatValidation.ts +1 -3
  61. package/src/modules/supply/workflow.ts +12 -20
  62. package/src/modules/tickets/channel.ts +12 -13
  63. package/src/modules/tickets/clt.ts +8 -11
  64. package/src/modules/tickets/language.ts +14 -11
  65. package/src/modules/tickets/tickets.ts +8 -16
  66. package/src/modules/user/bankData.ts +16 -24
  67. package/src/modules/user/chatSubscriber.ts +0 -4
  68. package/src/modules/user/clientType.ts +18 -23
  69. package/src/modules/user/clients.ts +23 -32
  70. package/src/modules/user/commissioner.ts +23 -27
  71. package/src/modules/user/country.ts +19 -21
  72. package/src/modules/user/deliveryMethods.ts +15 -16
  73. package/src/modules/user/favorites.ts +6 -11
  74. package/src/modules/user/groupPermission.ts +9 -9
  75. package/src/modules/user/language.ts +16 -20
  76. package/src/modules/user/maturityDates.ts +15 -16
  77. package/src/modules/user/password.ts +2 -6
  78. package/src/modules/user/paymentMethods.ts +15 -16
  79. package/src/modules/user/permission.ts +7 -9
  80. package/src/modules/user/persona.ts +15 -22
  81. package/src/modules/user/provider.ts +25 -34
  82. package/src/modules/user/providerType.ts +18 -20
  83. package/src/modules/user/purchaseCondition.ts +20 -22
  84. package/src/modules/user/reasonForExemption.ts +20 -23
  85. package/src/modules/user/refreshToken.ts +3 -4
  86. package/src/modules/user/segmentsArea.ts +18 -23
  87. package/src/modules/user/sessions.ts +1 -4
  88. package/src/modules/user/shippings.ts +16 -22
  89. package/src/modules/user/storeOperator.ts +26 -33
  90. package/src/modules/user/swift.ts +14 -20
  91. package/src/modules/user/tenant.ts +7 -10
  92. package/src/modules/user/theme.ts +1 -5
  93. package/src/modules/user/user.ts +20 -34
  94. package/src/modules/user/userPermission.ts +7 -10
  95. package/src/modules/user/userPositions.ts +20 -23
  96. package/src/modules/user/vehicles.ts +7 -11
  97. package/src/modules/user/zipCode.ts +4 -7
  98. package/tsconfig.json +1 -1
  99. package/tsup.config.ts +13 -0
  100. package/dist/index.d.ts.map +0 -1
  101. package/dist/index.js.map +0 -1
  102. package/dist/main.d.ts +0 -356
  103. package/dist/main.d.ts.map +0 -1
  104. package/dist/main.js +0 -371
  105. package/dist/main.js.map +0 -1
  106. package/dist/modules/document/billOfLading.d.ts +0 -10
  107. package/dist/modules/document/billOfLading.d.ts.map +0 -1
  108. package/dist/modules/document/billOfLading.js +0 -12
  109. package/dist/modules/document/billOfLading.js.map +0 -1
  110. package/dist/modules/document/inventario.d.ts +0 -11
  111. package/dist/modules/document/inventario.d.ts.map +0 -1
  112. package/dist/modules/document/inventario.js +0 -11
  113. package/dist/modules/document/inventario.js.map +0 -1
  114. package/dist/modules/document/materialEntrance.d.ts +0 -39
  115. package/dist/modules/document/materialEntrance.d.ts.map +0 -1
  116. package/dist/modules/document/materialEntrance.js +0 -51
  117. package/dist/modules/document/materialEntrance.js.map +0 -1
  118. package/dist/modules/document/order.d.ts +0 -67
  119. package/dist/modules/document/order.d.ts.map +0 -1
  120. package/dist/modules/document/order.js +0 -49
  121. package/dist/modules/document/order.js.map +0 -1
  122. package/dist/modules/document/productionOrder.d.ts +0 -10
  123. package/dist/modules/document/productionOrder.d.ts.map +0 -1
  124. package/dist/modules/document/productionOrder.js +0 -11
  125. package/dist/modules/document/productionOrder.js.map +0 -1
  126. package/dist/modules/document/proforma.d.ts +0 -10
  127. package/dist/modules/document/proforma.d.ts.map +0 -1
  128. package/dist/modules/document/proforma.js +0 -12
  129. package/dist/modules/document/proforma.js.map +0 -1
  130. package/dist/modules/document/propostaFornecedor.d.ts +0 -10
  131. package/dist/modules/document/propostaFornecedor.d.ts.map +0 -1
  132. package/dist/modules/document/propostaFornecedor.js +0 -12
  133. package/dist/modules/document/propostaFornecedor.js.map +0 -1
  134. package/dist/modules/document/propostaSheets.d.ts +0 -28
  135. package/dist/modules/document/propostaSheets.d.ts.map +0 -1
  136. package/dist/modules/document/propostaSheets.js +0 -51
  137. package/dist/modules/document/propostaSheets.js.map +0 -1
  138. package/dist/modules/document/providerCreditNoteFromReturn.d.ts +0 -11
  139. package/dist/modules/document/providerCreditNoteFromReturn.d.ts.map +0 -1
  140. package/dist/modules/document/providerCreditNoteFromReturn.js +0 -17
  141. package/dist/modules/document/providerCreditNoteFromReturn.js.map +0 -1
  142. package/dist/modules/document/providerFinancialCreditNote.d.ts +0 -11
  143. package/dist/modules/document/providerFinancialCreditNote.d.ts.map +0 -1
  144. package/dist/modules/document/providerFinancialCreditNote.js +0 -17
  145. package/dist/modules/document/providerFinancialCreditNote.js.map +0 -1
  146. package/dist/modules/document/providerServiceInvoice.d.ts +0 -10
  147. package/dist/modules/document/providerServiceInvoice.d.ts.map +0 -1
  148. package/dist/modules/document/providerServiceInvoice.js +0 -11
  149. package/dist/modules/document/providerServiceInvoice.js.map +0 -1
  150. package/dist/modules/document/purchase.d.ts +0 -18
  151. package/dist/modules/document/purchase.d.ts.map +0 -1
  152. package/dist/modules/document/purchase.js +0 -25
  153. package/dist/modules/document/purchase.js.map +0 -1
  154. package/dist/modules/document/quebra.d.ts +0 -17
  155. package/dist/modules/document/quebra.d.ts.map +0 -1
  156. package/dist/modules/document/quebra.js +0 -27
  157. package/dist/modules/document/quebra.js.map +0 -1
  158. package/dist/modules/document/returnToProvider.d.ts +0 -17
  159. package/dist/modules/document/returnToProvider.d.ts.map +0 -1
  160. package/dist/modules/document/returnToProvider.js +0 -21
  161. package/dist/modules/document/returnToProvider.js.map +0 -1
  162. package/dist/modules/document/transformado.d.ts +0 -12
  163. package/dist/modules/document/transformado.d.ts.map +0 -1
  164. package/dist/modules/document/transformado.js +0 -12
  165. package/dist/modules/document/transformado.js.map +0 -1
  166. package/dist/modules/document/upfrontReturn.d.ts +0 -11
  167. package/dist/modules/document/upfrontReturn.d.ts.map +0 -1
  168. package/dist/modules/document/upfrontReturn.js +0 -12
  169. package/dist/modules/document/upfrontReturn.js.map +0 -1
  170. package/dist/modules/documentManagement/multimedia.d.ts +0 -13
  171. package/dist/modules/documentManagement/multimedia.d.ts.map +0 -1
  172. package/dist/modules/documentManagement/multimedia.js +0 -27
  173. package/dist/modules/documentManagement/multimedia.js.map +0 -1
  174. package/dist/modules/integration/emailLog.d.ts +0 -19
  175. package/dist/modules/integration/emailLog.d.ts.map +0 -1
  176. package/dist/modules/integration/emailLog.js +0 -24
  177. package/dist/modules/integration/emailLog.js.map +0 -1
  178. package/dist/modules/integration/emailTemplate.d.ts +0 -19
  179. package/dist/modules/integration/emailTemplate.d.ts.map +0 -1
  180. package/dist/modules/integration/emailTemplate.js +0 -27
  181. package/dist/modules/integration/emailTemplate.js.map +0 -1
  182. package/dist/modules/integration/emailTemplateAttachment.d.ts +0 -13
  183. package/dist/modules/integration/emailTemplateAttachment.d.ts.map +0 -1
  184. package/dist/modules/integration/emailTemplateAttachment.js +0 -15
  185. package/dist/modules/integration/emailTemplateAttachment.js.map +0 -1
  186. package/dist/modules/integration/emailVerification.d.ts +0 -12
  187. package/dist/modules/integration/emailVerification.d.ts.map +0 -1
  188. package/dist/modules/integration/emailVerification.js +0 -20
  189. package/dist/modules/integration/emailVerification.js.map +0 -1
  190. package/dist/modules/integration/googleFilePermission.d.ts +0 -15
  191. package/dist/modules/integration/googleFilePermission.d.ts.map +0 -1
  192. package/dist/modules/integration/googleFilePermission.js +0 -24
  193. package/dist/modules/integration/googleFilePermission.js.map +0 -1
  194. package/dist/modules/integration/googleSheets.d.ts +0 -22
  195. package/dist/modules/integration/googleSheets.d.ts.map +0 -1
  196. package/dist/modules/integration/googleSheets.js +0 -25
  197. package/dist/modules/integration/googleSheets.js.map +0 -1
  198. package/dist/modules/integration/observation.d.ts +0 -20
  199. package/dist/modules/integration/observation.d.ts.map +0 -1
  200. package/dist/modules/integration/observation.js +0 -30
  201. package/dist/modules/integration/observation.js.map +0 -1
  202. package/dist/modules/integration/observationType.d.ts +0 -19
  203. package/dist/modules/integration/observationType.d.ts.map +0 -1
  204. package/dist/modules/integration/observationType.js +0 -30
  205. package/dist/modules/integration/observationType.js.map +0 -1
  206. package/dist/modules/integration/projectInfo.d.ts +0 -11
  207. package/dist/modules/integration/projectInfo.d.ts.map +0 -1
  208. package/dist/modules/integration/projectInfo.js +0 -11
  209. package/dist/modules/integration/projectInfo.js.map +0 -1
  210. package/dist/modules/integration/settings.d.ts +0 -18
  211. package/dist/modules/integration/settings.d.ts.map +0 -1
  212. package/dist/modules/integration/settings.js +0 -30
  213. package/dist/modules/integration/settings.js.map +0 -1
  214. package/dist/modules/print/npc.d.ts +0 -16
  215. package/dist/modules/print/npc.d.ts.map +0 -1
  216. package/dist/modules/print/npc.js +0 -20
  217. package/dist/modules/print/npc.js.map +0 -1
  218. package/dist/modules/print/printer.d.ts +0 -18
  219. package/dist/modules/print/printer.d.ts.map +0 -1
  220. package/dist/modules/print/printer.js +0 -27
  221. package/dist/modules/print/printer.js.map +0 -1
  222. package/dist/modules/print/schedulePrintJob.d.ts +0 -14
  223. package/dist/modules/print/schedulePrintJob.d.ts.map +0 -1
  224. package/dist/modules/print/schedulePrintJob.js +0 -25
  225. package/dist/modules/print/schedulePrintJob.js.map +0 -1
  226. package/dist/modules/stock/chat.d.ts +0 -16
  227. package/dist/modules/stock/chat.d.ts.map +0 -1
  228. package/dist/modules/stock/chat.js +0 -33
  229. package/dist/modules/stock/chat.js.map +0 -1
  230. package/dist/modules/stock/chatRapidMessage.d.ts +0 -14
  231. package/dist/modules/stock/chatRapidMessage.d.ts.map +0 -1
  232. package/dist/modules/stock/chatRapidMessage.js +0 -27
  233. package/dist/modules/stock/chatRapidMessage.js.map +0 -1
  234. package/dist/modules/stock/dashboard.d.ts +0 -10
  235. package/dist/modules/stock/dashboard.d.ts.map +0 -1
  236. package/dist/modules/stock/dashboard.js +0 -12
  237. package/dist/modules/stock/dashboard.js.map +0 -1
  238. package/dist/modules/stock/file.d.ts +0 -16
  239. package/dist/modules/stock/file.d.ts.map +0 -1
  240. package/dist/modules/stock/file.js +0 -25
  241. package/dist/modules/stock/file.js.map +0 -1
  242. package/dist/modules/stock/location.d.ts +0 -26
  243. package/dist/modules/stock/location.d.ts.map +0 -1
  244. package/dist/modules/stock/location.js +0 -44
  245. package/dist/modules/stock/location.js.map +0 -1
  246. package/dist/modules/stock/prison.d.ts +0 -23
  247. package/dist/modules/stock/prison.d.ts.map +0 -1
  248. package/dist/modules/stock/prison.js +0 -33
  249. package/dist/modules/stock/prison.js.map +0 -1
  250. package/dist/modules/stock/productGoogleSheets.d.ts +0 -33
  251. package/dist/modules/stock/productGoogleSheets.d.ts.map +0 -1
  252. package/dist/modules/stock/productGoogleSheets.js +0 -109
  253. package/dist/modules/stock/productGoogleSheets.js.map +0 -1
  254. package/dist/modules/stock/productImage.d.ts +0 -27
  255. package/dist/modules/stock/productImage.d.ts.map +0 -1
  256. package/dist/modules/stock/productImage.js +0 -41
  257. package/dist/modules/stock/productImage.js.map +0 -1
  258. package/dist/modules/stock/promotion.d.ts +0 -28
  259. package/dist/modules/stock/promotion.d.ts.map +0 -1
  260. package/dist/modules/stock/promotion.js +0 -59
  261. package/dist/modules/stock/promotion.js.map +0 -1
  262. package/dist/modules/stock/promotionAssoc.d.ts +0 -25
  263. package/dist/modules/stock/promotionAssoc.d.ts.map +0 -1
  264. package/dist/modules/stock/promotionAssoc.js +0 -38
  265. package/dist/modules/stock/promotionAssoc.js.map +0 -1
  266. package/dist/modules/stock/queryList.d.ts +0 -24
  267. package/dist/modules/stock/queryList.d.ts.map +0 -1
  268. package/dist/modules/stock/queryList.js +0 -50
  269. package/dist/modules/stock/queryList.js.map +0 -1
  270. package/dist/modules/stock/queryParameter.d.ts +0 -21
  271. package/dist/modules/stock/queryParameter.d.ts.map +0 -1
  272. package/dist/modules/stock/queryParameter.js +0 -34
  273. package/dist/modules/stock/queryParameter.js.map +0 -1
  274. package/dist/modules/stock/recurrentTasks.d.ts +0 -11
  275. package/dist/modules/stock/recurrentTasks.d.ts.map +0 -1
  276. package/dist/modules/stock/recurrentTasks.js +0 -14
  277. package/dist/modules/stock/recurrentTasks.js.map +0 -1
  278. package/dist/modules/stock/returnReason.d.ts +0 -16
  279. package/dist/modules/stock/returnReason.d.ts.map +0 -1
  280. package/dist/modules/stock/returnReason.js +0 -24
  281. package/dist/modules/stock/returnReason.js.map +0 -1
  282. package/dist/modules/stock/savedEmPicking.d.ts +0 -13
  283. package/dist/modules/stock/savedEmPicking.d.ts.map +0 -1
  284. package/dist/modules/stock/savedEmPicking.js +0 -22
  285. package/dist/modules/stock/savedEmPicking.js.map +0 -1
  286. package/dist/modules/stock/savedProviderProposal.d.ts +0 -16
  287. package/dist/modules/stock/savedProviderProposal.d.ts.map +0 -1
  288. package/dist/modules/stock/savedProviderProposal.js +0 -24
  289. package/dist/modules/stock/savedProviderProposal.js.map +0 -1
  290. package/dist/modules/stock/schedule.d.ts +0 -21
  291. package/dist/modules/stock/schedule.d.ts.map +0 -1
  292. package/dist/modules/stock/schedule.js +0 -13
  293. package/dist/modules/stock/schedule.js.map +0 -1
  294. package/dist/modules/stock/sideMenu.d.ts +0 -18
  295. package/dist/modules/stock/sideMenu.d.ts.map +0 -1
  296. package/dist/modules/stock/sideMenu.js +0 -28
  297. package/dist/modules/stock/sideMenu.js.map +0 -1
  298. package/dist/modules/stock/stockMovement.d.ts +0 -26
  299. package/dist/modules/stock/stockMovement.d.ts.map +0 -1
  300. package/dist/modules/stock/stockMovement.js +0 -37
  301. package/dist/modules/stock/stockMovement.js.map +0 -1
  302. package/dist/modules/stock/task.d.ts +0 -15
  303. package/dist/modules/stock/task.d.ts.map +0 -1
  304. package/dist/modules/stock/task.js +0 -30
  305. package/dist/modules/stock/task.js.map +0 -1
  306. package/dist/modules/stock/taskMessage.d.ts +0 -12
  307. package/dist/modules/stock/taskMessage.d.ts.map +0 -1
  308. package/dist/modules/stock/taskMessage.js +0 -18
  309. package/dist/modules/stock/taskMessage.js.map +0 -1
  310. package/dist/modules/stock/taskRead.d.ts +0 -11
  311. package/dist/modules/stock/taskRead.d.ts.map +0 -1
  312. package/dist/modules/stock/taskRead.js +0 -14
  313. package/dist/modules/stock/taskRead.js.map +0 -1
  314. package/dist/modules/stock/typeOfLocation.d.ts +0 -27
  315. package/dist/modules/stock/typeOfLocation.d.ts.map +0 -1
  316. package/dist/modules/stock/typeOfLocation.js +0 -44
  317. package/dist/modules/stock/typeOfLocation.js.map +0 -1
  318. package/dist/modules/stock/unitOfMeasure.d.ts +0 -27
  319. package/dist/modules/stock/unitOfMeasure.d.ts.map +0 -1
  320. package/dist/modules/stock/unitOfMeasure.js +0 -44
  321. package/dist/modules/stock/unitOfMeasure.js.map +0 -1
  322. package/dist/modules/stock/vatTax.d.ts +0 -27
  323. package/dist/modules/stock/vatTax.d.ts.map +0 -1
  324. package/dist/modules/stock/vatTax.js +0 -44
  325. package/dist/modules/stock/vatTax.js.map +0 -1
  326. package/dist/modules/stock/vatTaxZone.d.ts +0 -28
  327. package/dist/modules/stock/vatTaxZone.d.ts.map +0 -1
  328. package/dist/modules/stock/vatTaxZone.js +0 -44
  329. package/dist/modules/stock/vatTaxZone.js.map +0 -1
  330. package/dist/modules/supply/clientCurrentAccount.d.ts +0 -26
  331. package/dist/modules/supply/clientCurrentAccount.d.ts.map +0 -1
  332. package/dist/modules/supply/clientCurrentAccount.js +0 -43
  333. package/dist/modules/supply/clientCurrentAccount.js.map +0 -1
  334. package/dist/modules/supply/documentHeader.d.ts +0 -60
  335. package/dist/modules/supply/documentHeader.d.ts.map +0 -1
  336. package/dist/modules/supply/documentHeader.js +0 -117
  337. package/dist/modules/supply/documentHeader.js.map +0 -1
  338. package/dist/modules/supply/documentLine.d.ts +0 -30
  339. package/dist/modules/supply/documentLine.d.ts.map +0 -1
  340. package/dist/modules/supply/documentLine.js +0 -42
  341. package/dist/modules/supply/documentLine.js.map +0 -1
  342. package/dist/modules/supply/documentLineAssoc.d.ts +0 -21
  343. package/dist/modules/supply/documentLineAssoc.d.ts.map +0 -1
  344. package/dist/modules/supply/documentLineAssoc.js +0 -32
  345. package/dist/modules/supply/documentLineAssoc.js.map +0 -1
  346. package/dist/modules/supply/documentLineMt.d.ts +0 -11
  347. package/dist/modules/supply/documentLineMt.d.ts.map +0 -1
  348. package/dist/modules/supply/documentLineMt.js +0 -15
  349. package/dist/modules/supply/documentLineMt.js.map +0 -1
  350. package/dist/modules/supply/documentLineNote.d.ts +0 -15
  351. package/dist/modules/supply/documentLineNote.d.ts.map +0 -1
  352. package/dist/modules/supply/documentLineNote.js +0 -20
  353. package/dist/modules/supply/documentLineNote.js.map +0 -1
  354. package/dist/modules/supply/documentLineRm.d.ts +0 -11
  355. package/dist/modules/supply/documentLineRm.d.ts.map +0 -1
  356. package/dist/modules/supply/documentLineRm.js +0 -15
  357. package/dist/modules/supply/documentLineRm.js.map +0 -1
  358. package/dist/modules/supply/documentSet.d.ts +0 -20
  359. package/dist/modules/supply/documentSet.d.ts.map +0 -1
  360. package/dist/modules/supply/documentSet.js +0 -32
  361. package/dist/modules/supply/documentSet.js.map +0 -1
  362. package/dist/modules/supply/documentType.d.ts +0 -27
  363. package/dist/modules/supply/documentType.d.ts.map +0 -1
  364. package/dist/modules/supply/documentType.js +0 -35
  365. package/dist/modules/supply/documentType.js.map +0 -1
  366. package/dist/modules/supply/externalDocumentHeader.d.ts +0 -31
  367. package/dist/modules/supply/externalDocumentHeader.d.ts.map +0 -1
  368. package/dist/modules/supply/externalDocumentHeader.js +0 -53
  369. package/dist/modules/supply/externalDocumentHeader.js.map +0 -1
  370. package/dist/modules/supply/externalDocumentType.d.ts +0 -14
  371. package/dist/modules/supply/externalDocumentType.d.ts.map +0 -1
  372. package/dist/modules/supply/externalDocumentType.js +0 -16
  373. package/dist/modules/supply/externalDocumentType.js.map +0 -1
  374. package/dist/modules/supply/orderManagement.d.ts +0 -14
  375. package/dist/modules/supply/orderManagement.d.ts.map +0 -1
  376. package/dist/modules/supply/orderManagement.js +0 -18
  377. package/dist/modules/supply/orderManagement.js.map +0 -1
  378. package/dist/modules/supply/payment.d.ts +0 -49
  379. package/dist/modules/supply/payment.d.ts.map +0 -1
  380. package/dist/modules/supply/payment.js +0 -101
  381. package/dist/modules/supply/payment.js.map +0 -1
  382. package/dist/modules/supply/preSale.d.ts +0 -28
  383. package/dist/modules/supply/preSale.d.ts.map +0 -1
  384. package/dist/modules/supply/preSale.js +0 -40
  385. package/dist/modules/supply/preSale.js.map +0 -1
  386. package/dist/modules/supply/preSaleProduct.d.ts +0 -12
  387. package/dist/modules/supply/preSaleProduct.d.ts.map +0 -1
  388. package/dist/modules/supply/preSaleProduct.js +0 -16
  389. package/dist/modules/supply/preSaleProduct.js.map +0 -1
  390. package/dist/modules/supply/providerCurrentAccount.d.ts +0 -12
  391. package/dist/modules/supply/providerCurrentAccount.d.ts.map +0 -1
  392. package/dist/modules/supply/providerCurrentAccount.js +0 -14
  393. package/dist/modules/supply/providerCurrentAccount.js.map +0 -1
  394. package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts +0 -11
  395. package/dist/modules/supply/startDocumentHeaderLastUpdate.d.ts.map +0 -1
  396. package/dist/modules/supply/startDocumentHeaderLastUpdate.js +0 -12
  397. package/dist/modules/supply/startDocumentHeaderLastUpdate.js.map +0 -1
  398. package/dist/modules/supply/vatValidation.d.ts +0 -11
  399. package/dist/modules/supply/vatValidation.d.ts.map +0 -1
  400. package/dist/modules/supply/vatValidation.js +0 -16
  401. package/dist/modules/supply/vatValidation.js.map +0 -1
  402. package/dist/modules/supply/workflow.d.ts +0 -22
  403. package/dist/modules/supply/workflow.d.ts.map +0 -1
  404. package/dist/modules/supply/workflow.js +0 -28
  405. package/dist/modules/supply/workflow.js.map +0 -1
  406. package/dist/modules/tickets/channel.d.ts +0 -20
  407. package/dist/modules/tickets/channel.d.ts.map +0 -1
  408. package/dist/modules/tickets/channel.js +0 -32
  409. package/dist/modules/tickets/channel.js.map +0 -1
  410. package/dist/modules/tickets/clt.d.ts +0 -19
  411. package/dist/modules/tickets/clt.d.ts.map +0 -1
  412. package/dist/modules/tickets/clt.js +0 -32
  413. package/dist/modules/tickets/clt.js.map +0 -1
  414. package/dist/modules/tickets/language.d.ts +0 -19
  415. package/dist/modules/tickets/language.d.ts.map +0 -1
  416. package/dist/modules/tickets/language.js +0 -32
  417. package/dist/modules/tickets/language.js.map +0 -1
  418. package/dist/modules/tickets/tickets.d.ts +0 -20
  419. package/dist/modules/tickets/tickets.d.ts.map +0 -1
  420. package/dist/modules/tickets/tickets.js +0 -24
  421. package/dist/modules/tickets/tickets.js.map +0 -1
  422. package/dist/modules/user/bankData.d.ts +0 -25
  423. package/dist/modules/user/bankData.d.ts.map +0 -1
  424. package/dist/modules/user/bankData.js +0 -38
  425. package/dist/modules/user/bankData.js.map +0 -1
  426. package/dist/modules/user/chatSubscriber.d.ts +0 -16
  427. package/dist/modules/user/chatSubscriber.d.ts.map +0 -1
  428. package/dist/modules/user/chatSubscriber.js +0 -27
  429. package/dist/modules/user/chatSubscriber.js.map +0 -1
  430. package/dist/modules/user/clientType.d.ts +0 -25
  431. package/dist/modules/user/clientType.d.ts.map +0 -1
  432. package/dist/modules/user/clientType.js +0 -38
  433. package/dist/modules/user/clientType.js.map +0 -1
  434. package/dist/modules/user/clients.d.ts +0 -33
  435. package/dist/modules/user/clients.d.ts.map +0 -1
  436. package/dist/modules/user/clients.js +0 -52
  437. package/dist/modules/user/clients.js.map +0 -1
  438. package/dist/modules/user/commissioner.d.ts +0 -29
  439. package/dist/modules/user/commissioner.d.ts.map +0 -1
  440. package/dist/modules/user/commissioner.js +0 -44
  441. package/dist/modules/user/commissioner.js.map +0 -1
  442. package/dist/modules/user/country.d.ts +0 -26
  443. package/dist/modules/user/country.d.ts.map +0 -1
  444. package/dist/modules/user/country.js +0 -44
  445. package/dist/modules/user/country.js.map +0 -1
  446. package/dist/modules/user/deliveryMethods.d.ts +0 -20
  447. package/dist/modules/user/deliveryMethods.d.ts.map +0 -1
  448. package/dist/modules/user/deliveryMethods.js +0 -34
  449. package/dist/modules/user/deliveryMethods.js.map +0 -1
  450. package/dist/modules/user/favorites.d.ts +0 -17
  451. package/dist/modules/user/favorites.d.ts.map +0 -1
  452. package/dist/modules/user/favorites.js +0 -24
  453. package/dist/modules/user/favorites.js.map +0 -1
  454. package/dist/modules/user/groupPermission.d.ts +0 -17
  455. package/dist/modules/user/groupPermission.d.ts.map +0 -1
  456. package/dist/modules/user/groupPermission.js +0 -26
  457. package/dist/modules/user/groupPermission.js.map +0 -1
  458. package/dist/modules/user/language.d.ts +0 -25
  459. package/dist/modules/user/language.d.ts.map +0 -1
  460. package/dist/modules/user/language.js +0 -38
  461. package/dist/modules/user/language.js.map +0 -1
  462. package/dist/modules/user/logout.d.ts +0 -9
  463. package/dist/modules/user/logout.d.ts.map +0 -1
  464. package/dist/modules/user/logout.js +0 -11
  465. package/dist/modules/user/logout.js.map +0 -1
  466. package/dist/modules/user/maturityDates.d.ts +0 -20
  467. package/dist/modules/user/maturityDates.d.ts.map +0 -1
  468. package/dist/modules/user/maturityDates.js +0 -34
  469. package/dist/modules/user/maturityDates.js.map +0 -1
  470. package/dist/modules/user/password.d.ts +0 -13
  471. package/dist/modules/user/password.d.ts.map +0 -1
  472. package/dist/modules/user/password.js +0 -14
  473. package/dist/modules/user/password.js.map +0 -1
  474. package/dist/modules/user/paymentMethods.d.ts +0 -20
  475. package/dist/modules/user/paymentMethods.d.ts.map +0 -1
  476. package/dist/modules/user/paymentMethods.js +0 -34
  477. package/dist/modules/user/paymentMethods.js.map +0 -1
  478. package/dist/modules/user/permission.d.ts +0 -17
  479. package/dist/modules/user/permission.d.ts.map +0 -1
  480. package/dist/modules/user/permission.js +0 -26
  481. package/dist/modules/user/permission.js.map +0 -1
  482. package/dist/modules/user/persona.d.ts +0 -27
  483. package/dist/modules/user/persona.d.ts.map +0 -1
  484. package/dist/modules/user/persona.js +0 -52
  485. package/dist/modules/user/persona.js.map +0 -1
  486. package/dist/modules/user/provider.d.ts +0 -32
  487. package/dist/modules/user/provider.d.ts.map +0 -1
  488. package/dist/modules/user/provider.js +0 -54
  489. package/dist/modules/user/provider.js.map +0 -1
  490. package/dist/modules/user/providerType.d.ts +0 -25
  491. package/dist/modules/user/providerType.d.ts.map +0 -1
  492. package/dist/modules/user/providerType.js +0 -38
  493. package/dist/modules/user/providerType.js.map +0 -1
  494. package/dist/modules/user/purchaseCondition.d.ts +0 -23
  495. package/dist/modules/user/purchaseCondition.d.ts.map +0 -1
  496. package/dist/modules/user/purchaseCondition.js +0 -38
  497. package/dist/modules/user/purchaseCondition.js.map +0 -1
  498. package/dist/modules/user/reasonForExemption.d.ts +0 -25
  499. package/dist/modules/user/reasonForExemption.d.ts.map +0 -1
  500. package/dist/modules/user/reasonForExemption.js +0 -38
  501. package/dist/modules/user/reasonForExemption.js.map +0 -1
  502. package/dist/modules/user/refreshToken.d.ts +0 -12
  503. package/dist/modules/user/refreshToken.d.ts.map +0 -1
  504. package/dist/modules/user/refreshToken.js +0 -12
  505. package/dist/modules/user/refreshToken.js.map +0 -1
  506. package/dist/modules/user/segmentsArea.d.ts +0 -25
  507. package/dist/modules/user/segmentsArea.d.ts.map +0 -1
  508. package/dist/modules/user/segmentsArea.js +0 -38
  509. package/dist/modules/user/segmentsArea.js.map +0 -1
  510. package/dist/modules/user/sessions.d.ts +0 -12
  511. package/dist/modules/user/sessions.d.ts.map +0 -1
  512. package/dist/modules/user/sessions.js +0 -12
  513. package/dist/modules/user/sessions.js.map +0 -1
  514. package/dist/modules/user/shippings.d.ts +0 -24
  515. package/dist/modules/user/shippings.d.ts.map +0 -1
  516. package/dist/modules/user/shippings.js +0 -38
  517. package/dist/modules/user/shippings.js.map +0 -1
  518. package/dist/modules/user/storeOperator.d.ts +0 -32
  519. package/dist/modules/user/storeOperator.d.ts.map +0 -1
  520. package/dist/modules/user/storeOperator.js +0 -51
  521. package/dist/modules/user/storeOperator.js.map +0 -1
  522. package/dist/modules/user/swift.d.ts +0 -25
  523. package/dist/modules/user/swift.d.ts.map +0 -1
  524. package/dist/modules/user/swift.js +0 -38
  525. package/dist/modules/user/swift.js.map +0 -1
  526. package/dist/modules/user/tenant.d.ts +0 -16
  527. package/dist/modules/user/tenant.d.ts.map +0 -1
  528. package/dist/modules/user/tenant.js +0 -24
  529. package/dist/modules/user/tenant.js.map +0 -1
  530. package/dist/modules/user/theme.d.ts +0 -12
  531. package/dist/modules/user/theme.d.ts.map +0 -1
  532. package/dist/modules/user/theme.js +0 -11
  533. package/dist/modules/user/theme.js.map +0 -1
  534. package/dist/modules/user/user.d.ts +0 -32
  535. package/dist/modules/user/user.d.ts.map +0 -1
  536. package/dist/modules/user/user.js +0 -46
  537. package/dist/modules/user/user.js.map +0 -1
  538. package/dist/modules/user/userPermission.d.ts +0 -16
  539. package/dist/modules/user/userPermission.d.ts.map +0 -1
  540. package/dist/modules/user/userPermission.js +0 -22
  541. package/dist/modules/user/userPermission.js.map +0 -1
  542. package/dist/modules/user/userPositions.d.ts +0 -25
  543. package/dist/modules/user/userPositions.d.ts.map +0 -1
  544. package/dist/modules/user/userPositions.js +0 -38
  545. package/dist/modules/user/userPositions.js.map +0 -1
  546. package/dist/modules/user/vehicles.d.ts +0 -16
  547. package/dist/modules/user/vehicles.d.ts.map +0 -1
  548. package/dist/modules/user/vehicles.js +0 -24
  549. package/dist/modules/user/vehicles.js.map +0 -1
  550. package/dist/modules/user/zipCode.d.ts +0 -14
  551. package/dist/modules/user/zipCode.d.ts.map +0 -1
  552. package/dist/modules/user/zipCode.js +0 -15
  553. package/dist/modules/user/zipCode.js.map +0 -1
  554. package/dist/modules/view/adminPanel.d.ts +0 -10
  555. package/dist/modules/view/adminPanel.d.ts.map +0 -1
  556. package/dist/modules/view/adminPanel.js +0 -12
  557. package/dist/modules/view/adminPanel.js.map +0 -1
  558. package/dist/modules/view/errorLog.d.ts +0 -10
  559. package/dist/modules/view/errorLog.d.ts.map +0 -1
  560. package/dist/modules/view/errorLog.js +0 -11
  561. package/dist/modules/view/errorLog.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,3 +1,4333 @@
1
- import * as Nomalism from './main';
2
- export default Nomalism;
3
- //# sourceMappingURL=index.js.map
1
+ import axios, { AxiosHeaders } from 'axios';
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __export = (target, all) => {
5
+ for (var name in all)
6
+ __defProp(target, name, { get: all[name], enumerable: true });
7
+ };
8
+
9
+ // src/main.ts
10
+ var main_exports = {};
11
+ __export(main_exports, {
12
+ API: () => API,
13
+ AdminPanelClass: () => adminPanel_exports,
14
+ BankData: () => bankData_exports,
15
+ Channel: () => channel_exports,
16
+ ChatRapidMessageClass: () => chatRapidMessage_exports,
17
+ ChatSubscriberClass: () => chatSubscriber_exports,
18
+ Client: () => clients_exports,
19
+ ClientCurrentAccount: () => clientCurrentAccount_exports,
20
+ ClientType: () => clientType_exports,
21
+ Clt: () => clt_exports,
22
+ Commissioner: () => commissioner_exports,
23
+ Country: () => country_exports,
24
+ DashboardClass: () => dashboard_exports,
25
+ DeliveryMethods: () => deliveryMethods_exports,
26
+ DocumentHeader: () => documentHeader_exports,
27
+ DocumentLine: () => documentLine_exports,
28
+ DocumentLineAssoc: () => documentLineAssoc_exports,
29
+ DocumentLineMtClass: () => documentLineMt_exports,
30
+ DocumentLineNote: () => documentLineNote_exports,
31
+ DocumentLineRmClass: () => documentLineRm_exports,
32
+ DocumentSet: () => documentSet_exports,
33
+ DocumentType: () => documentType_exports,
34
+ EmailLog: () => emailLog_exports,
35
+ EmailTemplate: () => emailTemplate_exports,
36
+ EmailTemplateAttachment: () => emailTemplateAttachment_exports,
37
+ EmailVerification: () => emailVerification_exports,
38
+ ErrorLogClass: () => errorLog_exports,
39
+ ExternalDocumentHeader: () => externalDocumentHeader_exports,
40
+ ExternalDocumentType: () => externalDocumentType_exports,
41
+ Favorites: () => favorites_exports,
42
+ File: () => file_exports,
43
+ GoogleFilePermission: () => googleFilePermission_exports,
44
+ GoogleSheets: () => googleSheets_exports,
45
+ GroupPermissions: () => groupPermission_exports,
46
+ Inventario: () => inventario_exports,
47
+ Language: () => language_exports,
48
+ Location: () => location_exports,
49
+ Logout: () => logout_exports,
50
+ MaterialEntrance: () => materialEntrance_exports,
51
+ MaturityDates: () => maturityDates_exports,
52
+ Multimedia: () => multimedia_exports,
53
+ Npc: () => npc_exports,
54
+ Observation: () => observation_exports,
55
+ ObservationType: () => observationType_exports,
56
+ Order: () => order_exports,
57
+ OrderManagement: () => orderManagement_exports,
58
+ Password: () => password_exports,
59
+ Payment: () => payment_exports,
60
+ PaymentMethods: () => paymentMethods_exports,
61
+ Permissions: () => permission_exports,
62
+ Persona: () => persona_exports,
63
+ PreSale: () => preSale_exports,
64
+ PreSaleProduct: () => preSaleProduct_exports,
65
+ Printer: () => printer_exports,
66
+ Prison: () => prison_exports,
67
+ ProductGoogleSheets: () => productGoogleSheets_exports,
68
+ ProductImage: () => productImage_exports,
69
+ ProjectInfo: () => projectInfo_exports,
70
+ Promotion: () => promotion_exports,
71
+ PromotionAssoc: () => promotionAssoc_exports,
72
+ PropostaSheets: () => propostaSheets_exports,
73
+ ProviderCurrentAccount: () => providerCurrentAccount_exports,
74
+ ProviderType: () => providerType_exports,
75
+ Providers: () => provider_exports,
76
+ Purchase: () => purchase_exports,
77
+ PurchaseConditions: () => purchaseCondition_exports,
78
+ Quebra: () => quebra_exports,
79
+ QueryList: () => queryList_exports,
80
+ QueryParameter: () => queryParameter_exports,
81
+ ReasonForExemption: () => reasonForExemption_exports,
82
+ RecurrentTasks: () => recurrentTasks_exports,
83
+ RefreshToken: () => refreshToken_exports,
84
+ ReturnReason: () => returnReason_exports,
85
+ ReturnToProvider: () => returnToProvider_exports,
86
+ SavedEmPicking: () => savedEmPicking_exports,
87
+ SavedProviderProposal: () => savedProviderProposal_exports,
88
+ Schedule: () => schedule_exports,
89
+ SchedulePrintJob: () => schedulePrintJob_exports,
90
+ SegmentsArea: () => segmentsArea_exports,
91
+ Sessions: () => sessions_exports,
92
+ Settings: () => settings_exports,
93
+ Shippings: () => shippings_exports,
94
+ SideMenuClass: () => sideMenu_exports,
95
+ StartDocumentHeaderLastUpdate: () => startDocumentHeaderLastUpdate_exports,
96
+ StockMovement: () => stockMovement_exports,
97
+ StoreOperator: () => storeOperator_exports,
98
+ Swift: () => swift_exports,
99
+ Task: () => task_exports,
100
+ TaskMessage: () => taskMessage_exports,
101
+ TaskReadClass: () => taskRead_exports,
102
+ Tenant: () => tenant_exports,
103
+ ThemeClass: () => theme_exports,
104
+ Tickets: () => tickets_exports,
105
+ TicketsLanguage: () => language_exports2,
106
+ Transformado: () => transformado_exports,
107
+ TypeOfLocation: () => typeOfLocation_exports,
108
+ UnitOfMeasure: () => unitOfMeasure_exports,
109
+ UpfrontReturn: () => upfrontReturn_exports,
110
+ UserPermissions: () => userPermission_exports,
111
+ UserPositions: () => userPositions_exports,
112
+ Users: () => user_exports,
113
+ VatTax: () => vatTax_exports,
114
+ VatTaxZone: () => vatTaxZone_exports,
115
+ VatValidation: () => vatValidation_exports,
116
+ Vehicles: () => vehicles_exports,
117
+ Workflow: () => workflow_exports,
118
+ ZipCode: () => zipCode_exports
119
+ });
120
+
121
+ // src/modules/user/bankData.ts
122
+ var bankData_exports = {};
123
+ __export(bankData_exports, {
124
+ default: () => Repository
125
+ });
126
+ var Repository = class {
127
+ constructor({ api, route, publicRoute }) {
128
+ this.api = api;
129
+ this.route = route;
130
+ this.publicRoute = publicRoute;
131
+ }
132
+ async find(params) {
133
+ const response = await this.api.get(`${this.route}`, { params });
134
+ return response.data;
135
+ }
136
+ async findPaginated(params) {
137
+ const response = await this.api.get(`${this.route}paginated`, { params });
138
+ return response.data;
139
+ }
140
+ async findByOwnerId(params) {
141
+ const response = await this.api.get(`${this.route}by_owner`, {
142
+ params
143
+ });
144
+ return response.data;
145
+ }
146
+ async findById(selector) {
147
+ const response = await this.api.get(`${this.route}${selector.id}`);
148
+ return response.data;
149
+ }
150
+ async create(body) {
151
+ const response = await this.api.post(`${this.route}`, body);
152
+ return response.data;
153
+ }
154
+ async update(selector, body) {
155
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
156
+ return response.data;
157
+ }
158
+ async deleteOne(selector) {
159
+ const response = await this.api.delete(`${this.route}${selector.id}`);
160
+ return response.data;
161
+ }
162
+ };
163
+
164
+ // src/modules/user/clients.ts
165
+ var clients_exports = {};
166
+ __export(clients_exports, {
167
+ default: () => Repository2
168
+ });
169
+ var Repository2 = class {
170
+ constructor({ api, route, publicRoute }) {
171
+ this.api = api;
172
+ this.route = route;
173
+ this.publicRoute = publicRoute;
174
+ }
175
+ async findByQuery(data) {
176
+ const response = await this.api.post(`${this.route}query`, data);
177
+ return response.data;
178
+ }
179
+ async find(params) {
180
+ const response = await this.api.get(`${this.route}`, { params });
181
+ return response.data;
182
+ }
183
+ async findPaginated(params) {
184
+ const response = await this.api.get(`${this.route}paginated`, { params });
185
+ return response.data;
186
+ }
187
+ async findMinified(params) {
188
+ const response = await this.api.get(`${this.route}minified`, {
189
+ params
190
+ });
191
+ return response.data;
192
+ }
193
+ async findByOwnerId(params) {
194
+ const response = await this.api.get(`${this.route}by_owner`, {
195
+ params
196
+ });
197
+ return response.data;
198
+ }
199
+ async findById(selector) {
200
+ const response = await this.api.get(`${this.route}${selector.id}`);
201
+ return response.data;
202
+ }
203
+ async create(body) {
204
+ const response = await this.api.post(`${this.route}`, body);
205
+ return response.data;
206
+ }
207
+ async createOrUpdate(body) {
208
+ const response = await this.api.post(`${this.route}create_or_update`, body);
209
+ return response.data;
210
+ }
211
+ async update(selector, body) {
212
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
213
+ return response.data;
214
+ }
215
+ async deleteOne(selector) {
216
+ const response = await this.api.delete(`${this.route}${selector.id}`);
217
+ return response.data;
218
+ }
219
+ };
220
+
221
+ // src/modules/user/clientType.ts
222
+ var clientType_exports = {};
223
+ __export(clientType_exports, {
224
+ default: () => Repository3
225
+ });
226
+ var Repository3 = class {
227
+ constructor({ api, route, publicRoute }) {
228
+ this.api = api;
229
+ this.route = route;
230
+ this.publicRoute = publicRoute;
231
+ }
232
+ async find(params) {
233
+ const response = await this.api.get(`${this.route}`, { params });
234
+ return response.data;
235
+ }
236
+ async findPaginated(params) {
237
+ const response = await this.api.get(`${this.route}paginated`, { params });
238
+ return response.data;
239
+ }
240
+ async findMinified(params) {
241
+ const response = await this.api.get(`${this.route}minified`, {
242
+ params
243
+ });
244
+ return response.data;
245
+ }
246
+ async findById(selector) {
247
+ const response = await this.api.get(`${this.route}${selector.id}`);
248
+ return response.data;
249
+ }
250
+ async create(body) {
251
+ const response = await this.api.post(`${this.route}`, body);
252
+ return response.data;
253
+ }
254
+ async update(selector, body) {
255
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
256
+ return response.data;
257
+ }
258
+ async deleteOne(selector) {
259
+ const response = await this.api.delete(`${this.route}${selector.id}`);
260
+ return response.data;
261
+ }
262
+ };
263
+
264
+ // src/modules/stock/chat.ts
265
+ var Repository4 = class {
266
+ constructor({ api, route, publicRoute }) {
267
+ this.api = api;
268
+ this.route = route;
269
+ this.publicRoute = publicRoute;
270
+ }
271
+ async findActiveByOwnerId(params) {
272
+ const response = await this.api.get(`${this.route}active`, {
273
+ params
274
+ });
275
+ return response.data;
276
+ }
277
+ async create(body) {
278
+ const response = await this.api.post(`${this.route}`, body);
279
+ return response.data;
280
+ }
281
+ async update(selector, body) {
282
+ await this.api.put(`${this.route}${selector.id}`, body);
283
+ }
284
+ async deleteOne(selector) {
285
+ await this.api.delete(`${this.route}${selector.id}`);
286
+ }
287
+ async resendLast({ owner_id }) {
288
+ await this.api.post(`${this.route}resend_last/${owner_id}`);
289
+ }
290
+ async markAllAsRead(selector) {
291
+ await this.api.put(`${this.route}mark_all_as_read/${selector.owner_id}`);
292
+ }
293
+ async markAllAsUnread(selector) {
294
+ await this.api.put(`${this.route}mark_all_as_unread/${selector.owner_id}`);
295
+ }
296
+ };
297
+
298
+ // src/modules/user/commissioner.ts
299
+ var commissioner_exports = {};
300
+ __export(commissioner_exports, {
301
+ default: () => Repository5
302
+ });
303
+ var Repository5 = class {
304
+ constructor({ api, route, publicRoute }) {
305
+ this.api = api;
306
+ this.route = route;
307
+ this.publicRoute = publicRoute;
308
+ }
309
+ async find(params) {
310
+ const response = await this.api.get(`${this.route}`, { params });
311
+ return response.data;
312
+ }
313
+ async findPaginated(params) {
314
+ const response = await this.api.get(`${this.route}paginated`, { params });
315
+ return response.data;
316
+ }
317
+ async findMinified(params) {
318
+ const response = await this.api.get(`${this.route}minified`, {
319
+ params
320
+ });
321
+ return response.data;
322
+ }
323
+ async findByOwnerId(params) {
324
+ const response = await this.api.get(`${this.route}by_owner`, {
325
+ params
326
+ });
327
+ return response.data;
328
+ }
329
+ async findById(selector) {
330
+ const response = await this.api.get(`${this.route}${selector.id}`);
331
+ return response.data;
332
+ }
333
+ async create(body) {
334
+ const response = await this.api.post(`${this.route}`, body);
335
+ return response.data;
336
+ }
337
+ async update(selector, body) {
338
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
339
+ return response.data;
340
+ }
341
+ async deleteOne(selector) {
342
+ const response = await this.api.delete(`${this.route}${selector.id}`);
343
+ return response.data;
344
+ }
345
+ };
346
+
347
+ // src/modules/user/country.ts
348
+ var country_exports = {};
349
+ __export(country_exports, {
350
+ default: () => Repository6
351
+ });
352
+ var Repository6 = class {
353
+ constructor({ api, route, publicRoute }) {
354
+ this.api = api;
355
+ this.route = route;
356
+ this.publicRoute = publicRoute;
357
+ }
358
+ async find(params) {
359
+ const response = await this.api.get(`${this.route}`, { params });
360
+ return response.data;
361
+ }
362
+ async findPaginated(params) {
363
+ const response = await this.api.get(`${this.route}paginated`, { params });
364
+ return response.data;
365
+ }
366
+ async findMinified(params) {
367
+ const response = await this.api.get(`${this.route}minified`, {
368
+ params
369
+ });
370
+ return response.data;
371
+ }
372
+ async findByAlpha2(params) {
373
+ const response = await this.api.get(`${this.route}alpha2`, {
374
+ params
375
+ });
376
+ return response.data;
377
+ }
378
+ async findById(selector) {
379
+ const response = await this.api.get(`${this.route}${selector.id}`);
380
+ return response.data;
381
+ }
382
+ async create(body) {
383
+ const response = await this.api.post(`${this.route}`, body);
384
+ return response.data;
385
+ }
386
+ async update(selector, body) {
387
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
388
+ return response.data;
389
+ }
390
+ async deleteOne(selector) {
391
+ const response = await this.api.delete(`${this.route}${selector.id}`);
392
+ return response.data;
393
+ }
394
+ };
395
+
396
+ // src/modules/supply/documentHeader.ts
397
+ var documentHeader_exports = {};
398
+ __export(documentHeader_exports, {
399
+ default: () => Repository7
400
+ });
401
+ var Repository7 = class {
402
+ constructor({ api, route, publicRoute }) {
403
+ this.api = api;
404
+ this.route = route;
405
+ this.publicRoute = publicRoute;
406
+ }
407
+ async findOne(selector) {
408
+ const response = await this.api.get(`${this.route}${selector.id}`);
409
+ return response.data;
410
+ }
411
+ async findStart(selector) {
412
+ const response = await this.api.get(`${this.route}start/${selector.id}`);
413
+ return response.data;
414
+ }
415
+ async findStartVirtual(selector) {
416
+ const response = await this.api.get(`${this.route}start_virtual/${selector.id}`);
417
+ return response.data;
418
+ }
419
+ async findByBasicSearch(params) {
420
+ const response = await this.api.get(`${this.route}basic_search`, {
421
+ params
422
+ });
423
+ return response.data;
424
+ }
425
+ async findByType(params) {
426
+ const response = await this.api.get(`${this.route}by_type`, { params });
427
+ return response.data;
428
+ }
429
+ async find(params) {
430
+ const response = await this.api.get(`${this.route}`, { params });
431
+ return response.data;
432
+ }
433
+ async findClientUnpaidCredit(params) {
434
+ const response = await this.api.get(`${this.route}unpaid_credit`, {
435
+ params
436
+ });
437
+ return response.data;
438
+ }
439
+ async findClientUnpaidDebit(params) {
440
+ const response = await this.api.get(`${this.route}unpaid_debit`, {
441
+ params
442
+ });
443
+ return response.data;
444
+ }
445
+ async findUnpaidCommissions(params) {
446
+ const response = await this.api.get(`${this.route}unpaid_commissions`, {
447
+ params
448
+ });
449
+ return response.data;
450
+ }
451
+ async create(body) {
452
+ const response = await this.api.post(`${this.route}`, body);
453
+ return response.data;
454
+ }
455
+ async createFromHeader(body) {
456
+ const response = await this.api.post(`${this.route}from_header`, body);
457
+ return response.data;
458
+ }
459
+ async update(selector, body) {
460
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
461
+ return response.data;
462
+ }
463
+ async deleteOne(selector) {
464
+ await this.api.delete(`${this.route}${selector.id}`);
465
+ }
466
+ async getActions(selector) {
467
+ const response = await this.api.get(`${this.route}get_actions/${selector.id}`);
468
+ return response.data;
469
+ }
470
+ async transferClientOwnership(data) {
471
+ await this.api.put(`${this.route}transfer_client_ownership`, data);
472
+ }
473
+ async updateManyWithPersona(data) {
474
+ await this.api.put(`${this.route}update_many_with_persona`, data);
475
+ }
476
+ async sendClientNotification({ id }, data) {
477
+ await this.api.post(`${this.route}${id}/send_client_notification`, data);
478
+ }
479
+ async markUnsentClientNotification({ id }) {
480
+ await this.api.post(`${this.route}${id}/mark_unsent_client_notification`);
481
+ }
482
+ async documentPdf({ id }) {
483
+ const result = await this.api.post(`${this.route}document_pdf/${id}`);
484
+ return result.data;
485
+ }
486
+ async documentPdfStream({ id }, params) {
487
+ const result = await this.api.get(`${this.route}document_pdf/${id}`, {
488
+ params,
489
+ responseType: "arraybuffer"
490
+ });
491
+ return result.data;
492
+ }
493
+ getDocumentPdfUrl({ id }, data) {
494
+ const qs = new URLSearchParams();
495
+ if (data?.token) {
496
+ qs.set("token", data.token);
497
+ }
498
+ return `${this.route}document_pdf/${id}?${qs.toString()}`;
499
+ }
500
+ async documentList({
501
+ id
502
+ }) {
503
+ const result = await this.api.post(`${this.route}document_list/${id}`);
504
+ return result.data;
505
+ }
506
+ async getAllRelatedDocumentHeaderIds({
507
+ id
508
+ }) {
509
+ const result = await this.api.get(`${this.route}related/${id}`);
510
+ return result.data;
511
+ }
512
+ async findStartDocumentHeaderSiblings({
513
+ id
514
+ }) {
515
+ const result = await this.api.get(`${this.route}siblings/${id}`);
516
+ return result.data;
517
+ }
518
+ async findRmOpenDocuments() {
519
+ const response = await this.api.get(`${this.route}rm_open_documents`);
520
+ return response.data;
521
+ }
522
+ };
523
+
524
+ // src/modules/document/billOfLading.ts
525
+ var Repository8 = class {
526
+ constructor({ api, route, publicRoute }) {
527
+ this.api = api;
528
+ this.route = route;
529
+ this.publicRoute = publicRoute;
530
+ }
531
+ async create(body) {
532
+ const response = await this.api.post(`${this.route}bill_of_lading`, body);
533
+ return response.data;
534
+ }
535
+ };
536
+
537
+ // src/modules/document/productionOrder.ts
538
+ var Repository9 = class {
539
+ constructor({ api, route, publicRoute }) {
540
+ this.api = api;
541
+ this.route = route;
542
+ this.publicRoute = publicRoute;
543
+ }
544
+ async createProductionOrder(body) {
545
+ await this.api.post(`${this.route}production_order`, body);
546
+ }
547
+ };
548
+
549
+ // src/modules/document/proforma.ts
550
+ var Repository10 = class {
551
+ constructor({ api, route, publicRoute }) {
552
+ this.api = api;
553
+ this.route = route;
554
+ this.publicRoute = publicRoute;
555
+ }
556
+ async create(data) {
557
+ const result = await this.api.post(`${this.route}pro_forma`, data);
558
+ return result.data;
559
+ }
560
+ };
561
+
562
+ // src/modules/document/propostaFornecedor.ts
563
+ var Repository11 = class {
564
+ constructor({ api, route, publicRoute }) {
565
+ this.api = api;
566
+ this.route = route;
567
+ this.publicRoute = publicRoute;
568
+ }
569
+ async createProviderProposal(data) {
570
+ const result = await this.api.post(`${this.route}provider_proposal`, data);
571
+ return result.data;
572
+ }
573
+ };
574
+
575
+ // src/modules/document/providerCreditNoteFromReturn.ts
576
+ var Repository12 = class {
577
+ constructor({ api, route, publicRoute }) {
578
+ this.api = api;
579
+ this.route = route;
580
+ this.publicRoute = publicRoute;
581
+ }
582
+ async findProviderReturn(params) {
583
+ const response = await this.api.get(`${this.route}provider_return`, {
584
+ params
585
+ });
586
+ return response.data;
587
+ }
588
+ async createProviderCreditNoteFromReturn(data) {
589
+ await this.api.post(`${this.route}provider_credit_note_from_return`, data);
590
+ }
591
+ };
592
+
593
+ // src/modules/document/providerFinancialCreditNote.ts
594
+ var Repository13 = class {
595
+ constructor({ api, route, publicRoute }) {
596
+ this.api = api;
597
+ this.route = route;
598
+ this.publicRoute = publicRoute;
599
+ }
600
+ async findProviderInvoice(params) {
601
+ const response = await this.api.get(`${this.route}provider_invoice`, {
602
+ params
603
+ });
604
+ return response.data;
605
+ }
606
+ async createProviderFinancialCreditNote(data) {
607
+ await this.api.post(`${this.route}provider_financial_credit_note`, data);
608
+ }
609
+ };
610
+
611
+ // src/modules/document/providerServiceInvoice.ts
612
+ var Repository14 = class {
613
+ constructor({ api, route, publicRoute }) {
614
+ this.api = api;
615
+ this.route = route;
616
+ this.publicRoute = publicRoute;
617
+ }
618
+ async createProviderServiceInvoice(data) {
619
+ await this.api.post(`${this.route}provider_service_invoice`, data);
620
+ }
621
+ };
622
+
623
+ // src/modules/supply/documentLine.ts
624
+ var documentLine_exports = {};
625
+ __export(documentLine_exports, {
626
+ default: () => Repository15
627
+ });
628
+ var Repository15 = class {
629
+ constructor({ api, route, publicRoute }) {
630
+ this.api = api;
631
+ this.route = route;
632
+ this.publicRoute = publicRoute;
633
+ }
634
+ async create(body) {
635
+ const response = await this.api.post(`${this.route}`, body);
636
+ return response.data;
637
+ }
638
+ async update(selector, body) {
639
+ await this.api.put(`${this.route}${selector.id}`, body);
640
+ }
641
+ async updateIndexes(document_line_ids) {
642
+ await this.api.put(`${this.route}update_indexes`, document_line_ids);
643
+ }
644
+ async updateData(data) {
645
+ const response = await this.api.post(`${this.route}update_data`, data);
646
+ return response.data;
647
+ }
648
+ async updateMany(data) {
649
+ const response = await this.api.post(`${this.route}update_many`, data);
650
+ return response.data;
651
+ }
652
+ async updateManyByDocumentHeader(params, data) {
653
+ await this.api.post(`${this.route}update_many_by_document_header_id`, data, { params });
654
+ }
655
+ async deleteMany(document_line_ids) {
656
+ await this.api.delete(`${this.route}`, { data: document_line_ids });
657
+ }
658
+ printLabelToPdfUrl({ document_line_ids }, token) {
659
+ const qs = new URLSearchParams();
660
+ qs.set("token", token);
661
+ return `${this.route}print_label_pdf/${document_line_ids}?${qs.toString()}`;
662
+ }
663
+ printGroupLabelToPdfUrl({ document_line_ids }, token) {
664
+ const qs = new URLSearchParams();
665
+ qs.set("token", token);
666
+ return `${this.route}print_group_label_pdf/${document_line_ids}?${qs.toString()}`;
667
+ }
668
+ };
669
+
670
+ // src/modules/supply/documentLineAssoc.ts
671
+ var documentLineAssoc_exports = {};
672
+ __export(documentLineAssoc_exports, {
673
+ default: () => Repository16
674
+ });
675
+ var Repository16 = class {
676
+ constructor({ api, route, publicRoute }) {
677
+ this.api = api;
678
+ this.route = route;
679
+ this.publicRoute = publicRoute;
680
+ }
681
+ async findByOwnerId(params) {
682
+ const response = await this.api.get(`${this.route}by_owner`, { params });
683
+ return response.data;
684
+ }
685
+ async findVirtualsByOwnerId(params) {
686
+ const response = await this.api.get(`${this.route}virtuals_by_owner`, {
687
+ params
688
+ });
689
+ return response.data;
690
+ }
691
+ async findHistoryByLineId(params) {
692
+ const response = await this.api.get(`${this.route}history_by_line_id`, {
693
+ params
694
+ });
695
+ return response.data;
696
+ }
697
+ async create(body) {
698
+ const response = await this.api.post(`${this.route}`, body);
699
+ return response.data;
700
+ }
701
+ async update(selector, body) {
702
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
703
+ return response.data;
704
+ }
705
+ };
706
+
707
+ // src/modules/supply/documentType.ts
708
+ var documentType_exports = {};
709
+ __export(documentType_exports, {
710
+ default: () => Repository17
711
+ });
712
+ var Repository17 = class {
713
+ constructor({ api, route, publicRoute }) {
714
+ this.api = api;
715
+ this.route = route;
716
+ this.publicRoute = publicRoute;
717
+ }
718
+ async find(params) {
719
+ const response = await this.api.get(`${this.route}`, { params });
720
+ return response.data;
721
+ }
722
+ async findMinified(params) {
723
+ const response = await this.api.get(`${this.route}minified`, { params });
724
+ return response.data;
725
+ }
726
+ async findDetailed(params) {
727
+ const response = await this.api.get(`${this.route}detailed`, { params });
728
+ return response.data;
729
+ }
730
+ async create(body) {
731
+ const response = await this.api.post(`${this.route}`, body);
732
+ return response.data;
733
+ }
734
+ async update(selector, body) {
735
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
736
+ return response.data;
737
+ }
738
+ async deleteOne(selector) {
739
+ const response = await this.api.delete(`${this.route}${selector.id}`);
740
+ return response.data;
741
+ }
742
+ };
743
+
744
+ // src/modules/user/favorites.ts
745
+ var favorites_exports = {};
746
+ __export(favorites_exports, {
747
+ default: () => Repository18
748
+ });
749
+ var Repository18 = class {
750
+ constructor({ api, route, publicRoute }) {
751
+ this.api = api;
752
+ this.route = route;
753
+ this.publicRoute = publicRoute;
754
+ }
755
+ async findByUrl(params) {
756
+ const response = await this.api.get(`${this.route}`, { params });
757
+ return response.data;
758
+ }
759
+ async list() {
760
+ const response = await this.api.get(`${this.route}list`);
761
+ return response.data;
762
+ }
763
+ async create(body) {
764
+ const response = await this.api.post(`${this.route}`, body);
765
+ return response.data;
766
+ }
767
+ async deleteOne(params) {
768
+ const response = await this.api.delete(`${this.route}`, { params });
769
+ return response.data;
770
+ }
771
+ };
772
+
773
+ // src/modules/stock/file.ts
774
+ var file_exports = {};
775
+ __export(file_exports, {
776
+ default: () => Repository19
777
+ });
778
+ var Repository19 = class {
779
+ constructor({ api, route, publicRoute }) {
780
+ this.api = api;
781
+ this.route = route;
782
+ this.publicRoute = publicRoute;
783
+ }
784
+ async findByOwnerId(params) {
785
+ const response = await this.api.get(`${this.route}by_owner`, {
786
+ params
787
+ });
788
+ return response.data;
789
+ }
790
+ async create(body) {
791
+ const response = await this.api.post(`${this.publicRoute}`, body);
792
+ return response.data;
793
+ }
794
+ async update({ id }, body) {
795
+ await this.api.put(`${this.publicRoute}${id}`, body);
796
+ }
797
+ async deleteOne(selector) {
798
+ const response = await this.api.delete(`${this.route}${selector.id}`);
799
+ return response.data;
800
+ }
801
+ };
802
+
803
+ // src/modules/integration/googleSheets.ts
804
+ var googleSheets_exports = {};
805
+ __export(googleSheets_exports, {
806
+ default: () => Repository20
807
+ });
808
+ var Repository20 = class {
809
+ constructor({ api, route, publicRoute }) {
810
+ this.api = api;
811
+ this.route = route;
812
+ this.publicRoute = publicRoute;
813
+ }
814
+ async clone(selector, params) {
815
+ const response = await this.api.get(`${this.route}clone/${selector.id}`, {
816
+ params
817
+ });
818
+ return response.data;
819
+ }
820
+ async export(params) {
821
+ const response = await this.api.get(`${this.route}export`, { params });
822
+ return response.data;
823
+ }
824
+ async getData(selector) {
825
+ const response = await this.api.get(`${this.route}${selector.id}`);
826
+ return response.data;
827
+ }
828
+ async update(selector, data) {
829
+ await this.api.put(`${this.route}${selector.id}`, data);
830
+ }
831
+ };
832
+
833
+ // src/modules/user/groupPermission.ts
834
+ var groupPermission_exports = {};
835
+ __export(groupPermission_exports, {
836
+ default: () => Repository21
837
+ });
838
+ var Repository21 = class {
839
+ constructor({ api, route, publicRoute }) {
840
+ this.api = api;
841
+ this.route = route;
842
+ this.publicRoute = publicRoute;
843
+ }
844
+ async find() {
845
+ const response = await this.api.get(`${this.route}`);
846
+ return response.data;
847
+ }
848
+ async findMinified(params) {
849
+ const response = await this.api.get(`${this.route}minified`, {
850
+ params
851
+ });
852
+ return response.data;
853
+ }
854
+ async create(body) {
855
+ const response = await this.api.post(`${this.route}`, body);
856
+ return response.data;
857
+ }
858
+ async deleteOne(selector) {
859
+ const response = await this.api.delete(`${this.route}${selector.id}`);
860
+ return response.data;
861
+ }
862
+ };
863
+
864
+ // src/modules/user/language.ts
865
+ var language_exports = {};
866
+ __export(language_exports, {
867
+ default: () => Repository22
868
+ });
869
+ var Repository22 = class {
870
+ constructor({ api, route, publicRoute }) {
871
+ this.api = api;
872
+ this.route = route;
873
+ this.publicRoute = publicRoute;
874
+ }
875
+ async find(params) {
876
+ const response = await this.api.get(`${this.route}`, { params });
877
+ return response.data;
878
+ }
879
+ async findPaginated(params) {
880
+ const response = await this.api.get(`${this.route}paginated`, { params });
881
+ return response.data;
882
+ }
883
+ async findMinified(params) {
884
+ const response = await this.api.get(`${this.route}minified`, {
885
+ params
886
+ });
887
+ return response.data;
888
+ }
889
+ async findById(selector) {
890
+ const response = await this.api.get(`${this.route}${selector.id}`);
891
+ return response.data;
892
+ }
893
+ async create(body) {
894
+ const response = await this.api.post(`${this.route}`, body);
895
+ return response.data;
896
+ }
897
+ async update(selector, body) {
898
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
899
+ return response.data;
900
+ }
901
+ async deleteOne(selector) {
902
+ const response = await this.api.delete(`${this.route}${selector.id}`);
903
+ return response.data;
904
+ }
905
+ };
906
+
907
+ // src/modules/stock/location.ts
908
+ var location_exports = {};
909
+ __export(location_exports, {
910
+ default: () => Repository23
911
+ });
912
+ var Repository23 = class {
913
+ constructor({ api, route, publicRoute }) {
914
+ this.api = api;
915
+ this.route = route;
916
+ this.publicRoute = publicRoute;
917
+ }
918
+ async find(params) {
919
+ const response = await this.api.get(`${this.route}`, { params });
920
+ return response.data;
921
+ }
922
+ async findPaginated(params) {
923
+ const response = await this.api.get(`${this.route}paginated`, { params });
924
+ return response.data;
925
+ }
926
+ async findMinified(params) {
927
+ const response = await this.api.get(`${this.route}minified`, {
928
+ params
929
+ });
930
+ return response.data;
931
+ }
932
+ async findByOwnerId(params) {
933
+ const response = await this.api.get(`${this.route}by_owner`, {
934
+ params
935
+ });
936
+ return response.data;
937
+ }
938
+ async findById(selector) {
939
+ const response = await this.api.get(`${this.route}${selector.id}`);
940
+ return response.data;
941
+ }
942
+ async create(body) {
943
+ const response = await this.api.post(`${this.route}`, body);
944
+ return response.data;
945
+ }
946
+ async update(selector, body) {
947
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
948
+ return response.data;
949
+ }
950
+ async deleteOne(selector) {
951
+ const response = await this.api.delete(`${this.route}${selector.id}`);
952
+ return response.data;
953
+ }
954
+ };
955
+
956
+ // src/modules/user/logout.ts
957
+ var logout_exports = {};
958
+ __export(logout_exports, {
959
+ default: () => Repository24
960
+ });
961
+ var Repository24 = class {
962
+ constructor({ api, route, publicRoute }) {
963
+ this.api = api;
964
+ this.route = route;
965
+ this.publicRoute = publicRoute;
966
+ }
967
+ async logout() {
968
+ await this.api.post(`${this.route}`);
969
+ }
970
+ };
971
+
972
+ // src/modules/documentManagement/multimedia.ts
973
+ var multimedia_exports = {};
974
+ __export(multimedia_exports, {
975
+ default: () => Repository25
976
+ });
977
+ var Repository25 = class {
978
+ constructor({ api, route, publicRoute }) {
979
+ this.api = api;
980
+ this.route = route;
981
+ this.publicRoute = publicRoute;
982
+ }
983
+ getUrl(multimediaId, download = false) {
984
+ const qs = new URLSearchParams();
985
+ if (download) qs.set("download", download.toString());
986
+ return `${this.publicRoute}${multimediaId}?${qs.toString()}`;
987
+ }
988
+ async create(multipartFormData, headers) {
989
+ const response = await this.api.post(`${this.publicRoute}upload`, multipartFormData, {
990
+ headers: {
991
+ ...headers || {},
992
+ "content-type": "multipart/form-data"
993
+ },
994
+ maxBodyLength: Infinity,
995
+ maxContentLength: Infinity
996
+ });
997
+ return response.data;
998
+ }
999
+ };
1000
+
1001
+ // src/modules/integration/observation.ts
1002
+ var observation_exports = {};
1003
+ __export(observation_exports, {
1004
+ default: () => Repository26
1005
+ });
1006
+ var Repository26 = class {
1007
+ constructor({ api, route, publicRoute }) {
1008
+ this.api = api;
1009
+ this.route = route;
1010
+ this.publicRoute = publicRoute;
1011
+ }
1012
+ async findByOwnerId(params) {
1013
+ const response = await this.api.get(`${this.route}`, {
1014
+ params
1015
+ });
1016
+ return response.data;
1017
+ }
1018
+ async findByOwnerIds(body) {
1019
+ const response = await this.api.post(`${this.route}by_owners`, body);
1020
+ return response.data;
1021
+ }
1022
+ async create(body) {
1023
+ const response = await this.api.post(`${this.route}`, body);
1024
+ return response.data;
1025
+ }
1026
+ async update(selector, body) {
1027
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1028
+ return response.data;
1029
+ }
1030
+ async deleteOne(selector) {
1031
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1032
+ return response.data;
1033
+ }
1034
+ };
1035
+
1036
+ // src/modules/integration/observationType.ts
1037
+ var observationType_exports = {};
1038
+ __export(observationType_exports, {
1039
+ default: () => Repository27
1040
+ });
1041
+ var Repository27 = class {
1042
+ constructor({ api, route, publicRoute }) {
1043
+ this.api = api;
1044
+ this.route = route;
1045
+ this.publicRoute = publicRoute;
1046
+ }
1047
+ async find() {
1048
+ const response = await this.api.get(`${this.route}`);
1049
+ return response.data;
1050
+ }
1051
+ async findMinified(params) {
1052
+ const response = await this.api.get(`${this.route}minified`, {
1053
+ params
1054
+ });
1055
+ return response.data;
1056
+ }
1057
+ async create(body) {
1058
+ const response = await this.api.post(`${this.route}`, body);
1059
+ return response.data;
1060
+ }
1061
+ async update(selector, body) {
1062
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1063
+ return response.data;
1064
+ }
1065
+ async deleteOne(selector) {
1066
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1067
+ return response.data;
1068
+ }
1069
+ };
1070
+
1071
+ // src/modules/user/password.ts
1072
+ var password_exports = {};
1073
+ __export(password_exports, {
1074
+ default: () => Repository28
1075
+ });
1076
+ var Repository28 = class {
1077
+ constructor({ api, route, publicRoute }) {
1078
+ this.api = api;
1079
+ this.route = route;
1080
+ this.publicRoute = publicRoute;
1081
+ }
1082
+ async forgotPassword(body) {
1083
+ await this.api.post(`${this.publicRoute}forgot`, body);
1084
+ }
1085
+ async resetPassword(body) {
1086
+ await this.api.post(`${this.publicRoute}reset`, body);
1087
+ }
1088
+ };
1089
+
1090
+ // src/modules/user/permission.ts
1091
+ var permission_exports = {};
1092
+ __export(permission_exports, {
1093
+ default: () => Repository29
1094
+ });
1095
+ var Repository29 = class {
1096
+ constructor({ api, route, publicRoute }) {
1097
+ this.api = api;
1098
+ this.route = route;
1099
+ this.publicRoute = publicRoute;
1100
+ }
1101
+ async find() {
1102
+ const response = await this.api.get(`${this.route}`);
1103
+ return response.data;
1104
+ }
1105
+ async findMinified(params) {
1106
+ const response = await this.api.get(`${this.route}minified`, {
1107
+ params
1108
+ });
1109
+ return response.data;
1110
+ }
1111
+ async create(body) {
1112
+ const response = await this.api.post(`${this.route}`, body);
1113
+ return response.data;
1114
+ }
1115
+ async deleteOne(selector) {
1116
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1117
+ return response.data;
1118
+ }
1119
+ };
1120
+
1121
+ // src/modules/stock/productImage.ts
1122
+ var productImage_exports = {};
1123
+ __export(productImage_exports, {
1124
+ default: () => Repository30
1125
+ });
1126
+ var Repository30 = class {
1127
+ constructor({ api, route, publicRoute }) {
1128
+ this.api = api;
1129
+ this.route = route;
1130
+ this.publicRoute = publicRoute;
1131
+ }
1132
+ async find(params) {
1133
+ const response = await this.api.get(`${this.route}`, { params });
1134
+ return response.data;
1135
+ }
1136
+ async findPaginated(params) {
1137
+ const response = await this.api.get(`${this.route}paginated`, { params });
1138
+ return response.data;
1139
+ }
1140
+ async findByOwnerId(params) {
1141
+ const response = await this.api.get(`${this.route}by_owner`, {
1142
+ params
1143
+ });
1144
+ return response.data;
1145
+ }
1146
+ async findById(selector) {
1147
+ const response = await this.api.get(`${this.route}${selector.id}`);
1148
+ return response.data;
1149
+ }
1150
+ async create(body) {
1151
+ const response = await this.api.post(`${this.route}`, body);
1152
+ return response.data;
1153
+ }
1154
+ async update(selector, body) {
1155
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1156
+ return response.data;
1157
+ }
1158
+ async deleteOne(selector) {
1159
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1160
+ return response.data;
1161
+ }
1162
+ };
1163
+
1164
+ // src/modules/stock/promotion.ts
1165
+ var promotion_exports = {};
1166
+ __export(promotion_exports, {
1167
+ default: () => Repository31
1168
+ });
1169
+ var Repository31 = class {
1170
+ constructor({ api, route, publicRoute }) {
1171
+ this.api = api;
1172
+ this.route = route;
1173
+ this.publicRoute = publicRoute;
1174
+ }
1175
+ async find(params) {
1176
+ const response = await this.api.get(`${this.route}`, { params });
1177
+ return response.data;
1178
+ }
1179
+ async findPaginated(params) {
1180
+ const response = await this.api.get(`${this.route}paginated`, { params });
1181
+ return response.data;
1182
+ }
1183
+ async findMinified(params) {
1184
+ const response = await this.api.get(`${this.route}minified`, {
1185
+ params
1186
+ });
1187
+ return response.data;
1188
+ }
1189
+ async findByOwnerId(params) {
1190
+ const response = await this.api.get(`${this.route}by_owner`, {
1191
+ params
1192
+ });
1193
+ return response.data;
1194
+ }
1195
+ async findById(selector) {
1196
+ const response = await this.api.get(`${this.route}${selector.id}`);
1197
+ return response.data;
1198
+ }
1199
+ async create(body) {
1200
+ const response = await this.api.post(`${this.route}`, body);
1201
+ return response.data;
1202
+ }
1203
+ async update(selector, body) {
1204
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1205
+ return response.data;
1206
+ }
1207
+ async deleteOne(selector) {
1208
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1209
+ return response.data;
1210
+ }
1211
+ getBestDiscount(promotions, discount, location_id, client_id, product_no_discount) {
1212
+ const highestPromoDiscount = promotions.filter((promotion) => {
1213
+ const locationEligible = promotion.exclusive_to_location_id ? promotion.exclusive_to_location_id === location_id : true;
1214
+ const clientEligible = promotion.exclusive_to_client_id ? promotion.exclusive_to_client_id === client_id : true;
1215
+ return locationEligible && clientEligible;
1216
+ }).reduce(
1217
+ (highest, promotion) => promotion.discount > highest ? promotion.discount : highest,
1218
+ 0
1219
+ );
1220
+ const clientDiscount = product_no_discount ? 0 : discount || 0;
1221
+ return highestPromoDiscount > clientDiscount ? highestPromoDiscount : clientDiscount;
1222
+ }
1223
+ };
1224
+
1225
+ // src/modules/stock/promotionAssoc.ts
1226
+ var promotionAssoc_exports = {};
1227
+ __export(promotionAssoc_exports, {
1228
+ default: () => Repository32
1229
+ });
1230
+ var Repository32 = class {
1231
+ constructor({ api, route, publicRoute }) {
1232
+ this.api = api;
1233
+ this.route = route;
1234
+ this.publicRoute = publicRoute;
1235
+ }
1236
+ async find(params) {
1237
+ const response = await this.api.get(`${this.route}`, { params });
1238
+ return response.data;
1239
+ }
1240
+ async findPaginated(params) {
1241
+ const response = await this.api.get(`${this.route}paginated`, { params });
1242
+ return response.data;
1243
+ }
1244
+ async findByOwnerId(params) {
1245
+ const response = await this.api.get(`${this.route}by_owner`, {
1246
+ params
1247
+ });
1248
+ return response.data;
1249
+ }
1250
+ async findById(selector) {
1251
+ const response = await this.api.get(`${this.route}${selector.id}`);
1252
+ return response.data;
1253
+ }
1254
+ async create(body) {
1255
+ const response = await this.api.post(`${this.route}`, body);
1256
+ return response.data;
1257
+ }
1258
+ async update(selector, body) {
1259
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1260
+ return response.data;
1261
+ }
1262
+ async deleteOne(selector) {
1263
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1264
+ return response.data;
1265
+ }
1266
+ };
1267
+
1268
+ // src/modules/user/provider.ts
1269
+ var provider_exports = {};
1270
+ __export(provider_exports, {
1271
+ default: () => Repository33
1272
+ });
1273
+ var Repository33 = class {
1274
+ constructor({ api, route, publicRoute }) {
1275
+ this.api = api;
1276
+ this.route = route;
1277
+ this.publicRoute = publicRoute;
1278
+ }
1279
+ async findByQuery(data) {
1280
+ const response = await this.api.post(`${this.route}query`, data);
1281
+ return response.data;
1282
+ }
1283
+ async find(params) {
1284
+ const response = await this.api.get(`${this.route}`, { params });
1285
+ return response.data;
1286
+ }
1287
+ async findPaginated(params) {
1288
+ const response = await this.api.get(`${this.route}paginated`, { params });
1289
+ return response.data;
1290
+ }
1291
+ async findMinified(params) {
1292
+ const response = await this.api.get(`${this.route}minified`, {
1293
+ params
1294
+ });
1295
+ return response.data;
1296
+ }
1297
+ async findMinifiedManufacturer(params) {
1298
+ const response = await this.api.get(`${this.route}minified_manufacturer`, {
1299
+ params
1300
+ });
1301
+ return response.data;
1302
+ }
1303
+ async findByOwnerId(params) {
1304
+ const response = await this.api.get(`${this.route}by_owner`, {
1305
+ params
1306
+ });
1307
+ return response.data;
1308
+ }
1309
+ async findById(selector) {
1310
+ const response = await this.api.get(`${this.route}${selector.id}`);
1311
+ return response.data;
1312
+ }
1313
+ async create(body) {
1314
+ const response = await this.api.post(`${this.route}`, body);
1315
+ return response.data;
1316
+ }
1317
+ async update(selector, body) {
1318
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1319
+ return response.data;
1320
+ }
1321
+ async deleteOne(selector) {
1322
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1323
+ return response.data;
1324
+ }
1325
+ };
1326
+
1327
+ // src/modules/user/providerType.ts
1328
+ var providerType_exports = {};
1329
+ __export(providerType_exports, {
1330
+ default: () => Repository34
1331
+ });
1332
+ var Repository34 = class {
1333
+ constructor({ api, route, publicRoute }) {
1334
+ this.api = api;
1335
+ this.route = route;
1336
+ this.publicRoute = publicRoute;
1337
+ }
1338
+ async find(params) {
1339
+ const response = await this.api.get(`${this.route}`, { params });
1340
+ return response.data;
1341
+ }
1342
+ async findPaginated(params) {
1343
+ const response = await this.api.get(`${this.route}paginated`, { params });
1344
+ return response.data;
1345
+ }
1346
+ async findMinified(params) {
1347
+ const response = await this.api.get(`${this.route}minified`, {
1348
+ params
1349
+ });
1350
+ return response.data;
1351
+ }
1352
+ async findById(selector) {
1353
+ const response = await this.api.get(`${this.route}${selector.id}`);
1354
+ return response.data;
1355
+ }
1356
+ async create(body) {
1357
+ const response = await this.api.post(`${this.route}`, body);
1358
+ return response.data;
1359
+ }
1360
+ async update(selector, body) {
1361
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1362
+ return response.data;
1363
+ }
1364
+ async deleteOne(selector) {
1365
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1366
+ return response.data;
1367
+ }
1368
+ };
1369
+
1370
+ // src/modules/user/purchaseCondition.ts
1371
+ var purchaseCondition_exports = {};
1372
+ __export(purchaseCondition_exports, {
1373
+ default: () => Repository35
1374
+ });
1375
+ var Repository35 = class {
1376
+ constructor({ api, route, publicRoute }) {
1377
+ this.api = api;
1378
+ this.route = route;
1379
+ this.publicRoute = publicRoute;
1380
+ }
1381
+ async find(params) {
1382
+ const response = await this.api.get(`${this.route}`, { params });
1383
+ return response.data;
1384
+ }
1385
+ async findPaginated(params) {
1386
+ const response = await this.api.get(`${this.route}paginated`, { params });
1387
+ return response.data;
1388
+ }
1389
+ async findByOwnerId(params) {
1390
+ const response = await this.api.get(`${this.route}by_owner`, {
1391
+ params
1392
+ });
1393
+ return response.data;
1394
+ }
1395
+ async findById(selector) {
1396
+ const response = await this.api.get(`${this.route}${selector.id}`);
1397
+ return response.data;
1398
+ }
1399
+ async create(body) {
1400
+ const response = await this.api.post(`${this.route}`, body);
1401
+ return response.data;
1402
+ }
1403
+ async update(selector, body) {
1404
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1405
+ return response.data;
1406
+ }
1407
+ async deleteOne(selector) {
1408
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1409
+ return response.data;
1410
+ }
1411
+ };
1412
+
1413
+ // src/modules/user/reasonForExemption.ts
1414
+ var reasonForExemption_exports = {};
1415
+ __export(reasonForExemption_exports, {
1416
+ default: () => Repository36
1417
+ });
1418
+ var Repository36 = class {
1419
+ constructor({ api, route, publicRoute }) {
1420
+ this.api = api;
1421
+ this.route = route;
1422
+ this.publicRoute = publicRoute;
1423
+ }
1424
+ async find(params) {
1425
+ const response = await this.api.get(`${this.route}`, { params });
1426
+ return response.data;
1427
+ }
1428
+ async findPaginated(params) {
1429
+ const response = await this.api.get(`${this.route}paginated`, { params });
1430
+ return response.data;
1431
+ }
1432
+ async findMinified(params) {
1433
+ const response = await this.api.get(`${this.route}minified`, {
1434
+ params
1435
+ });
1436
+ return response.data;
1437
+ }
1438
+ async findById(selector) {
1439
+ const response = await this.api.get(`${this.route}${selector.id}`);
1440
+ return response.data;
1441
+ }
1442
+ async create(body) {
1443
+ const response = await this.api.post(`${this.route}`, body);
1444
+ return response.data;
1445
+ }
1446
+ async update(selector, body) {
1447
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1448
+ return response.data;
1449
+ }
1450
+ async deleteOne(selector) {
1451
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1452
+ return response.data;
1453
+ }
1454
+ };
1455
+
1456
+ // src/modules/user/refreshToken.ts
1457
+ var refreshToken_exports = {};
1458
+ __export(refreshToken_exports, {
1459
+ default: () => Repository37
1460
+ });
1461
+ var Repository37 = class {
1462
+ constructor({ api, route, publicRoute }) {
1463
+ this.api = api;
1464
+ this.route = route;
1465
+ this.publicRoute = publicRoute;
1466
+ }
1467
+ async create(body) {
1468
+ const response = await this.api.post(`${this.publicRoute}`, body);
1469
+ return response.data;
1470
+ }
1471
+ };
1472
+
1473
+ // src/modules/user/segmentsArea.ts
1474
+ var segmentsArea_exports = {};
1475
+ __export(segmentsArea_exports, {
1476
+ default: () => Repository38
1477
+ });
1478
+ var Repository38 = class {
1479
+ constructor({ api, route, publicRoute }) {
1480
+ this.api = api;
1481
+ this.route = route;
1482
+ this.publicRoute = publicRoute;
1483
+ }
1484
+ async find(params) {
1485
+ const response = await this.api.get(`${this.route}`, { params });
1486
+ return response.data;
1487
+ }
1488
+ async findPaginated(params) {
1489
+ const response = await this.api.get(`${this.route}paginated`, { params });
1490
+ return response.data;
1491
+ }
1492
+ async findMinified(params) {
1493
+ const response = await this.api.get(`${this.route}minified`, {
1494
+ params
1495
+ });
1496
+ return response.data;
1497
+ }
1498
+ async findById(selector) {
1499
+ const response = await this.api.get(`${this.route}${selector.id}`);
1500
+ return response.data;
1501
+ }
1502
+ async create(body) {
1503
+ const response = await this.api.post(`${this.route}`, body);
1504
+ return response.data;
1505
+ }
1506
+ async update(selector, body) {
1507
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1508
+ return response.data;
1509
+ }
1510
+ async deleteOne(selector) {
1511
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1512
+ return response.data;
1513
+ }
1514
+ };
1515
+
1516
+ // src/modules/user/sessions.ts
1517
+ var sessions_exports = {};
1518
+ __export(sessions_exports, {
1519
+ default: () => Repository39
1520
+ });
1521
+ var Repository39 = class {
1522
+ constructor({ api, route, publicRoute }) {
1523
+ this.api = api;
1524
+ this.route = route;
1525
+ this.publicRoute = publicRoute;
1526
+ }
1527
+ async create(body) {
1528
+ const response = await this.api.post(`${this.publicRoute}`, body);
1529
+ return response.data;
1530
+ }
1531
+ };
1532
+
1533
+ // src/modules/user/shippings.ts
1534
+ var shippings_exports = {};
1535
+ __export(shippings_exports, {
1536
+ default: () => Repository40
1537
+ });
1538
+ var Repository40 = class {
1539
+ constructor({ api, route, publicRoute }) {
1540
+ this.api = api;
1541
+ this.route = route;
1542
+ this.publicRoute = publicRoute;
1543
+ }
1544
+ async find(params) {
1545
+ const response = await this.api.get(`${this.route}`, { params });
1546
+ return response.data;
1547
+ }
1548
+ async findPaginated(params) {
1549
+ const response = await this.api.get(`${this.route}paginated`, { params });
1550
+ return response.data;
1551
+ }
1552
+ async findByOwnerId(params) {
1553
+ const response = await this.api.get(`${this.route}by_owner`, {
1554
+ params
1555
+ });
1556
+ return response.data;
1557
+ }
1558
+ async findById(selector) {
1559
+ const response = await this.api.get(`${this.route}${selector.id}`);
1560
+ return response.data;
1561
+ }
1562
+ async create(body) {
1563
+ const response = await this.api.post(`${this.route}`, body);
1564
+ return response.data;
1565
+ }
1566
+ async update(selector, body) {
1567
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1568
+ return response.data;
1569
+ }
1570
+ async deleteOne(selector) {
1571
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1572
+ return response.data;
1573
+ }
1574
+ };
1575
+
1576
+ // src/modules/user/storeOperator.ts
1577
+ var storeOperator_exports = {};
1578
+ __export(storeOperator_exports, {
1579
+ default: () => Repository41
1580
+ });
1581
+ var Repository41 = class {
1582
+ constructor({ api, route, publicRoute }) {
1583
+ this.api = api;
1584
+ this.route = route;
1585
+ this.publicRoute = publicRoute;
1586
+ }
1587
+ async find(params) {
1588
+ const response = await this.api.get(`${this.route}`, { params });
1589
+ return response.data;
1590
+ }
1591
+ async findPaginated(params) {
1592
+ const response = await this.api.get(`${this.route}paginated`, { params });
1593
+ return response.data;
1594
+ }
1595
+ async findMinified(params) {
1596
+ const response = await this.api.get(`${this.route}minified`, {
1597
+ params
1598
+ });
1599
+ return response.data;
1600
+ }
1601
+ async findByOwnerId(params) {
1602
+ const response = await this.api.get(`${this.route}by_owner`, {
1603
+ params
1604
+ });
1605
+ return response.data;
1606
+ }
1607
+ async findById(selector) {
1608
+ const response = await this.api.get(`${this.route}${selector.id}`);
1609
+ return response.data;
1610
+ }
1611
+ async create(body) {
1612
+ const response = await this.api.post(`${this.route}`, body);
1613
+ return response.data;
1614
+ }
1615
+ async update(selector, body) {
1616
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1617
+ return response.data;
1618
+ }
1619
+ async deleteOne(selector) {
1620
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1621
+ return response.data;
1622
+ }
1623
+ async checkPin(data) {
1624
+ const response = await this.api.post(`${this.route}pin`, data);
1625
+ return response.data;
1626
+ }
1627
+ async updateStoreOperator(selector, body) {
1628
+ await this.api.put(`${this.route}store_operator${selector.id}`, body);
1629
+ }
1630
+ };
1631
+
1632
+ // src/modules/user/swift.ts
1633
+ var swift_exports = {};
1634
+ __export(swift_exports, {
1635
+ default: () => Repository42
1636
+ });
1637
+ var Repository42 = class {
1638
+ constructor({ api, route, publicRoute }) {
1639
+ this.api = api;
1640
+ this.route = route;
1641
+ this.publicRoute = publicRoute;
1642
+ }
1643
+ async find(params) {
1644
+ const response = await this.api.get(`${this.route}`, { params });
1645
+ return response.data;
1646
+ }
1647
+ async findPaginated(params) {
1648
+ const response = await this.api.get(`${this.route}paginated`, { params });
1649
+ return response.data;
1650
+ }
1651
+ async findMinified(params) {
1652
+ const response = await this.api.get(`${this.route}minified`, {
1653
+ params
1654
+ });
1655
+ return response.data;
1656
+ }
1657
+ async findById(selector) {
1658
+ const response = await this.api.get(`${this.route}${selector.id}`);
1659
+ return response.data;
1660
+ }
1661
+ async create(body) {
1662
+ const response = await this.api.post(`${this.route}`, body);
1663
+ return response.data;
1664
+ }
1665
+ async update(selector, body) {
1666
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1667
+ return response.data;
1668
+ }
1669
+ async deleteOne(selector) {
1670
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1671
+ return response.data;
1672
+ }
1673
+ };
1674
+
1675
+ // src/modules/stock/typeOfLocation.ts
1676
+ var typeOfLocation_exports = {};
1677
+ __export(typeOfLocation_exports, {
1678
+ default: () => Repository43
1679
+ });
1680
+ var Repository43 = class {
1681
+ constructor({ api, route, publicRoute }) {
1682
+ this.api = api;
1683
+ this.route = route;
1684
+ this.publicRoute = publicRoute;
1685
+ }
1686
+ async find(params) {
1687
+ const response = await this.api.get(`${this.route}`, { params });
1688
+ return response.data;
1689
+ }
1690
+ async findPaginated(params) {
1691
+ const response = await this.api.get(`${this.route}paginated`, { params });
1692
+ return response.data;
1693
+ }
1694
+ async findMinified(params) {
1695
+ const response = await this.api.get(`${this.route}minified`, {
1696
+ params
1697
+ });
1698
+ return response.data;
1699
+ }
1700
+ async findByOwnerId(params) {
1701
+ const response = await this.api.get(`${this.route}by_owner`, {
1702
+ params
1703
+ });
1704
+ return response.data;
1705
+ }
1706
+ async findById(selector) {
1707
+ const response = await this.api.get(`${this.route}${selector.id}`);
1708
+ return response.data;
1709
+ }
1710
+ async create(body) {
1711
+ const response = await this.api.post(`${this.route}`, body);
1712
+ return response.data;
1713
+ }
1714
+ async update(selector, body) {
1715
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1716
+ return response.data;
1717
+ }
1718
+ async deleteOne(selector) {
1719
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1720
+ return response.data;
1721
+ }
1722
+ };
1723
+
1724
+ // src/modules/stock/unitOfMeasure.ts
1725
+ var unitOfMeasure_exports = {};
1726
+ __export(unitOfMeasure_exports, {
1727
+ default: () => Repository44
1728
+ });
1729
+ var Repository44 = class {
1730
+ constructor({ api, route, publicRoute }) {
1731
+ this.api = api;
1732
+ this.route = route;
1733
+ this.publicRoute = publicRoute;
1734
+ }
1735
+ async find(params) {
1736
+ const response = await this.api.get(`${this.route}`, { params });
1737
+ return response.data;
1738
+ }
1739
+ async findPaginated(params) {
1740
+ const response = await this.api.get(`${this.route}paginated`, { params });
1741
+ return response.data;
1742
+ }
1743
+ async findMinified(params) {
1744
+ const response = await this.api.get(`${this.route}minified`, {
1745
+ params
1746
+ });
1747
+ return response.data;
1748
+ }
1749
+ async findByOwnerId(params) {
1750
+ const response = await this.api.get(`${this.route}by_owner`, {
1751
+ params
1752
+ });
1753
+ return response.data;
1754
+ }
1755
+ async findById(selector) {
1756
+ const response = await this.api.get(`${this.route}${selector.id}`);
1757
+ return response.data;
1758
+ }
1759
+ async create(body) {
1760
+ const response = await this.api.post(`${this.route}`, body);
1761
+ return response.data;
1762
+ }
1763
+ async update(selector, body) {
1764
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1765
+ return response.data;
1766
+ }
1767
+ async deleteOne(selector) {
1768
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1769
+ return response.data;
1770
+ }
1771
+ };
1772
+
1773
+ // src/modules/user/userPermission.ts
1774
+ var userPermission_exports = {};
1775
+ __export(userPermission_exports, {
1776
+ default: () => Repository45
1777
+ });
1778
+ var Repository45 = class {
1779
+ constructor({ api, route, publicRoute }) {
1780
+ this.api = api;
1781
+ this.route = route;
1782
+ this.publicRoute = publicRoute;
1783
+ }
1784
+ async findByOwnerId(params) {
1785
+ const response = await this.api.get(`${this.route}by_owner`, {
1786
+ params
1787
+ });
1788
+ return response.data;
1789
+ }
1790
+ async create(body) {
1791
+ const response = await this.api.post(`${this.route}`, body);
1792
+ return response.data;
1793
+ }
1794
+ async deleteOne(selector) {
1795
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1796
+ return response.data;
1797
+ }
1798
+ };
1799
+
1800
+ // src/modules/user/userPositions.ts
1801
+ var userPositions_exports = {};
1802
+ __export(userPositions_exports, {
1803
+ default: () => Repository46
1804
+ });
1805
+ var Repository46 = class {
1806
+ constructor({ api, route, publicRoute }) {
1807
+ this.api = api;
1808
+ this.route = route;
1809
+ this.publicRoute = publicRoute;
1810
+ }
1811
+ async find(params) {
1812
+ const response = await this.api.get(`${this.route}`, { params });
1813
+ return response.data;
1814
+ }
1815
+ async findPaginated(params) {
1816
+ const response = await this.api.get(`${this.route}paginated`, { params });
1817
+ return response.data;
1818
+ }
1819
+ async findMinified(params) {
1820
+ const response = await this.api.get(`${this.route}minified`, {
1821
+ params
1822
+ });
1823
+ return response.data;
1824
+ }
1825
+ async findById(selector) {
1826
+ const response = await this.api.get(`${this.route}${selector.id}`);
1827
+ return response.data;
1828
+ }
1829
+ async create(body) {
1830
+ const response = await this.api.post(`${this.route}`, body);
1831
+ return response.data;
1832
+ }
1833
+ async update(selector, body) {
1834
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1835
+ return response.data;
1836
+ }
1837
+ async deleteOne(selector) {
1838
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1839
+ return response.data;
1840
+ }
1841
+ };
1842
+
1843
+ // src/modules/user/user.ts
1844
+ var user_exports = {};
1845
+ __export(user_exports, {
1846
+ default: () => Repository47
1847
+ });
1848
+ var Repository47 = class {
1849
+ constructor({ api, route, publicRoute }) {
1850
+ this.api = api;
1851
+ this.route = route;
1852
+ this.publicRoute = publicRoute;
1853
+ }
1854
+ async find(params) {
1855
+ const response = await this.api.get(`${this.route}`, { params });
1856
+ return response.data;
1857
+ }
1858
+ async findPaginated(params) {
1859
+ const response = await this.api.get(`${this.route}paginated`, { params });
1860
+ return response.data;
1861
+ }
1862
+ async findMinified(params) {
1863
+ const response = await this.api.get(`${this.route}minified`, {
1864
+ params
1865
+ });
1866
+ return response.data;
1867
+ }
1868
+ async findById(selector) {
1869
+ const response = await this.api.get(`${this.route}${selector.id}`);
1870
+ return response.data;
1871
+ }
1872
+ async create(body) {
1873
+ const response = await this.api.post(`${this.route}`, body);
1874
+ return response.data;
1875
+ }
1876
+ async update(selector, body) {
1877
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1878
+ return response.data;
1879
+ }
1880
+ async deleteOne(selector) {
1881
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1882
+ return response.data;
1883
+ }
1884
+ async findProvidersWithClientId(body) {
1885
+ const response = await this.api.post(`${this.route}providers`, body);
1886
+ return response.data;
1887
+ }
1888
+ async findFromClientOrProviderId(body) {
1889
+ const response = await this.api.post(`${this.route}from_client_or_provider_id`, body);
1890
+ return response.data;
1891
+ }
1892
+ };
1893
+
1894
+ // src/modules/stock/vatTax.ts
1895
+ var vatTax_exports = {};
1896
+ __export(vatTax_exports, {
1897
+ default: () => Repository48
1898
+ });
1899
+ var Repository48 = class {
1900
+ constructor({ api, route, publicRoute }) {
1901
+ this.api = api;
1902
+ this.route = route;
1903
+ this.publicRoute = publicRoute;
1904
+ }
1905
+ async find(params) {
1906
+ const response = await this.api.get(`${this.route}`, { params });
1907
+ return response.data;
1908
+ }
1909
+ async findPaginated(params) {
1910
+ const response = await this.api.get(`${this.route}paginated`, { params });
1911
+ return response.data;
1912
+ }
1913
+ async findMinified(params) {
1914
+ const response = await this.api.get(`${this.route}minified`, {
1915
+ params
1916
+ });
1917
+ return response.data;
1918
+ }
1919
+ async findByOwnerId(params) {
1920
+ const response = await this.api.get(`${this.route}by_owner`, {
1921
+ params
1922
+ });
1923
+ return response.data;
1924
+ }
1925
+ async findById(selector) {
1926
+ const response = await this.api.get(`${this.route}${selector.id}`);
1927
+ return response.data;
1928
+ }
1929
+ async create(body) {
1930
+ const response = await this.api.post(`${this.route}`, body);
1931
+ return response.data;
1932
+ }
1933
+ async update(selector, body) {
1934
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1935
+ return response.data;
1936
+ }
1937
+ async deleteOne(selector) {
1938
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1939
+ return response.data;
1940
+ }
1941
+ };
1942
+
1943
+ // src/modules/stock/vatTaxZone.ts
1944
+ var vatTaxZone_exports = {};
1945
+ __export(vatTaxZone_exports, {
1946
+ default: () => Repository49
1947
+ });
1948
+ var Repository49 = class {
1949
+ constructor({ api, route, publicRoute }) {
1950
+ this.api = api;
1951
+ this.route = route;
1952
+ this.publicRoute = publicRoute;
1953
+ }
1954
+ async find(params) {
1955
+ const response = await this.api.get(`${this.route}`, { params });
1956
+ return response.data;
1957
+ }
1958
+ async findPaginated(params) {
1959
+ const response = await this.api.get(`${this.route}paginated`, { params });
1960
+ return response.data;
1961
+ }
1962
+ async findMinified(params) {
1963
+ const response = await this.api.get(`${this.route}minified`, {
1964
+ params
1965
+ });
1966
+ return response.data;
1967
+ }
1968
+ async findByOwnerId(params) {
1969
+ const response = await this.api.get(`${this.route}by_owner`, {
1970
+ params
1971
+ });
1972
+ return response.data;
1973
+ }
1974
+ async findById(selector) {
1975
+ const response = await this.api.get(`${this.route}${selector.id}`);
1976
+ return response.data;
1977
+ }
1978
+ async create(body) {
1979
+ const response = await this.api.post(`${this.route}`, body);
1980
+ return response.data;
1981
+ }
1982
+ async update(selector, body) {
1983
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
1984
+ return response.data;
1985
+ }
1986
+ async deleteOne(selector) {
1987
+ const response = await this.api.delete(`${this.route}${selector.id}`);
1988
+ return response.data;
1989
+ }
1990
+ };
1991
+
1992
+ // src/modules/supply/workflow.ts
1993
+ var workflow_exports = {};
1994
+ __export(workflow_exports, {
1995
+ default: () => Repository50
1996
+ });
1997
+ var Repository50 = class {
1998
+ constructor({ api, route, publicRoute }) {
1999
+ this.api = api;
2000
+ this.route = route;
2001
+ this.publicRoute = publicRoute;
2002
+ }
2003
+ async find(params) {
2004
+ const response = await this.api.get(`${this.route}`, { params });
2005
+ return response.data;
2006
+ }
2007
+ async findByOwnerId(params) {
2008
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2009
+ return response.data;
2010
+ }
2011
+ async create(body) {
2012
+ const response = await this.api.post(`${this.route}`, body);
2013
+ return response.data;
2014
+ }
2015
+ async update(selector, body) {
2016
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2017
+ return response.data;
2018
+ }
2019
+ async deleteOne(selector) {
2020
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2021
+ return response.data;
2022
+ }
2023
+ };
2024
+
2025
+ // src/modules/user/deliveryMethods.ts
2026
+ var deliveryMethods_exports = {};
2027
+ __export(deliveryMethods_exports, {
2028
+ default: () => Repository51
2029
+ });
2030
+ var Repository51 = class {
2031
+ constructor({ api, route, publicRoute }) {
2032
+ this.api = api;
2033
+ this.route = route;
2034
+ this.publicRoute = publicRoute;
2035
+ }
2036
+ async find() {
2037
+ const response = await this.api.get(`${this.route}`);
2038
+ return response.data;
2039
+ }
2040
+ async findMinified(params) {
2041
+ const response = await this.api.get(`${this.route}minified`, {
2042
+ params
2043
+ });
2044
+ return response.data;
2045
+ }
2046
+ async findById(selector) {
2047
+ const response = await this.api.get(`${this.route}${selector.id}`);
2048
+ return response.data;
2049
+ }
2050
+ async create(body) {
2051
+ const response = await this.api.post(`${this.route}`, body);
2052
+ return response.data;
2053
+ }
2054
+ async update(selector, body) {
2055
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2056
+ return response.data;
2057
+ }
2058
+ async deleteOne(selector) {
2059
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2060
+ return response.data;
2061
+ }
2062
+ };
2063
+
2064
+ // src/modules/user/maturityDates.ts
2065
+ var maturityDates_exports = {};
2066
+ __export(maturityDates_exports, {
2067
+ default: () => Repository52
2068
+ });
2069
+ var Repository52 = class {
2070
+ constructor({ api, route, publicRoute }) {
2071
+ this.api = api;
2072
+ this.route = route;
2073
+ this.publicRoute = publicRoute;
2074
+ }
2075
+ async find() {
2076
+ const response = await this.api.get(`${this.route}`);
2077
+ return response.data;
2078
+ }
2079
+ async findById(selector) {
2080
+ const response = await this.api.get(`${this.route}${selector.id}`);
2081
+ return response.data;
2082
+ }
2083
+ async findMinified(params) {
2084
+ const response = await this.api.get(`${this.route}minified`, {
2085
+ params
2086
+ });
2087
+ return response.data;
2088
+ }
2089
+ async create(body) {
2090
+ const response = await this.api.post(`${this.route}`, body);
2091
+ return response.data;
2092
+ }
2093
+ async update(selector, body) {
2094
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2095
+ return response.data;
2096
+ }
2097
+ async deleteOne(selector) {
2098
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2099
+ return response.data;
2100
+ }
2101
+ };
2102
+
2103
+ // src/modules/user/paymentMethods.ts
2104
+ var paymentMethods_exports = {};
2105
+ __export(paymentMethods_exports, {
2106
+ default: () => Repository53
2107
+ });
2108
+ var Repository53 = class {
2109
+ constructor({ api, route, publicRoute }) {
2110
+ this.api = api;
2111
+ this.route = route;
2112
+ this.publicRoute = publicRoute;
2113
+ }
2114
+ async find() {
2115
+ const response = await this.api.get(`${this.route}`);
2116
+ return response.data;
2117
+ }
2118
+ async findById(selector) {
2119
+ const response = await this.api.get(`${this.route}${selector.id}`);
2120
+ return response.data;
2121
+ }
2122
+ async findMinified(params) {
2123
+ const response = await this.api.get(`${this.route}minified`, {
2124
+ params
2125
+ });
2126
+ return response.data;
2127
+ }
2128
+ async create(body) {
2129
+ const response = await this.api.post(`${this.route}`, body);
2130
+ return response.data;
2131
+ }
2132
+ async update(selector, body) {
2133
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2134
+ return response.data;
2135
+ }
2136
+ async deleteOne(selector) {
2137
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2138
+ return response.data;
2139
+ }
2140
+ };
2141
+
2142
+ // src/modules/user/vehicles.ts
2143
+ var vehicles_exports = {};
2144
+ __export(vehicles_exports, {
2145
+ default: () => Repository54
2146
+ });
2147
+ var Repository54 = class {
2148
+ constructor({ api, route, publicRoute }) {
2149
+ this.api = api;
2150
+ this.route = route;
2151
+ this.publicRoute = publicRoute;
2152
+ }
2153
+ async find() {
2154
+ const response = await this.api.get(`${this.route}`);
2155
+ return response.data;
2156
+ }
2157
+ async create(body) {
2158
+ const response = await this.api.post(`${this.route}`, body);
2159
+ return response.data;
2160
+ }
2161
+ async update(selector, body) {
2162
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2163
+ return response.data;
2164
+ }
2165
+ async deleteOne(selector) {
2166
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2167
+ return response.data;
2168
+ }
2169
+ };
2170
+
2171
+ // src/modules/supply/externalDocumentType.ts
2172
+ var externalDocumentType_exports = {};
2173
+ __export(externalDocumentType_exports, {
2174
+ default: () => Repository55
2175
+ });
2176
+ var Repository55 = class {
2177
+ constructor({ api, route, publicRoute }) {
2178
+ this.api = api;
2179
+ this.route = route;
2180
+ this.publicRoute = publicRoute;
2181
+ }
2182
+ async find() {
2183
+ const response = await this.api.get(`${this.route}`);
2184
+ return response.data;
2185
+ }
2186
+ async findMinified(params) {
2187
+ const response = await this.api.get(`${this.route}minified`, { params });
2188
+ return response.data;
2189
+ }
2190
+ };
2191
+
2192
+ // src/modules/supply/documentSet.ts
2193
+ var documentSet_exports = {};
2194
+ __export(documentSet_exports, {
2195
+ default: () => Repository56
2196
+ });
2197
+ var Repository56 = class {
2198
+ constructor({ api, route, publicRoute }) {
2199
+ this.api = api;
2200
+ this.route = route;
2201
+ this.publicRoute = publicRoute;
2202
+ }
2203
+ async find() {
2204
+ const response = await this.api.get(`${this.route}`);
2205
+ return response.data;
2206
+ }
2207
+ async findById(selector) {
2208
+ const response = await this.api.get(`${this.route}${selector.id}`);
2209
+ return response.data;
2210
+ }
2211
+ async findMinified(params) {
2212
+ const response = await this.api.get(`${this.route}minified`, { params });
2213
+ return response.data;
2214
+ }
2215
+ async create(body) {
2216
+ const response = await this.api.post(`${this.route}`, body);
2217
+ return response.data;
2218
+ }
2219
+ async update(selector, body) {
2220
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2221
+ return response.data;
2222
+ }
2223
+ async deleteOne(selector) {
2224
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2225
+ return response.data;
2226
+ }
2227
+ };
2228
+
2229
+ // src/modules/supply/payment.ts
2230
+ var payment_exports = {};
2231
+ __export(payment_exports, {
2232
+ default: () => Repository57
2233
+ });
2234
+ var Repository57 = class {
2235
+ constructor({ api, route, publicRoute }) {
2236
+ this.api = api;
2237
+ this.route = route;
2238
+ this.publicRoute = publicRoute;
2239
+ }
2240
+ async find(params) {
2241
+ const response = await this.api.get(`${this.route}`, { params });
2242
+ return response.data;
2243
+ }
2244
+ async findPaginated(params) {
2245
+ const response = await this.api.get(`${this.route}paginated`, { params });
2246
+ return response.data;
2247
+ }
2248
+ async findByOwnerId(params) {
2249
+ const response = await this.api.get(`${this.route}by_owner`, {
2250
+ params
2251
+ });
2252
+ return response.data;
2253
+ }
2254
+ async findById(selector) {
2255
+ const response = await this.api.get(`${this.route}${selector.id}`);
2256
+ return response.data;
2257
+ }
2258
+ async deleteBatch(selector) {
2259
+ const response = await this.api.delete(`${this.route}delete_batch${selector.id}`);
2260
+ return response.data;
2261
+ }
2262
+ async findCurrentAccountByOwnerId(params) {
2263
+ const response = await this.api.get(`${this.route}current_account`, {
2264
+ params
2265
+ });
2266
+ return response.data;
2267
+ }
2268
+ async findBalanceByOwnerId(params) {
2269
+ const response = await this.api.get(`${this.route}balance`, {
2270
+ params
2271
+ });
2272
+ return response.data;
2273
+ }
2274
+ async findSettledMaterialEntrance(params) {
2275
+ const response = await this.api.get(`${this.route}settled_material_entrance`, {
2276
+ params
2277
+ });
2278
+ return response.data;
2279
+ }
2280
+ async findSettledMaterialEntranceProviders() {
2281
+ const response = await this.api.get(`${this.route}settled_material_entrance_providers`);
2282
+ return response.data;
2283
+ }
2284
+ async createProvidersPayments(body) {
2285
+ const response = await this.api.post(`${this.route}provider`, body);
2286
+ return response.data;
2287
+ }
2288
+ async findPaymentsNotExported(params) {
2289
+ const response = await this.api.get(`${this.route}not_exported`, {
2290
+ params
2291
+ });
2292
+ return response.data;
2293
+ }
2294
+ async findPaymentBatches() {
2295
+ const response = await this.api.get(`${this.route}batches`);
2296
+ return response.data;
2297
+ }
2298
+ async updateDownloadedBatchNumber(params) {
2299
+ await this.api.put(`${this.route}downloaded_batch_number/${params}`);
2300
+ }
2301
+ async exportCurrentAccount(params) {
2302
+ const response = await this.api.get(`${this.publicRoute}export_current_account`, {
2303
+ params
2304
+ });
2305
+ return response.data;
2306
+ }
2307
+ async findSettledMaterialEntranceByDate(params) {
2308
+ const response = await this.api.get(`${this.route}settled_material_entrance_by_date`, {
2309
+ params
2310
+ });
2311
+ return response.data;
2312
+ }
2313
+ async exportPayments(body) {
2314
+ await this.api.post(`${this.route}export_payments`, body);
2315
+ }
2316
+ getExportCurrentAccountUrl({
2317
+ owner_id,
2318
+ start_date,
2319
+ end_date,
2320
+ output,
2321
+ token
2322
+ }) {
2323
+ const qs = new URLSearchParams();
2324
+ qs.set("owner_id", owner_id);
2325
+ qs.set("output", output);
2326
+ if (start_date) qs.set("start_date", start_date.toISOString());
2327
+ if (end_date) qs.set("end_date", end_date.toISOString());
2328
+ qs.set("token", token);
2329
+ return `${this.publicRoute}export_current_account?${qs.toString()}`;
2330
+ }
2331
+ async findCurrentAccountPaginated(params) {
2332
+ const response = await this.api.get(`${this.route}current_account_paginated`, {
2333
+ params
2334
+ });
2335
+ return response.data;
2336
+ }
2337
+ };
2338
+
2339
+ // src/modules/supply/externalDocumentHeader.ts
2340
+ var externalDocumentHeader_exports = {};
2341
+ __export(externalDocumentHeader_exports, {
2342
+ default: () => Repository58
2343
+ });
2344
+ var Repository58 = class {
2345
+ constructor({ api, route, publicRoute }) {
2346
+ this.api = api;
2347
+ this.route = route;
2348
+ this.publicRoute = publicRoute;
2349
+ }
2350
+ async create(body) {
2351
+ const response = await this.api.post(`${this.route}`, body);
2352
+ return response.data;
2353
+ }
2354
+ async update(selector, body) {
2355
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2356
+ return response.data;
2357
+ }
2358
+ async findById(selector) {
2359
+ const response = await this.api.get(`${this.route}${selector.id}`);
2360
+ return response.data;
2361
+ }
2362
+ async findByOwnerId(params) {
2363
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2364
+ return response.data;
2365
+ }
2366
+ async publicFindByOwnerId(params) {
2367
+ const response = await this.api.get(`${this.route}public_by_owner`, {
2368
+ params
2369
+ });
2370
+ return response.data;
2371
+ }
2372
+ async find(params) {
2373
+ const response = await this.api.get(`${this.route}`, { params });
2374
+ return response.data;
2375
+ }
2376
+ async findPaginated(params) {
2377
+ const response = await this.api.get(`${this.route}paginated`, { params });
2378
+ return response.data;
2379
+ }
2380
+ async deleteOne(params) {
2381
+ const response = await this.api.get(`${this.route}`, { params });
2382
+ return response.data;
2383
+ }
2384
+ async sendEmailDocument(body) {
2385
+ await this.api.post(`${this.route}sendEmail`, body);
2386
+ }
2387
+ async createDocumentHeaderNote(data) {
2388
+ const response = await this.api.post(`${this.route}public_document_header_note`, data);
2389
+ return response.data;
2390
+ }
2391
+ async updateDocumentHeaderNote({ id }, data) {
2392
+ const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
2393
+ return response.data;
2394
+ }
2395
+ };
2396
+
2397
+ // src/modules/supply/clientCurrentAccount.ts
2398
+ var clientCurrentAccount_exports = {};
2399
+ __export(clientCurrentAccount_exports, {
2400
+ default: () => Repository59
2401
+ });
2402
+ var Repository59 = class {
2403
+ constructor({ api, route, publicRoute }) {
2404
+ this.api = api;
2405
+ this.route = route;
2406
+ this.publicRoute = publicRoute;
2407
+ }
2408
+ async findByOwnerId(params) {
2409
+ const response = await this.api.get(`${this.route}by_owner`, {
2410
+ params
2411
+ });
2412
+ return response.data;
2413
+ }
2414
+ async findFaturaPorPagar(params) {
2415
+ const response = await this.api.get(`${this.route}fatura_por_pagar`, {
2416
+ params
2417
+ });
2418
+ return response.data;
2419
+ }
2420
+ async pagarFatura(data) {
2421
+ await this.api.post(`${this.route}pagar_fatura`, data);
2422
+ }
2423
+ async findFaturaParaDevolver(params) {
2424
+ const response = await this.api.get(`${this.route}fatura_para_devolver`, {
2425
+ params
2426
+ });
2427
+ return response.data;
2428
+ }
2429
+ async devolver(data) {
2430
+ await this.api.post(`${this.route}devolver`, data);
2431
+ }
2432
+ async findByBasicSearch(params) {
2433
+ const response = await this.api.get(`${this.route}basic_search`, {
2434
+ params
2435
+ });
2436
+ return response.data;
2437
+ }
2438
+ async regularizarMultiplosDocumentos(data) {
2439
+ await this.api.post(`${this.route}multiple_documents`, {
2440
+ data
2441
+ });
2442
+ }
2443
+ };
2444
+
2445
+ // src/modules/supply/providerCurrentAccount.ts
2446
+ var providerCurrentAccount_exports = {};
2447
+ __export(providerCurrentAccount_exports, {
2448
+ default: () => Repository60
2449
+ });
2450
+ var Repository60 = class {
2451
+ constructor({ api, route, publicRoute }) {
2452
+ this.api = api;
2453
+ this.route = route;
2454
+ this.publicRoute = publicRoute;
2455
+ }
2456
+ async findByOwnerId(params) {
2457
+ const response = await this.api.get(`${this.route}by_owner`, {
2458
+ params
2459
+ });
2460
+ return response.data;
2461
+ }
2462
+ };
2463
+
2464
+ // src/modules/supply/vatValidation.ts
2465
+ var vatValidation_exports = {};
2466
+ __export(vatValidation_exports, {
2467
+ default: () => Repository61
2468
+ });
2469
+ var Repository61 = class {
2470
+ constructor({ api, route, publicRoute }) {
2471
+ this.api = api;
2472
+ this.route = route;
2473
+ this.publicRoute = publicRoute;
2474
+ }
2475
+ async findByLatest(nif) {
2476
+ const response = await this.api.get(`${this.route}`, {
2477
+ params: {
2478
+ nif
2479
+ }
2480
+ });
2481
+ return response.data;
2482
+ }
2483
+ };
2484
+
2485
+ // src/modules/stock/stockMovement.ts
2486
+ var stockMovement_exports = {};
2487
+ __export(stockMovement_exports, {
2488
+ default: () => Repository62
2489
+ });
2490
+ var Repository62 = class {
2491
+ constructor({ api, route, publicRoute }) {
2492
+ this.api = api;
2493
+ this.route = route;
2494
+ this.publicRoute = publicRoute;
2495
+ }
2496
+ async findByProvider({
2497
+ id
2498
+ }) {
2499
+ const response = await this.api.get(`${this.route}${id}`);
2500
+ return response.data;
2501
+ }
2502
+ async findByOwnerId(params) {
2503
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2504
+ return response.data;
2505
+ }
2506
+ async exportCsv(params) {
2507
+ const response = await this.api.get(`${this.route}csv`, { params });
2508
+ return response.data;
2509
+ }
2510
+ getStockCsvUrl({ date, version, format, token }) {
2511
+ const qs = new URLSearchParams();
2512
+ qs.set("date", date.toISOString());
2513
+ qs.set("version", version);
2514
+ qs.set("format", format);
2515
+ qs.set("token", token);
2516
+ return `${this.publicRoute}csv?${qs.toString()}`;
2517
+ }
2518
+ async findStockMovementPaginated(params) {
2519
+ const response = await this.api.get(`${this.route}stock_movement_paginated`, { params });
2520
+ return response.data;
2521
+ }
2522
+ };
2523
+
2524
+ // src/modules/user/zipCode.ts
2525
+ var zipCode_exports = {};
2526
+ __export(zipCode_exports, {
2527
+ default: () => Repository63
2528
+ });
2529
+ var Repository63 = class {
2530
+ constructor({ api, route, publicRoute }) {
2531
+ this.api = api;
2532
+ this.route = route;
2533
+ this.publicRoute = publicRoute;
2534
+ }
2535
+ async create(body) {
2536
+ await this.api.post(`${this.route}`, body);
2537
+ }
2538
+ async findByPostalCode(params) {
2539
+ const response = await this.api.get(`${this.route}`, { params });
2540
+ return response.data;
2541
+ }
2542
+ };
2543
+
2544
+ // src/modules/user/tenant.ts
2545
+ var tenant_exports = {};
2546
+ __export(tenant_exports, {
2547
+ default: () => Repository64
2548
+ });
2549
+ var Repository64 = class {
2550
+ constructor({ api, route, publicRoute }) {
2551
+ this.api = api;
2552
+ this.route = route;
2553
+ this.publicRoute = publicRoute;
2554
+ }
2555
+ async create(body) {
2556
+ const response = await this.api.post(`${this.route}`, body);
2557
+ return response.data;
2558
+ }
2559
+ async find() {
2560
+ const response = await this.api.get(`${this.route}`);
2561
+ return response.data;
2562
+ }
2563
+ async findById(selector) {
2564
+ const response = await this.api.get(`${this.route}${selector.id}`);
2565
+ return response.data;
2566
+ }
2567
+ async update(selector, body) {
2568
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2569
+ return response.data;
2570
+ }
2571
+ };
2572
+
2573
+ // src/modules/supply/preSale.ts
2574
+ var preSale_exports = {};
2575
+ __export(preSale_exports, {
2576
+ default: () => Repository65
2577
+ });
2578
+ var Repository65 = class {
2579
+ constructor({ api, route, publicRoute }) {
2580
+ this.api = api;
2581
+ this.route = route;
2582
+ this.publicRoute = publicRoute;
2583
+ }
2584
+ async find(selector) {
2585
+ const response = await this.api.get(`${this.route}by_user/${selector.created_by}`);
2586
+ return response.data;
2587
+ }
2588
+ async findById(selector) {
2589
+ const response = await this.api.get(`${this.route}${selector.id}`);
2590
+ return response.data;
2591
+ }
2592
+ async findPending() {
2593
+ const response = await this.api.get(`${this.route}pending`);
2594
+ return response.data;
2595
+ }
2596
+ async create(body) {
2597
+ const response = await this.api.post(`${this.route}`, body);
2598
+ return response.data;
2599
+ }
2600
+ async update(selector, body) {
2601
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2602
+ return response.data;
2603
+ }
2604
+ async updatePreSaleQuantity(selector, body) {
2605
+ const response = await this.api.put(`${this.route}${selector.id}/quantity`, body);
2606
+ return response.data;
2607
+ }
2608
+ async removeProduct(selector, body) {
2609
+ const response = await this.api.put(`${this.route}product/${selector.id}`, body);
2610
+ return response.data;
2611
+ }
2612
+ async importToClientProposal(data) {
2613
+ const response = await this.api.post(`${this.route}client_proposal`, data);
2614
+ return response.data;
2615
+ }
2616
+ };
2617
+
2618
+ // src/modules/supply/preSaleProduct.ts
2619
+ var preSaleProduct_exports = {};
2620
+ __export(preSaleProduct_exports, {
2621
+ default: () => Repository66
2622
+ });
2623
+ var Repository66 = class {
2624
+ constructor({ api, route, publicRoute }) {
2625
+ this.api = api;
2626
+ this.route = route;
2627
+ this.publicRoute = publicRoute;
2628
+ }
2629
+ async find() {
2630
+ const response = await this.api.get(`${this.route}`);
2631
+ return response.data;
2632
+ }
2633
+ async findById(selector) {
2634
+ const response = await this.api.get(`${this.route}${selector.id}`);
2635
+ return response.data;
2636
+ }
2637
+ };
2638
+
2639
+ // src/modules/supply/orderManagement.ts
2640
+ var orderManagement_exports = {};
2641
+ __export(orderManagement_exports, {
2642
+ default: () => Repository67
2643
+ });
2644
+ var Repository67 = class {
2645
+ constructor({ api, route, publicRoute }) {
2646
+ this.api = api;
2647
+ this.route = route;
2648
+ this.publicRoute = publicRoute;
2649
+ }
2650
+ async findProviderProducts(params) {
2651
+ const response = await this.api.get(`${this.route}provider_products`, {
2652
+ params
2653
+ });
2654
+ return response.data;
2655
+ }
2656
+ async findAllProviderProducts() {
2657
+ const response = await this.api.get(`${this.route}all_provider_products`);
2658
+ return response.data;
2659
+ }
2660
+ };
2661
+
2662
+ // src/modules/print/npc.ts
2663
+ var npc_exports = {};
2664
+ __export(npc_exports, {
2665
+ default: () => Repository68
2666
+ });
2667
+ var Repository68 = class {
2668
+ constructor({ api, route, publicRoute }) {
2669
+ this.api = api;
2670
+ this.route = route;
2671
+ this.publicRoute = publicRoute;
2672
+ }
2673
+ async find() {
2674
+ const response = await this.api.get(`${this.route}`);
2675
+ return response.data;
2676
+ }
2677
+ async update(selector, body) {
2678
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2679
+ return response.data;
2680
+ }
2681
+ async findPrintJobsForComputerId(selector) {
2682
+ const response = await this.api.get(
2683
+ `${this.route}find_print_jobs_for_computer_id/${selector.computer_id}`
2684
+ );
2685
+ return response.data;
2686
+ }
2687
+ };
2688
+
2689
+ // src/modules/print/printer.ts
2690
+ var printer_exports = {};
2691
+ __export(printer_exports, {
2692
+ default: () => Repository69
2693
+ });
2694
+ var Repository69 = class {
2695
+ constructor({ api, route, publicRoute }) {
2696
+ this.api = api;
2697
+ this.route = route;
2698
+ this.publicRoute = publicRoute;
2699
+ }
2700
+ async find() {
2701
+ const response = await this.api.get(`${this.route}`);
2702
+ return response.data;
2703
+ }
2704
+ async findByOwnerId(params) {
2705
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2706
+ return response.data;
2707
+ }
2708
+ async update(selector, body) {
2709
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2710
+ return response.data;
2711
+ }
2712
+ async updateMany(body) {
2713
+ await this.api.put(`${this.route}update_many`, body);
2714
+ }
2715
+ async getOrSetPrinters(body) {
2716
+ const response = await this.api.post(`${this.route}get_or_set_printers`, body);
2717
+ return response.data;
2718
+ }
2719
+ };
2720
+
2721
+ // src/modules/print/schedulePrintJob.ts
2722
+ var schedulePrintJob_exports = {};
2723
+ __export(schedulePrintJob_exports, {
2724
+ default: () => Repository70
2725
+ });
2726
+ var Repository70 = class {
2727
+ constructor({ api, route, publicRoute }) {
2728
+ this.api = api;
2729
+ this.route = route;
2730
+ this.publicRoute = publicRoute;
2731
+ }
2732
+ async create(body) {
2733
+ await this.api.post(`${this.route}`, body);
2734
+ }
2735
+ async createMany(body) {
2736
+ await this.api.post(`${this.route}many`, body);
2737
+ }
2738
+ async deleteOne(selector) {
2739
+ await this.api.delete(`${this.route}${selector.id}`);
2740
+ }
2741
+ async dispatchSchedulePrintJob(body) {
2742
+ const response = await this.api.post(`${this.route}dispatch_schedule_print_job`, body);
2743
+ return response.data;
2744
+ }
2745
+ async findByOwner(params) {
2746
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2747
+ return response.data;
2748
+ }
2749
+ };
2750
+
2751
+ // src/modules/stock/queryList.ts
2752
+ var queryList_exports = {};
2753
+ __export(queryList_exports, {
2754
+ default: () => Repository71
2755
+ });
2756
+ var Repository71 = class {
2757
+ constructor({ api, route, publicRoute }) {
2758
+ this.api = api;
2759
+ this.route = route;
2760
+ this.publicRoute = publicRoute;
2761
+ }
2762
+ async find() {
2763
+ const response = await this.api.get(`${this.route}`);
2764
+ return response.data;
2765
+ }
2766
+ async findById(selector) {
2767
+ const response = await this.api.get(`${this.route}${selector.id}`);
2768
+ return response.data;
2769
+ }
2770
+ async create(body) {
2771
+ const response = await this.api.post(`${this.route}`, body);
2772
+ return response.data;
2773
+ }
2774
+ async update(selector, body) {
2775
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2776
+ return response.data;
2777
+ }
2778
+ async deleteOne(selector) {
2779
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2780
+ return response.data;
2781
+ }
2782
+ async execute(params) {
2783
+ const response = await this.api.get(`${this.route}execute`, { params });
2784
+ return response.data;
2785
+ }
2786
+ getQueryExecuteUrl({ query_id, output, token, ...data }) {
2787
+ const qs = new URLSearchParams();
2788
+ qs.set("query_id", query_id);
2789
+ qs.set("output", output);
2790
+ if (token) {
2791
+ qs.set("token", token);
2792
+ }
2793
+ Object.entries(data).forEach(([key, value]) => {
2794
+ if (typeof value === "undefined") return;
2795
+ if (value === null) return;
2796
+ qs.set(key, value.toString());
2797
+ });
2798
+ return `${this.route}execute?${qs.toString()}`;
2799
+ }
2800
+ };
2801
+
2802
+ // src/modules/stock/queryParameter.ts
2803
+ var queryParameter_exports = {};
2804
+ __export(queryParameter_exports, {
2805
+ default: () => Repository72
2806
+ });
2807
+ var Repository72 = class {
2808
+ constructor({ api, route, publicRoute }) {
2809
+ this.api = api;
2810
+ this.route = route;
2811
+ this.publicRoute = publicRoute;
2812
+ }
2813
+ async find() {
2814
+ const response = await this.api.get(`${this.route}`);
2815
+ return response.data;
2816
+ }
2817
+ async findById(selector) {
2818
+ const response = await this.api.get(`${this.route}${selector.id}`);
2819
+ return response.data;
2820
+ }
2821
+ async create(body) {
2822
+ const response = await this.api.post(`${this.route}`, body);
2823
+ return response.data;
2824
+ }
2825
+ async update(selector, body) {
2826
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2827
+ return response.data;
2828
+ }
2829
+ async deleteOne(selector) {
2830
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2831
+ return response.data;
2832
+ }
2833
+ async findByOwnerId(params) {
2834
+ const response = await this.api.get(`${this.route}by_owner`, { params });
2835
+ return response.data;
2836
+ }
2837
+ };
2838
+
2839
+ // src/modules/stock/returnReason.ts
2840
+ var returnReason_exports = {};
2841
+ __export(returnReason_exports, {
2842
+ default: () => Repository73
2843
+ });
2844
+ var Repository73 = class {
2845
+ constructor({ api, route, publicRoute }) {
2846
+ this.api = api;
2847
+ this.route = route;
2848
+ this.publicRoute = publicRoute;
2849
+ }
2850
+ async create(body) {
2851
+ const response = await this.api.post(`${this.route}`, body);
2852
+ return response.data;
2853
+ }
2854
+ async update(selector, body) {
2855
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
2856
+ return response.data;
2857
+ }
2858
+ async find() {
2859
+ const response = await this.api.get(`${this.route}`);
2860
+ return response.data;
2861
+ }
2862
+ async deleteOne(selector) {
2863
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2864
+ return response.data;
2865
+ }
2866
+ };
2867
+
2868
+ // src/modules/document/propostaSheets.ts
2869
+ var propostaSheets_exports = {};
2870
+ __export(propostaSheets_exports, {
2871
+ default: () => Repository74
2872
+ });
2873
+ var Repository74 = class {
2874
+ constructor({ api, route, publicRoute }) {
2875
+ this.api = api;
2876
+ this.route = route;
2877
+ this.publicRoute = publicRoute;
2878
+ }
2879
+ async isProcessing(params) {
2880
+ const response = await this.api.get(`${this.route}is_processing`, {
2881
+ params
2882
+ });
2883
+ return response.data;
2884
+ }
2885
+ async importFromSheet(params) {
2886
+ const response = await this.api.post(`${this.route}import_from_sheet`, {
2887
+ params
2888
+ });
2889
+ return response.data;
2890
+ }
2891
+ async createSheetFromDocument(params) {
2892
+ const response = await this.api.post(`${this.route}create_sheet_from_document`, params);
2893
+ return response.data;
2894
+ }
2895
+ async cloneSheetsToNewDocument(params) {
2896
+ const response = await this.api.post(`${this.route}clone_sheet_to_new_document`, params);
2897
+ return response.data;
2898
+ }
2899
+ async conflictAccept(params) {
2900
+ await this.api.post(`${this.route}conflict_accept`, params);
2901
+ }
2902
+ async conflictDelete(data) {
2903
+ await this.api.delete(`${this.route}conflict_delete`, {
2904
+ data
2905
+ });
2906
+ }
2907
+ async conflictFindByOwnerId(params) {
2908
+ const response = await this.api.get(`${this.route}conflict_find_by_owner_id`, {
2909
+ params
2910
+ });
2911
+ return response.data;
2912
+ }
2913
+ async rmGetDataBySheetId(params) {
2914
+ const response = await this.api.get(`${this.route}rm_data_by_sheet_id/${params.id}`);
2915
+ return response.data;
2916
+ }
2917
+ async rmUpdateDataBySheetId(params, body) {
2918
+ await this.api.post(`${this.route}rm_data_by_sheet_id/${params.id}`, body);
2919
+ }
2920
+ };
2921
+
2922
+ // src/modules/stock/schedule.ts
2923
+ var schedule_exports = {};
2924
+ __export(schedule_exports, {
2925
+ default: () => Repository75
2926
+ });
2927
+ var Repository75 = class {
2928
+ constructor({ api, route, publicRoute }) {
2929
+ this.api = api;
2930
+ this.route = route;
2931
+ this.publicRoute = publicRoute;
2932
+ }
2933
+ async runImmediately(selector) {
2934
+ await this.api.post(`${this.route}${selector.scheduleType}`);
2935
+ }
2936
+ };
2937
+
2938
+ // src/modules/integration/googleFilePermission.ts
2939
+ var googleFilePermission_exports = {};
2940
+ __export(googleFilePermission_exports, {
2941
+ default: () => Repository76
2942
+ });
2943
+ var Repository76 = class {
2944
+ constructor({ api, route, publicRoute }) {
2945
+ this.api = api;
2946
+ this.route = route;
2947
+ this.publicRoute = publicRoute;
2948
+ }
2949
+ async create(body) {
2950
+ const response = await this.api.post(`${this.route}`, body);
2951
+ return response.data;
2952
+ }
2953
+ async find() {
2954
+ const response = await this.api.get(`${this.route}`);
2955
+ return response.data;
2956
+ }
2957
+ async findById(selector) {
2958
+ const response = await this.api.get(`${this.route}${selector.id}`);
2959
+ return response.data;
2960
+ }
2961
+ async deleteOne(selector) {
2962
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2963
+ return response.data;
2964
+ }
2965
+ };
2966
+
2967
+ // src/modules/integration/settings.ts
2968
+ var settings_exports = {};
2969
+ __export(settings_exports, {
2970
+ default: () => Repository77
2971
+ });
2972
+ var Repository77 = class {
2973
+ constructor({ api, route, publicRoute }) {
2974
+ this.api = api;
2975
+ this.route = route;
2976
+ this.publicRoute = publicRoute;
2977
+ }
2978
+ async create(body) {
2979
+ const response = await this.api.post(`${this.route}`, body);
2980
+ return response.data;
2981
+ }
2982
+ async findByKey(params) {
2983
+ const response = await this.api.get(`${this.publicRoute}by_key`, {
2984
+ params
2985
+ });
2986
+ return response.data;
2987
+ }
2988
+ async update(body) {
2989
+ const response = await this.api.put(`${this.route}`, body);
2990
+ return response.data;
2991
+ }
2992
+ async deleteOne(selector) {
2993
+ const response = await this.api.delete(`${this.route}${selector.id}`);
2994
+ return response.data;
2995
+ }
2996
+ async find() {
2997
+ const response = await this.api.get(`${this.route}`);
2998
+ return response.data;
2999
+ }
3000
+ };
3001
+
3002
+ // src/modules/tickets/tickets.ts
3003
+ var tickets_exports = {};
3004
+ __export(tickets_exports, {
3005
+ default: () => Repository78
3006
+ });
3007
+ var Repository78 = class {
3008
+ constructor({ api, route, publicRoute }) {
3009
+ this.api = api;
3010
+ this.route = route;
3011
+ this.publicRoute = publicRoute;
3012
+ }
3013
+ async create(body) {
3014
+ const response = await this.api.post(`${this.route}`, body);
3015
+ return response.data;
3016
+ }
3017
+ async findToday() {
3018
+ const response = await this.api.get(`${this.route}find_today`);
3019
+ return response.data;
3020
+ }
3021
+ async update(body) {
3022
+ const response = await this.api.put(`${this.route}`, body);
3023
+ return response.data;
3024
+ }
3025
+ async undoLastCall() {
3026
+ const response = await this.api.put(`${this.route}undo_last_call`);
3027
+ return response.data;
3028
+ }
3029
+ };
3030
+
3031
+ // src/modules/tickets/channel.ts
3032
+ var channel_exports = {};
3033
+ __export(channel_exports, {
3034
+ default: () => Repository79
3035
+ });
3036
+ var Repository79 = class {
3037
+ constructor({ api, route, publicRoute }) {
3038
+ this.api = api;
3039
+ this.route = route;
3040
+ this.publicRoute = publicRoute;
3041
+ }
3042
+ async create(body) {
3043
+ const response = await this.api.post(`${this.route}`, body);
3044
+ return response.data;
3045
+ }
3046
+ async find() {
3047
+ const response = await this.api.get(`${this.route}`);
3048
+ return response.data;
3049
+ }
3050
+ async findMinified(params) {
3051
+ const response = await this.api.get(`${this.route}minified`, {
3052
+ params
3053
+ });
3054
+ return response.data;
3055
+ }
3056
+ async findById(id) {
3057
+ const response = await this.api.get(`${this.route}${id}`);
3058
+ return response.data;
3059
+ }
3060
+ async update(id, body) {
3061
+ await this.api.post(`${this.route}${id}`, body);
3062
+ }
3063
+ async deleteOne(id) {
3064
+ await this.api.delete(`${this.route}${id}`);
3065
+ }
3066
+ };
3067
+
3068
+ // src/modules/tickets/language.ts
3069
+ var language_exports2 = {};
3070
+ __export(language_exports2, {
3071
+ default: () => Repository80
3072
+ });
3073
+ var Repository80 = class {
3074
+ constructor({ api, route, publicRoute }) {
3075
+ this.api = api;
3076
+ this.route = route;
3077
+ this.publicRoute = publicRoute;
3078
+ }
3079
+ async create(body) {
3080
+ const response = await this.api.post(`${this.route}`, body);
3081
+ return response.data;
3082
+ }
3083
+ async find() {
3084
+ const response = await this.api.get(`${this.route}`);
3085
+ return response.data;
3086
+ }
3087
+ async findMinified(params) {
3088
+ const response = await this.api.get(`${this.route}minified`, {
3089
+ params
3090
+ });
3091
+ return response.data;
3092
+ }
3093
+ async findById(id) {
3094
+ const response = await this.api.get(`${this.route}${id}`);
3095
+ return response.data;
3096
+ }
3097
+ async update(id, body) {
3098
+ await this.api.post(`${this.route}${id}`, body);
3099
+ }
3100
+ async deleteOne(id) {
3101
+ await this.api.delete(`${this.route}${id}`);
3102
+ }
3103
+ };
3104
+
3105
+ // src/modules/tickets/clt.ts
3106
+ var clt_exports = {};
3107
+ __export(clt_exports, {
3108
+ default: () => Repository81
3109
+ });
3110
+ var Repository81 = class {
3111
+ constructor({ api, route, publicRoute }) {
3112
+ this.api = api;
3113
+ this.route = route;
3114
+ this.publicRoute = publicRoute;
3115
+ }
3116
+ async create(body) {
3117
+ const response = await this.api.post(`${this.route}`, body);
3118
+ return response.data;
3119
+ }
3120
+ async find() {
3121
+ const response = await this.api.get(`${this.route}`);
3122
+ return response.data;
3123
+ }
3124
+ async findMinified(params) {
3125
+ const response = await this.api.get(`${this.route}minified`, {
3126
+ params
3127
+ });
3128
+ return response.data;
3129
+ }
3130
+ async findById(id) {
3131
+ const response = await this.api.get(`${this.route}${id}`);
3132
+ return response.data;
3133
+ }
3134
+ async update(id, body) {
3135
+ await this.api.post(`${this.route}${id}`, body);
3136
+ }
3137
+ async deleteOne(id) {
3138
+ await this.api.delete(`${this.route}${id}`);
3139
+ }
3140
+ };
3141
+
3142
+ // src/modules/supply/startDocumentHeaderLastUpdate.ts
3143
+ var startDocumentHeaderLastUpdate_exports = {};
3144
+ __export(startDocumentHeaderLastUpdate_exports, {
3145
+ default: () => Repository82
3146
+ });
3147
+ var Repository82 = class {
3148
+ constructor({ api, route, publicRoute }) {
3149
+ this.api = api;
3150
+ this.route = route;
3151
+ this.publicRoute = publicRoute;
3152
+ }
3153
+ async findById(selector) {
3154
+ const response = await this.api.get(`${this.route}${selector.id}`);
3155
+ return response.data;
3156
+ }
3157
+ };
3158
+
3159
+ // src/modules/user/persona.ts
3160
+ var persona_exports = {};
3161
+ __export(persona_exports, {
3162
+ default: () => Repository83
3163
+ });
3164
+ var Repository83 = class {
3165
+ constructor({ api, route, publicRoute }) {
3166
+ this.api = api;
3167
+ this.route = route;
3168
+ this.publicRoute = publicRoute;
3169
+ }
3170
+ async findByOwnerId(params) {
3171
+ const response = await this.api.get(`${this.route}by_owner`, {
3172
+ params
3173
+ });
3174
+ return response.data;
3175
+ }
3176
+ async findById(selector) {
3177
+ const response = await this.api.get(`${this.route}${selector.id}`);
3178
+ return response.data;
3179
+ }
3180
+ async findContactPersonaByOwnerId(params) {
3181
+ const response = await this.api.get(`${this.route}contact`, { params });
3182
+ return response.data;
3183
+ }
3184
+ async create(body) {
3185
+ const response = await this.api.post(`${this.route}`, body);
3186
+ return response.data;
3187
+ }
3188
+ async update(selector, body) {
3189
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3190
+ return response.data;
3191
+ }
3192
+ async deleteOne(params) {
3193
+ const response = await this.api.delete(`${this.route}`, { params });
3194
+ return response.data;
3195
+ }
3196
+ async findByBasic(params) {
3197
+ const response = await this.api.get(`${this.route}basic_search`, {
3198
+ params
3199
+ });
3200
+ return response.data;
3201
+ }
3202
+ async find(data) {
3203
+ const response = await this.api.get(`${this.route}`, {
3204
+ data
3205
+ });
3206
+ return response.data;
3207
+ }
3208
+ async findByEmail(data) {
3209
+ const response = await this.api.get(`${this.route}by_email`, {
3210
+ data
3211
+ });
3212
+ return response.data;
3213
+ }
3214
+ };
3215
+
3216
+ // src/modules/integration/projectInfo.ts
3217
+ var projectInfo_exports = {};
3218
+ __export(projectInfo_exports, {
3219
+ default: () => Repository84
3220
+ });
3221
+ var Repository84 = class {
3222
+ constructor({ api, route, publicRoute }) {
3223
+ this.api = api;
3224
+ this.route = route;
3225
+ this.publicRoute = publicRoute;
3226
+ }
3227
+ async sendEmail(body) {
3228
+ await this.api.post(`${this.route}sendEmail`, body);
3229
+ }
3230
+ };
3231
+
3232
+ // src/modules/document/order.ts
3233
+ var order_exports = {};
3234
+ __export(order_exports, {
3235
+ default: () => Repository85
3236
+ });
3237
+ var Repository85 = class {
3238
+ constructor({ api, route, publicRoute }) {
3239
+ this.api = api;
3240
+ this.route = route;
3241
+ this.publicRoute = publicRoute;
3242
+ }
3243
+ async unsetCativado(params) {
3244
+ const response = await this.api.post(`${this.route}unset_cativado`, {
3245
+ params
3246
+ });
3247
+ return response.data;
3248
+ }
3249
+ async findStockToOrder(params) {
3250
+ const response = await this.api.get(`${this.route}check_lines_to_order`, {
3251
+ params
3252
+ });
3253
+ return response.data;
3254
+ }
3255
+ async findProvidersWithStockToOrder() {
3256
+ const response = await this.api.get(`${this.route}stock_order_provider`);
3257
+ return response.data;
3258
+ }
3259
+ async undoEncomendaVA(data) {
3260
+ await this.api.post(`${this.route}undo_encomenda_va`, data);
3261
+ }
3262
+ async setProvider(data) {
3263
+ await this.api.post(`${this.route}set_provider`, data);
3264
+ }
3265
+ async unsetProvider({ id }) {
3266
+ await this.api.post(`${this.route}${id}/unset_provider`);
3267
+ }
3268
+ async undoEncomendaStock(data) {
3269
+ await this.api.post(`${this.route}undo_encomenda_stock`, data);
3270
+ }
3271
+ async undoProviderOrder(data) {
3272
+ await this.api.post(`${this.route}undo_provider_order`, data);
3273
+ }
3274
+ async conferirEncomendaCliente(data) {
3275
+ const response = await this.api.post(`${this.route}check_client_order`, data);
3276
+ return response.data;
3277
+ }
3278
+ async find(params) {
3279
+ const response = await this.api.get(`${this.route}`, { params });
3280
+ return response.data;
3281
+ }
3282
+ };
3283
+
3284
+ // src/modules/document/purchase.ts
3285
+ var purchase_exports = {};
3286
+ __export(purchase_exports, {
3287
+ default: () => Repository86
3288
+ });
3289
+ var Repository86 = class {
3290
+ constructor({ api, route, publicRoute }) {
3291
+ this.api = api;
3292
+ this.route = route;
3293
+ this.publicRoute = publicRoute;
3294
+ }
3295
+ async purchaseFromProvider(data) {
3296
+ await this.api.post(`${this.route}purchase_from_provider`, data);
3297
+ }
3298
+ async findUnpaidMaterialEntrance(params) {
3299
+ const response = await this.api.get(`${this.route}unpaid_material_entrance`, {
3300
+ params
3301
+ });
3302
+ return response.data;
3303
+ }
3304
+ async findUnpaidMaterialEntranceProviders() {
3305
+ const response = await this.api.get(`${this.route}unpaid_material_entrance_providers`);
3306
+ return response.data;
3307
+ }
3308
+ async sync(data) {
3309
+ const response = await this.api.post(`${this.route}sync`, data);
3310
+ return response.data;
3311
+ }
3312
+ };
3313
+
3314
+ // src/modules/document/materialEntrance.ts
3315
+ var materialEntrance_exports = {};
3316
+ __export(materialEntrance_exports, {
3317
+ default: () => Repository87
3318
+ });
3319
+ var Repository87 = class {
3320
+ constructor({ api, route, publicRoute }) {
3321
+ this.api = api;
3322
+ this.route = route;
3323
+ this.publicRoute = publicRoute;
3324
+ }
3325
+ async findMaterialEntranceProviders() {
3326
+ const response = await this.api.get(`${this.route}material_entrance_providers`);
3327
+ return response.data;
3328
+ }
3329
+ async findUnfinishedPickings({
3330
+ id
3331
+ }) {
3332
+ const response = await this.api.get(`${this.route}unfinished_pickings/${id}`);
3333
+ return response.data;
3334
+ }
3335
+ async finalizarEntradaMaterial(data) {
3336
+ const response = await this.api.post(`${this.route}finalize_material_entrance`, data);
3337
+ return response.data;
3338
+ }
3339
+ async undoEntradaMaterial(data) {
3340
+ await this.api.post(`${this.route}undo_material_entrance`, data);
3341
+ }
3342
+ printLabelToPdfUrl({ product_id }, {
3343
+ quantity,
3344
+ ef_name,
3345
+ pc_document_number,
3346
+ prison,
3347
+ note
3348
+ }, token) {
3349
+ const qs = new URLSearchParams();
3350
+ qs.set("ef_name", ef_name);
3351
+ qs.set("quantity", quantity.toString());
3352
+ if (pc_document_number) {
3353
+ qs.set("pc_document_number", pc_document_number.toString());
3354
+ }
3355
+ if (note) {
3356
+ qs.set("note", note.toString());
3357
+ }
3358
+ qs.set("prison", prison.toString());
3359
+ qs.set("token", token);
3360
+ return `${this.publicRoute}print_label_pdf/${product_id}?${qs.toString()}`;
3361
+ }
3362
+ printBulkLabelToPdfUrl({
3363
+ groupLabel,
3364
+ saved_em_picking_ids,
3365
+ token
3366
+ }) {
3367
+ const qs = new URLSearchParams();
3368
+ qs.set("groupLabel", groupLabel.toString());
3369
+ qs.set("saved_em_picking_ids", saved_em_picking_ids);
3370
+ qs.set("token", token);
3371
+ return `${this.publicRoute}print_bulk_label_pdf?${qs.toString()}`;
3372
+ }
3373
+ };
3374
+
3375
+ // src/modules/document/transformado.ts
3376
+ var transformado_exports = {};
3377
+ __export(transformado_exports, {
3378
+ default: () => Repository88
3379
+ });
3380
+ var Repository88 = class {
3381
+ constructor({ api, route, publicRoute }) {
3382
+ this.api = api;
3383
+ this.route = route;
3384
+ this.publicRoute = publicRoute;
3385
+ }
3386
+ async create(body) {
3387
+ const response = await this.api.post(`${this.route}`, body);
3388
+ return response.data;
3389
+ }
3390
+ };
3391
+
3392
+ // src/modules/document/upfrontReturn.ts
3393
+ var upfrontReturn_exports = {};
3394
+ __export(upfrontReturn_exports, {
3395
+ default: () => Repository89
3396
+ });
3397
+ var Repository89 = class {
3398
+ constructor({ api, route, publicRoute }) {
3399
+ this.api = api;
3400
+ this.route = route;
3401
+ this.publicRoute = publicRoute;
3402
+ }
3403
+ async create(selector, data) {
3404
+ const response = await this.api.post(`${this.route}${selector.id}`, data);
3405
+ return response.data;
3406
+ }
3407
+ };
3408
+
3409
+ // src/modules/stock/savedEmPicking.ts
3410
+ var savedEmPicking_exports = {};
3411
+ __export(savedEmPicking_exports, {
3412
+ default: () => Repository90
3413
+ });
3414
+ var Repository90 = class {
3415
+ constructor({ api, route, publicRoute }) {
3416
+ this.api = api;
3417
+ this.route = route;
3418
+ this.publicRoute = publicRoute;
3419
+ }
3420
+ async create(body) {
3421
+ const response = await this.api.post(`${this.route}`, body);
3422
+ return response.data;
3423
+ }
3424
+ async createMany(body) {
3425
+ const response = await this.api.post(`${this.route}many`, body);
3426
+ return response.data;
3427
+ }
3428
+ async deleteOne(selector) {
3429
+ await this.api.delete(`${this.route}${selector.id}`);
3430
+ }
3431
+ async deleteMany(body) {
3432
+ await this.api.post(`${this.route}delete_many`, body);
3433
+ }
3434
+ };
3435
+
3436
+ // src/modules/integration/emailTemplate.ts
3437
+ var emailTemplate_exports = {};
3438
+ __export(emailTemplate_exports, {
3439
+ default: () => Repository91
3440
+ });
3441
+ var Repository91 = class {
3442
+ constructor({ api, route, publicRoute }) {
3443
+ this.api = api;
3444
+ this.route = route;
3445
+ this.publicRoute = publicRoute;
3446
+ }
3447
+ async find() {
3448
+ const response = await this.api.get(`${this.route}`);
3449
+ return response.data;
3450
+ }
3451
+ async create(data) {
3452
+ const response = await this.api.post(`${this.route}`, data);
3453
+ return response.data;
3454
+ }
3455
+ async update(selector, data) {
3456
+ const response = await this.api.put(`${this.route}${selector.id}`, data);
3457
+ return response.data;
3458
+ }
3459
+ async deleteOne(selector) {
3460
+ await this.api.delete(`${this.route}${selector.id}`);
3461
+ }
3462
+ async send(data) {
3463
+ const response = await this.api.post(`${this.route}send`, data);
3464
+ return response.data;
3465
+ }
3466
+ };
3467
+
3468
+ // src/modules/integration/emailTemplateAttachment.ts
3469
+ var emailTemplateAttachment_exports = {};
3470
+ __export(emailTemplateAttachment_exports, {
3471
+ default: () => Repository92
3472
+ });
3473
+ var Repository92 = class {
3474
+ constructor({ api, route, publicRoute }) {
3475
+ this.api = api;
3476
+ this.route = route;
3477
+ this.publicRoute = publicRoute;
3478
+ }
3479
+ async create(data) {
3480
+ const response = await this.api.post(`${this.route}`, data);
3481
+ return response.data;
3482
+ }
3483
+ async deleteOne(selector) {
3484
+ await this.api.delete(`${this.route}${selector.id}`);
3485
+ }
3486
+ };
3487
+
3488
+ // src/modules/stock/prison.ts
3489
+ var prison_exports = {};
3490
+ __export(prison_exports, {
3491
+ default: () => Repository93
3492
+ });
3493
+ var Repository93 = class {
3494
+ constructor({ api, route, publicRoute }) {
3495
+ this.api = api;
3496
+ this.route = route;
3497
+ this.publicRoute = publicRoute;
3498
+ }
3499
+ async putLineInPrison(data) {
3500
+ const response = await this.api.post(`${this.route}put_in_prison`, data);
3501
+ return response.data;
3502
+ }
3503
+ async removeLineFromPrison(data) {
3504
+ const response = await this.api.post(`${this.route}remove_from_prison`, data);
3505
+ return response.data;
3506
+ }
3507
+ async findLinesInPrison() {
3508
+ const response = await this.api.get(`${this.route}in_prison`, {});
3509
+ return response.data;
3510
+ }
3511
+ async findLinesInPrisonProviders() {
3512
+ const response = await this.api.get(`${this.route}in_prison_providers`, {});
3513
+ return response.data;
3514
+ }
3515
+ async checkLinesInPrison(data) {
3516
+ await this.api.post(`${this.route}check_in_prison`, data);
3517
+ }
3518
+ async createLinesInPrison(data) {
3519
+ const response = await this.api.post(`${this.route}create_lines`, data);
3520
+ return response.data;
3521
+ }
3522
+ };
3523
+
3524
+ // src/modules/document/quebra.ts
3525
+ var quebra_exports = {};
3526
+ __export(quebra_exports, {
3527
+ default: () => Repository94
3528
+ });
3529
+ var Repository94 = class {
3530
+ constructor({ api, route, publicRoute }) {
3531
+ this.api = api;
3532
+ this.route = route;
3533
+ this.publicRoute = publicRoute;
3534
+ }
3535
+ async findInventoryLosses() {
3536
+ const response = await this.api.get(`${this.route}`);
3537
+ return response.data;
3538
+ }
3539
+ async findInventoryLossesProviders() {
3540
+ const response = await this.api.get(`${this.route}providers`);
3541
+ return response.data;
3542
+ }
3543
+ async create(body) {
3544
+ const response = await this.api.post(`${this.route}`, body);
3545
+ return response.data;
3546
+ }
3547
+ async createMany(body) {
3548
+ const response = await this.api.post(`${this.route}create_many`, body);
3549
+ return response.data;
3550
+ }
3551
+ async deleteInventoryLosses(data) {
3552
+ await this.api.delete(`${this.route}inventory_loss`, { data });
3553
+ }
3554
+ };
3555
+
3556
+ // src/modules/document/inventario.ts
3557
+ var inventario_exports = {};
3558
+ __export(inventario_exports, {
3559
+ default: () => Repository95
3560
+ });
3561
+ var Repository95 = class {
3562
+ constructor({ api, route, publicRoute }) {
3563
+ this.api = api;
3564
+ this.route = route;
3565
+ this.publicRoute = publicRoute;
3566
+ }
3567
+ async createInventory(data) {
3568
+ await this.api.post(`${this.route}`, data);
3569
+ }
3570
+ };
3571
+
3572
+ // src/modules/document/returnToProvider.ts
3573
+ var returnToProvider_exports = {};
3574
+ __export(returnToProvider_exports, {
3575
+ default: () => Repository96
3576
+ });
3577
+ var Repository96 = class {
3578
+ constructor({ api, route, publicRoute }) {
3579
+ this.api = api;
3580
+ this.route = route;
3581
+ this.publicRoute = publicRoute;
3582
+ }
3583
+ async findLinesToReturn(params) {
3584
+ const response = await this.api.get(`${this.route}lines_to_return`, {
3585
+ params
3586
+ });
3587
+ return response.data;
3588
+ }
3589
+ async findLinesToReturnProviders() {
3590
+ const response = await this.api.get(`${this.route}lines_to_return_providers`);
3591
+ return response.data;
3592
+ }
3593
+ async checkLinesToReturn(data) {
3594
+ await this.api.post(`${this.route}check_to_return`, data);
3595
+ }
3596
+ };
3597
+
3598
+ // src/modules/integration/emailVerification.ts
3599
+ var emailVerification_exports = {};
3600
+ __export(emailVerification_exports, {
3601
+ default: () => Repository97
3602
+ });
3603
+ var Repository97 = class {
3604
+ constructor({ api, route, publicRoute }) {
3605
+ this.api = api;
3606
+ this.route = route;
3607
+ this.publicRoute = publicRoute;
3608
+ }
3609
+ async isVerified(params) {
3610
+ const response = await this.api.get(`${this.route}`, { params });
3611
+ return response.data;
3612
+ }
3613
+ async sendVerificationEmail(data) {
3614
+ const response = await this.api.post(`${this.route}`, data);
3615
+ return response.data;
3616
+ }
3617
+ async markAsVerified(data) {
3618
+ const response = await this.api.put(`${this.publicRoute}`, data);
3619
+ return response.data;
3620
+ }
3621
+ };
3622
+
3623
+ // src/modules/integration/emailLog.ts
3624
+ var emailLog_exports = {};
3625
+ __export(emailLog_exports, {
3626
+ default: () => Repository98
3627
+ });
3628
+ var Repository98 = class {
3629
+ constructor({ api, route, publicRoute }) {
3630
+ this.api = api;
3631
+ this.route = route;
3632
+ this.publicRoute = publicRoute;
3633
+ }
3634
+ async find(params) {
3635
+ const response = await this.api.get(`${this.route}`, { params });
3636
+ return response.data;
3637
+ }
3638
+ async findById({
3639
+ id
3640
+ }) {
3641
+ const response = await this.api.get(`${this.route}${id}`);
3642
+ return response.data;
3643
+ }
3644
+ async findByDocumentHeaderId({
3645
+ id
3646
+ }) {
3647
+ const response = await this.api.get(`${this.route}document_header/${id}`);
3648
+ return response.data;
3649
+ }
3650
+ async checkSent(body) {
3651
+ const response = await this.api.post(`${this.route}check_sent`, body);
3652
+ return response.data;
3653
+ }
3654
+ };
3655
+
3656
+ // src/modules/supply/documentLineNote.ts
3657
+ var documentLineNote_exports = {};
3658
+ __export(documentLineNote_exports, {
3659
+ default: () => Repository99
3660
+ });
3661
+ var Repository99 = class {
3662
+ constructor({ api, route, publicRoute }) {
3663
+ this.api = api;
3664
+ this.route = route;
3665
+ this.publicRoute = publicRoute;
3666
+ }
3667
+ async create(body) {
3668
+ const response = await this.api.post(`${this.route}`, body);
3669
+ return response.data;
3670
+ }
3671
+ async update(selector, body) {
3672
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3673
+ return response.data;
3674
+ }
3675
+ async deleteOne(selector) {
3676
+ const response = await this.api.delete(`${this.route}${selector.id}`);
3677
+ return response.data;
3678
+ }
3679
+ };
3680
+
3681
+ // src/modules/stock/savedProviderProposal.ts
3682
+ var savedProviderProposal_exports = {};
3683
+ __export(savedProviderProposal_exports, {
3684
+ default: () => Repository100
3685
+ });
3686
+ var Repository100 = class {
3687
+ constructor({ api, route, publicRoute }) {
3688
+ this.api = api;
3689
+ this.route = route;
3690
+ this.publicRoute = publicRoute;
3691
+ }
3692
+ async findByProviderId(selector) {
3693
+ const response = await this.api.get(`${this.route}${selector.id}`);
3694
+ return response.data;
3695
+ }
3696
+ async create(body) {
3697
+ const response = await this.api.post(`${this.route}`, body);
3698
+ return response.data;
3699
+ }
3700
+ async update(selector, body) {
3701
+ const response = await this.api.put(`${this.route}${selector.id}`, body);
3702
+ return response.data;
3703
+ }
3704
+ async deleteOne(selector) {
3705
+ const response = await this.api.delete(`${this.route}${selector.id}`);
3706
+ return response.data;
3707
+ }
3708
+ };
3709
+
3710
+ // src/modules/stock/productGoogleSheets.ts
3711
+ var productGoogleSheets_exports = {};
3712
+ __export(productGoogleSheets_exports, {
3713
+ default: () => Repository101
3714
+ });
3715
+ var Repository101 = class {
3716
+ constructor({ api, route, publicRoute }) {
3717
+ this.api = api;
3718
+ this.route = route;
3719
+ this.publicRoute = publicRoute;
3720
+ }
3721
+ async basicSearch(params) {
3722
+ const response = await this.api.get(`${this.route}basic_search`, {
3723
+ params
3724
+ });
3725
+ return response.data;
3726
+ }
3727
+ async findReferenceAndIdForMobile(params) {
3728
+ const response = await this.api.get(`${this.route}reference_and_id_mobile`, {
3729
+ params
3730
+ });
3731
+ return response.data;
3732
+ }
3733
+ async findDataForMobile(params) {
3734
+ const response = await this.api.get(`${this.route}data_mobile/${params.id}`);
3735
+ return response.data;
3736
+ }
3737
+ async findStockForMobile(params) {
3738
+ const response = await this.api.get(`${this.route}stock_mobile/${params.id}`);
3739
+ return response.data;
3740
+ }
3741
+ async findPreArtigo(params) {
3742
+ const response = await this.api.get(`${this.route}pre_artigo`, {
3743
+ params
3744
+ });
3745
+ return response.data;
3746
+ }
3747
+ async updatePricesFromPreArtigo() {
3748
+ await this.api.get(`${this.route}update_prices_from_pre_artigo`);
3749
+ }
3750
+ async validateByRef(params) {
3751
+ const response = await this.api.get(`${this.route}validate_by_ref`, {
3752
+ params
3753
+ });
3754
+ return response.data;
3755
+ }
3756
+ async findSimilarProductsByName(params) {
3757
+ const response = await this.api.get(`${this.route}similar_products`, {
3758
+ params
3759
+ });
3760
+ return response.data;
3761
+ }
3762
+ async findByProductType(params) {
3763
+ const response = await this.api.get(`${this.route}by_product_type`, {
3764
+ params
3765
+ });
3766
+ return response.data;
3767
+ }
3768
+ async findById({
3769
+ id
3770
+ }) {
3771
+ const response = await this.api.get(`${this.route}${id}`);
3772
+ return response.data;
3773
+ }
3774
+ async findByIdWithStock({
3775
+ id
3776
+ }) {
3777
+ const response = await this.api.get(`${this.route}${id}/with_stock`);
3778
+ return response.data;
3779
+ }
3780
+ async updateGoogleSheetsLinesProduct(body) {
3781
+ const response = await this.api.put(`${this.route}update_google_sheets_lines_product`, body);
3782
+ return response.data;
3783
+ }
3784
+ async googleSheetsFieldsByRef(params) {
3785
+ const response = await this.api.get(
3786
+ `${this.route}google_sheets_fields_by_ref/${params.reference}`
3787
+ );
3788
+ return response.data;
3789
+ }
3790
+ async findRowPositionOnSheetsWithColumns(params) {
3791
+ const response = await this.api.get(`${this.route}sheet_row_and_columns/${params.selector}`);
3792
+ return response.data;
3793
+ }
3794
+ async checkStockByIds(data) {
3795
+ const response = await this.api.post(`${this.route}check_stock_by_ids`, data);
3796
+ return response.data;
3797
+ }
3798
+ async create(body) {
3799
+ const response = await this.api.post(`${this.route}`, body);
3800
+ return response.data;
3801
+ }
3802
+ async update({ id }, body) {
3803
+ await this.api.put(`${this.route}${id}`, body);
3804
+ }
3805
+ async deleteOne(selector) {
3806
+ await this.api.delete(`${this.route}${selector.id}`);
3807
+ }
3808
+ printLabelToPdfUrl({ id }, token) {
3809
+ const qs = new URLSearchParams();
3810
+ qs.set("token", token);
3811
+ return `${this.publicRoute}print_label_pdf/${id}?${qs.toString()}`;
3812
+ }
3813
+ printLabelToPdfBulk(ids, token) {
3814
+ const qs = new URLSearchParams();
3815
+ qs.set("token", token);
3816
+ qs.set("ids", ids.join(","));
3817
+ return `${this.publicRoute}print_label_pdf/bulk?${qs.toString()}`;
3818
+ }
3819
+ async updateDbFromSheets() {
3820
+ await this.api.post(`${this.route}update_db_from_sheets`);
3821
+ }
3822
+ async partialLocation(body) {
3823
+ await this.api.post(`${this.route}partial_location`, body);
3824
+ }
3825
+ async fullLocation(body) {
3826
+ await this.api.post(`${this.route}full_location`, body);
3827
+ }
3828
+ };
3829
+
3830
+ // src/modules/stock/task.ts
3831
+ var task_exports = {};
3832
+ __export(task_exports, {
3833
+ default: () => Repository102
3834
+ });
3835
+ var Repository102 = class {
3836
+ constructor({ api, route, publicRoute }) {
3837
+ this.api = api;
3838
+ this.route = route;
3839
+ this.publicRoute = publicRoute;
3840
+ }
3841
+ async find(selector) {
3842
+ return this.api.get(`${this.route}${selector}`);
3843
+ }
3844
+ async findWithMessages(selector) {
3845
+ return this.api.get(`${this.route}with_messages`, {
3846
+ params: selector
3847
+ });
3848
+ }
3849
+ async create(body) {
3850
+ const response = await this.api.post(`${this.route}`, body);
3851
+ return response.data;
3852
+ }
3853
+ async update(selector, body) {
3854
+ await this.api.put(`${this.route}${selector.id}`, body);
3855
+ }
3856
+ async delete(selector) {
3857
+ await this.api.delete(`${this.route}${selector.id}`);
3858
+ }
3859
+ async findByOwnerId(selector) {
3860
+ const response = await this.api.delete(`${this.route}by_owner/${selector.owner_id}`);
3861
+ return response.data;
3862
+ }
3863
+ };
3864
+
3865
+ // src/modules/stock/taskMessage.ts
3866
+ var taskMessage_exports = {};
3867
+ __export(taskMessage_exports, {
3868
+ default: () => Repository103
3869
+ });
3870
+ var Repository103 = class {
3871
+ constructor({ api, route, publicRoute }) {
3872
+ this.api = api;
3873
+ this.route = route;
3874
+ this.publicRoute = publicRoute;
3875
+ }
3876
+ async create(body) {
3877
+ const response = await this.api.post(`${this.route}`, body);
3878
+ return response.data;
3879
+ }
3880
+ async update(selector, body) {
3881
+ await this.api.put(`${this.route}${selector.id}`, body);
3882
+ }
3883
+ async delete(selector) {
3884
+ await this.api.delete(`${this.route}${selector.id}`);
3885
+ }
3886
+ };
3887
+
3888
+ // src/modules/stock/recurrentTasks.ts
3889
+ var recurrentTasks_exports = {};
3890
+ __export(recurrentTasks_exports, {
3891
+ default: () => Repository104
3892
+ });
3893
+ var Repository104 = class {
3894
+ constructor({ api, route, publicRoute }) {
3895
+ this.api = api;
3896
+ this.route = route;
3897
+ this.publicRoute = publicRoute;
3898
+ }
3899
+ async from_master() {
3900
+ return this.api.post(`${this.route}from_master`);
3901
+ }
3902
+ async from_master_checked() {
3903
+ return this.api.post(`${this.route}from_master`);
3904
+ }
3905
+ };
3906
+
3907
+ // src/modules/stock/taskRead.ts
3908
+ var taskRead_exports = {};
3909
+ __export(taskRead_exports, {
3910
+ default: () => Repository105
3911
+ });
3912
+ var Repository105 = class {
3913
+ constructor({ api, route, publicRoute }) {
3914
+ this.api = api;
3915
+ this.route = route;
3916
+ this.publicRoute = publicRoute;
3917
+ }
3918
+ async create(body) {
3919
+ await this.api.post(`${this.route}`, body);
3920
+ }
3921
+ async delete(params) {
3922
+ await this.api.delete(`${this.route}`, { data: params });
3923
+ }
3924
+ };
3925
+
3926
+ // src/modules/user/theme.ts
3927
+ var theme_exports = {};
3928
+ __export(theme_exports, {
3929
+ default: () => Repository106
3930
+ });
3931
+ var Repository106 = class {
3932
+ constructor({ api, route, publicRoute }) {
3933
+ this.api = api;
3934
+ this.route = route;
3935
+ this.publicRoute = publicRoute;
3936
+ }
3937
+ async createOrUpdate(body) {
3938
+ await this.api.post(`${this.route}`, body);
3939
+ }
3940
+ };
3941
+
3942
+ // src/modules/stock/dashboard.ts
3943
+ var dashboard_exports = {};
3944
+ __export(dashboard_exports, {
3945
+ default: () => Repository107
3946
+ });
3947
+ var Repository107 = class {
3948
+ constructor({ api, route, publicRoute }) {
3949
+ this.api = api;
3950
+ this.route = route;
3951
+ this.publicRoute = publicRoute;
3952
+ }
3953
+ async findByDate(selector) {
3954
+ const response = await this.api.get(`${this.route}${selector.date}`);
3955
+ return response.data;
3956
+ }
3957
+ };
3958
+
3959
+ // src/modules/stock/chatRapidMessage.ts
3960
+ var chatRapidMessage_exports = {};
3961
+ __export(chatRapidMessage_exports, {
3962
+ default: () => Repository108
3963
+ });
3964
+ var Repository108 = class {
3965
+ constructor({ api, route, publicRoute }) {
3966
+ this.api = api;
3967
+ this.route = route;
3968
+ this.publicRoute = publicRoute;
3969
+ }
3970
+ async create(data) {
3971
+ const response = await this.api.post(`${this.route}`, data);
3972
+ return response.data;
3973
+ }
3974
+ async findMinified() {
3975
+ const response = await this.api.get(`${this.route}`);
3976
+ return response.data;
3977
+ }
3978
+ async findById(selector) {
3979
+ const response = await this.api.get(`${this.route}${selector.id}`);
3980
+ return response.data;
3981
+ }
3982
+ async update(selector, data) {
3983
+ const response = await this.api.put(`${this.route}${selector.date}`, data);
3984
+ return response.data;
3985
+ }
3986
+ async delete(selector) {
3987
+ await this.api.delete(`${this.route}${selector.id}`);
3988
+ }
3989
+ };
3990
+
3991
+ // src/modules/stock/sideMenu.ts
3992
+ var sideMenu_exports = {};
3993
+ __export(sideMenu_exports, {
3994
+ default: () => Repository109
3995
+ });
3996
+ var Repository109 = class {
3997
+ constructor({ api, route, publicRoute }) {
3998
+ this.api = api;
3999
+ this.route = route;
4000
+ this.publicRoute = publicRoute;
4001
+ }
4002
+ async findSideMenuStoreOperators() {
4003
+ const response = await this.api.get(`${this.route}side_menu_store_operators`);
4004
+ return response.data;
4005
+ }
4006
+ async findByDocumentLineState(params) {
4007
+ const response = await this.api.get(`${this.route}by_document_line_state`, {
4008
+ params
4009
+ });
4010
+ return response.data;
4011
+ }
4012
+ async findByState(params) {
4013
+ const response = await this.api.get(`${this.route}find_by_state`, {
4014
+ params
4015
+ });
4016
+ return response.data;
4017
+ }
4018
+ async findSideMenuCounters() {
4019
+ const response = await this.api.get(`${this.route}counters`);
4020
+ return response.data;
4021
+ }
4022
+ };
4023
+
4024
+ // src/modules/view/errorLog.ts
4025
+ var errorLog_exports = {};
4026
+ __export(errorLog_exports, {
4027
+ default: () => Repository110
4028
+ });
4029
+ var Repository110 = class {
4030
+ constructor({ api, route, publicRoute }) {
4031
+ this.api = api;
4032
+ this.route = route;
4033
+ this.publicRoute = publicRoute;
4034
+ }
4035
+ async create(body) {
4036
+ await this.api.post(`${this.route}`, body);
4037
+ }
4038
+ };
4039
+
4040
+ // src/modules/view/adminPanel.ts
4041
+ var adminPanel_exports = {};
4042
+ __export(adminPanel_exports, {
4043
+ default: () => Repository111
4044
+ });
4045
+ var Repository111 = class {
4046
+ constructor({ api, route, publicRoute }) {
4047
+ this.api = api;
4048
+ this.route = route;
4049
+ this.publicRoute = publicRoute;
4050
+ }
4051
+ async getData(params) {
4052
+ const response = await this.api.get(`${this.route}`, { params });
4053
+ return response.data;
4054
+ }
4055
+ };
4056
+
4057
+ // src/modules/supply/documentLineRm.ts
4058
+ var documentLineRm_exports = {};
4059
+ __export(documentLineRm_exports, {
4060
+ default: () => Repository112
4061
+ });
4062
+ var Repository112 = class {
4063
+ constructor({ api, route, publicRoute }) {
4064
+ this.api = api;
4065
+ this.route = route;
4066
+ this.publicRoute = publicRoute;
4067
+ }
4068
+ async findByOwnerId({
4069
+ owner_id
4070
+ }) {
4071
+ const response = await this.api.get(`${this.route}${owner_id}`);
4072
+ return response.data;
4073
+ }
4074
+ async update(data) {
4075
+ await this.api.put(`${this.route}`, data);
4076
+ }
4077
+ };
4078
+
4079
+ // src/modules/supply/documentLineMt.ts
4080
+ var documentLineMt_exports = {};
4081
+ __export(documentLineMt_exports, {
4082
+ default: () => Repository113
4083
+ });
4084
+ var Repository113 = class {
4085
+ constructor({ api, route, publicRoute }) {
4086
+ this.api = api;
4087
+ this.route = route;
4088
+ this.publicRoute = publicRoute;
4089
+ }
4090
+ async findByOwnerId({
4091
+ owner_id
4092
+ }) {
4093
+ const response = await this.api.get(`${this.route}${owner_id}`);
4094
+ return response.data;
4095
+ }
4096
+ async update(data) {
4097
+ await this.api.put(`${this.route}`, data);
4098
+ }
4099
+ };
4100
+
4101
+ // src/modules/user/chatSubscriber.ts
4102
+ var chatSubscriber_exports = {};
4103
+ __export(chatSubscriber_exports, {
4104
+ default: () => Repository114
4105
+ });
4106
+ var Repository114 = class {
4107
+ constructor({ api, route, publicRoute }) {
4108
+ this.api = api;
4109
+ this.route = route;
4110
+ this.publicRoute = publicRoute;
4111
+ }
4112
+ async createOrUpdate(data) {
4113
+ const response = await this.api.post(`${this.route}`, data);
4114
+ return response.data;
4115
+ }
4116
+ async findByOwnerId(selector) {
4117
+ const response = await this.api.get(`${this.route}by_owner_id/${selector.id}`);
4118
+ return response.data;
4119
+ }
4120
+ async findByDocumentHeaderId(selector) {
4121
+ const response = await this.api.get(`${this.route}by_document_header_id/${selector.id}`);
4122
+ return response.data;
4123
+ }
4124
+ async findByPersonaId(selector) {
4125
+ const response = await this.api.get(`${this.route}by_persona_id/${selector.id}`);
4126
+ return response.data;
4127
+ }
4128
+ async deleteOne(selector) {
4129
+ await this.api.post(`${this.route}/id/${selector}`);
4130
+ }
4131
+ };
4132
+
4133
+ // src/main.ts
4134
+ var API = class {
4135
+ constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
4136
+ this.processEnvironment = processEnvironment || "localhost";
4137
+ const defaultHeaders = new AxiosHeaders();
4138
+ if (apikey) {
4139
+ defaultHeaders.set("apikey", apikey);
4140
+ }
4141
+ if (tokenBearer) {
4142
+ defaultHeaders.setAuthorization(tokenBearer);
4143
+ }
4144
+ this.client = axios.create({
4145
+ baseURL: gatewayUrl,
4146
+ headers: defaultHeaders
4147
+ });
4148
+ const getServicePath = (service) => {
4149
+ const baseUrl = services[service];
4150
+ const servicePath = processEnvironment === "localhost" ? "/" : `${service}/`;
4151
+ return `${baseUrl}${servicePath}`;
4152
+ };
4153
+ this.services = {
4154
+ stock: getServicePath("stock"),
4155
+ users: getServicePath("users"),
4156
+ integration: getServicePath("integration"),
4157
+ documents: getServicePath("documents"),
4158
+ view: getServicePath("view"),
4159
+ print: getServicePath("print"),
4160
+ tickets: getServicePath("tickets")
4161
+ };
4162
+ const getModuleParams = (service, module) => ({
4163
+ api: this.client,
4164
+ route: `${this.services[service]}${module}/`,
4165
+ publicRoute: `${this.services[service]}${module}/`
4166
+ });
4167
+ this.BankData = new Repository(getModuleParams("users", "bank_data"));
4168
+ this.Client = new Repository2(getModuleParams("users", "client"));
4169
+ this.ClientType = new Repository3(getModuleParams("users", "client_type"));
4170
+ this.Chat = new Repository4(getModuleParams("stock", "chat"));
4171
+ this.Commissioner = new Repository5(getModuleParams("users", "commissioner"));
4172
+ this.Country = new Repository6(getModuleParams("users", "country"));
4173
+ this.DocumentHeader = new Repository7(getModuleParams("stock", "document_header"));
4174
+ this.BillOfLading = new Repository8(getModuleParams("stock", "document_header"));
4175
+ this.ProductionOrder = new Repository9(getModuleParams("stock", "document_header"));
4176
+ this.Proforma = new Repository10(getModuleParams("stock", "document_header"));
4177
+ this.PropostaFornecedor = new Repository11(
4178
+ getModuleParams("stock", "document_header")
4179
+ );
4180
+ this.ProviderCreditNoteFromReturn = new Repository12(
4181
+ getModuleParams("stock", "document_header")
4182
+ );
4183
+ this.ProviderFinancialCreditNote = new Repository13(
4184
+ getModuleParams("stock", "document_header")
4185
+ );
4186
+ this.ProviderServiceInvoice = new Repository14(
4187
+ getModuleParams("stock", "document_header")
4188
+ );
4189
+ this.DocumentLine = new Repository15(getModuleParams("stock", "document_line"));
4190
+ this.DocumentLineAssoc = new Repository16(
4191
+ getModuleParams("stock", "document_line_assoc")
4192
+ );
4193
+ this.DocumentType = new Repository17(getModuleParams("stock", "document_type"));
4194
+ this.Favorites = new Repository18(getModuleParams("users", "favorite"));
4195
+ this.File = new Repository19(getModuleParams("stock", "file"));
4196
+ this.GoogleSheets = new Repository20(getModuleParams("integration", "google"));
4197
+ this.GroupPermissions = new Repository21(getModuleParams("users", "group_permission"));
4198
+ this.Language = new Repository22(getModuleParams("users", "language"));
4199
+ this.Location = new Repository23(getModuleParams("stock", "location"));
4200
+ this.Logout = new Repository24(getModuleParams("users", "logout"));
4201
+ this.Multimedia = new Repository25(getModuleParams("documents", "multimedia"));
4202
+ this.Observation = new Repository26(getModuleParams("integration", "observation"));
4203
+ this.ObservationType = new Repository27(
4204
+ getModuleParams("integration", "observation_type")
4205
+ );
4206
+ this.Password = new Repository28(getModuleParams("users", "password"));
4207
+ this.Permissions = new Repository29(getModuleParams("users", "permission"));
4208
+ this.ProductImage = new Repository30(getModuleParams("stock", "product_image"));
4209
+ this.Promotion = new Repository31(getModuleParams("stock", "promotion"));
4210
+ this.PromotionAssoc = new Repository32(getModuleParams("stock", "promotion_assoc"));
4211
+ this.Providers = new Repository33(getModuleParams("users", "provider"));
4212
+ this.ProviderType = new Repository34(getModuleParams("users", "provider_type"));
4213
+ this.PurchaseConditions = new Repository35(
4214
+ getModuleParams("users", "purchase_condition")
4215
+ );
4216
+ this.ReasonForExemption = new Repository36(
4217
+ getModuleParams("users", "reason_for_exemption")
4218
+ );
4219
+ this.RefreshToken = new Repository37(getModuleParams("users", "refresh-token"));
4220
+ this.SegmentsArea = new Repository38(getModuleParams("users", "segments_area"));
4221
+ this.Sessions = new Repository39(getModuleParams("users", "sessions"));
4222
+ this.Shippings = new Repository40(getModuleParams("users", "shipping"));
4223
+ this.StoreOperator = new Repository41(getModuleParams("users", "store_operator"));
4224
+ this.Swift = new Repository42(getModuleParams("users", "swift"));
4225
+ this.TypeOfLocation = new Repository43(getModuleParams("stock", "type_of_location"));
4226
+ this.UnitOfMeasure = new Repository44(getModuleParams("stock", "unit_of_measure"));
4227
+ this.UserPermissions = new Repository45(getModuleParams("users", "user_permission"));
4228
+ this.UserPositions = new Repository46(getModuleParams("users", "user_position"));
4229
+ this.Users = new Repository47(getModuleParams("users", "users"));
4230
+ this.VatTax = new Repository48(getModuleParams("stock", "vat_tax"));
4231
+ this.VatTaxZone = new Repository49(getModuleParams("stock", "vat_tax_zone"));
4232
+ this.Workflow = new Repository50(getModuleParams("stock", "workflow"));
4233
+ this.DeliveryMethods = new Repository51(getModuleParams("users", "delivery_methods"));
4234
+ this.MaturityDates = new Repository52(getModuleParams("users", "maturity_dates"));
4235
+ this.PaymentMethods = new Repository53(getModuleParams("users", "payment_methods"));
4236
+ this.Vehicles = new Repository54(getModuleParams("users", "vehicles"));
4237
+ this.ExternalDocumentType = new Repository55(
4238
+ getModuleParams("stock", "external_document_type")
4239
+ );
4240
+ this.DocumentSet = new Repository56(getModuleParams("stock", "document_set"));
4241
+ this.Payment = new Repository57(getModuleParams("stock", "payment"));
4242
+ this.ExternalDocumentHeader = new Repository58(
4243
+ getModuleParams("stock", "external_document_header")
4244
+ );
4245
+ this.ClientCurrentAccount = new Repository59(
4246
+ getModuleParams("stock", "client_current_account")
4247
+ );
4248
+ this.ProviderCurrentAccount = new Repository60(
4249
+ getModuleParams("stock", "provider_current_account")
4250
+ );
4251
+ this.VatValidation = new Repository61(getModuleParams("stock", "vat_validation"));
4252
+ this.StockMovement = new Repository62(getModuleParams("stock", "stock_movement"));
4253
+ this.ZipCode = new Repository63(getModuleParams("users", "zip_code"));
4254
+ this.Tenant = new Repository64(getModuleParams("users", "tenant"));
4255
+ this.PreSale = new Repository65(getModuleParams("stock", "pre_sale"));
4256
+ this.PreSaleProduct = new Repository66(getModuleParams("stock", "pre_sale_product"));
4257
+ this.OrderManagement = new Repository67(getModuleParams("stock", "order_management"));
4258
+ this.Npc = new Repository68(getModuleParams("print", "npc"));
4259
+ this.Printer = new Repository69(getModuleParams("print", "printer"));
4260
+ this.SchedulePrintJob = new Repository70(
4261
+ getModuleParams("print", "schedule_print_job")
4262
+ );
4263
+ this.QueryList = new Repository71(getModuleParams("stock", "query"));
4264
+ this.QueryParameter = new Repository72(getModuleParams("stock", "query_parameter"));
4265
+ this.ReturnReason = new Repository73(getModuleParams("stock", "return_reason"));
4266
+ this.PropostaSheets = new Repository74(getModuleParams("stock", "proposta_sheets"));
4267
+ this.Schedule = new Repository75(getModuleParams("stock", "schedule"));
4268
+ this.GoogleFilePermission = new Repository76(
4269
+ getModuleParams("integration", "google_file_permission")
4270
+ );
4271
+ this.Settings = new Repository77(getModuleParams("integration", "settings"));
4272
+ this.Tickets = new Repository78(getModuleParams("tickets", "tickets"));
4273
+ this.Channel = new Repository79(getModuleParams("tickets", "channel"));
4274
+ this.TicketsLanguage = new Repository80(getModuleParams("tickets", "tickets_language"));
4275
+ this.Clt = new Repository81(getModuleParams("tickets", "clt"));
4276
+ this.StartDocumentHeaderLastUpdate = new Repository82(
4277
+ getModuleParams("stock", "start_document_header_last_update")
4278
+ );
4279
+ this.Persona = new Repository83(getModuleParams("users", "persona"));
4280
+ this.ProjectInfo = new Repository84(getModuleParams("integration", "project_info"));
4281
+ this.Order = new Repository85(getModuleParams("stock", "order"));
4282
+ this.Purchase = new Repository86(getModuleParams("stock", "purchase"));
4283
+ this.MaterialEntrance = new Repository87(
4284
+ getModuleParams("stock", "material_entrance")
4285
+ );
4286
+ this.Transformado = new Repository88(getModuleParams("stock", "transformado"));
4287
+ this.UpfrontReturn = new Repository89(getModuleParams("stock", "upfront_return"));
4288
+ this.SavedEmPicking = new Repository90(getModuleParams("stock", "saved_em_picking"));
4289
+ this.EmailTemplate = new Repository91(getModuleParams("integration", "email_template"));
4290
+ this.EmailTemplateAttachment = new Repository92(
4291
+ getModuleParams("integration", "email_template_attachment")
4292
+ );
4293
+ this.Prison = new Repository93(getModuleParams("stock", "prison"));
4294
+ this.Quebra = new Repository94(getModuleParams("stock", "quebra"));
4295
+ this.Inventario = new Repository95(getModuleParams("stock", "inventario"));
4296
+ this.ReturnToProvider = new Repository96(
4297
+ getModuleParams("stock", "return_to_provider")
4298
+ );
4299
+ this.EmailVerification = new Repository97(
4300
+ getModuleParams("integration", "email_verification")
4301
+ );
4302
+ this.EmailLog = new Repository98(getModuleParams("integration", "email_log"));
4303
+ this.DocumentLineNote = new Repository99(
4304
+ getModuleParams("stock", "document_line_note")
4305
+ );
4306
+ this.SavedProviderProposal = new Repository100(
4307
+ getModuleParams("stock", "saved_provider_proposal")
4308
+ );
4309
+ this.ProductGoogleSheets = new Repository101(
4310
+ getModuleParams("stock", "product_google")
4311
+ );
4312
+ this.Task = new Repository102(getModuleParams("stock", "task"));
4313
+ this.TaskMessage = new Repository103(getModuleParams("stock", "task_message"));
4314
+ this.RecurrentTasks = new Repository104(getModuleParams("stock", "recurrent_tasks"));
4315
+ this.TaskRead = new Repository105(getModuleParams("stock", "task_read"));
4316
+ this.Theme = new Repository106(getModuleParams("users", "theme"));
4317
+ this.Dashboard = new Repository107(getModuleParams("stock", "dashboard"));
4318
+ this.ChatRapidMessage = new Repository108(
4319
+ getModuleParams("stock", "chat_rapid_message")
4320
+ );
4321
+ this.SideMenu = new Repository109(getModuleParams("stock", "side_menu"));
4322
+ this.ErrorLog = new Repository110(getModuleParams("view", "error_log"));
4323
+ this.AdminPanel = new Repository111(getModuleParams("view", "admin_panel"));
4324
+ this.DocumentLineRm = new Repository112(getModuleParams("stock", "document_line_rm"));
4325
+ this.DocumentLineMt = new Repository113(getModuleParams("stock", "document_line_mt"));
4326
+ this.ChatSubscriber = new Repository114(getModuleParams("users", "chat_subscriber"));
4327
+ }
4328
+ };
4329
+
4330
+ // src/index.ts
4331
+ var index_default = main_exports;
4332
+
4333
+ export { index_default as default };