@nomalism-com/api 0.8.19 → 0.8.20

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 (361) hide show
  1. package/{src/index.ts → dist/index.d.ts} +2 -118
  2. package/dist/index.js +257 -0
  3. package/dist/modules/documentManagement/index.d.ts +2 -0
  4. package/dist/modules/documentManagement/index.js +7 -0
  5. package/dist/modules/documentManagement/multimedia.d.ts +5 -0
  6. package/dist/modules/documentManagement/multimedia.js +69 -0
  7. package/dist/modules/integration/dynamicData.d.ts +8 -0
  8. package/dist/modules/integration/dynamicData.js +103 -0
  9. package/dist/modules/integration/field.d.ts +26 -0
  10. package/dist/modules/integration/field.js +93 -0
  11. package/dist/modules/integration/fieldGroup.d.ts +12 -0
  12. package/dist/modules/integration/fieldGroup.js +118 -0
  13. package/dist/modules/integration/file.d.ts +5 -0
  14. package/dist/modules/integration/file.js +83 -0
  15. package/dist/modules/integration/history.d.ts +11 -0
  16. package/dist/modules/integration/history.js +63 -0
  17. package/dist/modules/integration/index.d.ts +2 -0
  18. package/dist/modules/integration/index.js +7 -0
  19. package/dist/modules/integration/observation.d.ts +8 -0
  20. package/dist/modules/integration/observation.js +94 -0
  21. package/dist/modules/integration/observationType.d.ts +10 -0
  22. package/dist/modules/integration/observationType.js +107 -0
  23. package/dist/modules/integration/task.d.ts +10 -0
  24. package/dist/modules/integration/task.js +113 -0
  25. package/dist/modules/integration/taskAttachment.d.ts +7 -0
  26. package/dist/modules/integration/taskAttachment.js +72 -0
  27. package/dist/modules/integration/taskGroup.d.ts +8 -0
  28. package/dist/modules/integration/taskGroup.js +103 -0
  29. package/dist/modules/integration/taskNote.d.ts +8 -0
  30. package/dist/modules/integration/taskNote.js +92 -0
  31. package/dist/modules/print/index.d.ts +4 -0
  32. package/dist/modules/print/index.js +9 -0
  33. package/dist/modules/print/npc.d.ts +5 -0
  34. package/dist/modules/print/npc.js +70 -0
  35. package/dist/modules/print/printer.d.ts +6 -0
  36. package/dist/modules/print/printer.js +70 -0
  37. package/dist/modules/print/schedulePrintJob.d.ts +8 -0
  38. package/dist/modules/print/schedulePrintJob.js +139 -0
  39. package/dist/modules/stock/attribute.d.ts +16 -0
  40. package/dist/modules/stock/attribute.js +143 -0
  41. package/dist/modules/stock/attributeValue.d.ts +12 -0
  42. package/dist/modules/stock/attributeValue.js +140 -0
  43. package/dist/modules/stock/cabide.d.ts +15 -0
  44. package/dist/modules/stock/cabide.js +151 -0
  45. package/dist/modules/stock/cabideProduct.d.ts +10 -0
  46. package/dist/modules/stock/cabideProduct.js +127 -0
  47. package/dist/modules/stock/clientCurrentAccount.d.ts +5 -0
  48. package/dist/modules/stock/clientCurrentAccount.js +61 -0
  49. package/dist/modules/stock/color.d.ts +13 -0
  50. package/dist/modules/stock/color.js +139 -0
  51. package/dist/modules/stock/composition.d.ts +12 -0
  52. package/dist/modules/stock/composition.js +127 -0
  53. package/dist/modules/stock/compositionMaterial.d.ts +13 -0
  54. package/dist/modules/stock/compositionMaterial.js +140 -0
  55. package/dist/modules/stock/documentHeader.d.ts +45 -0
  56. package/dist/modules/stock/documentHeader.js +361 -0
  57. package/dist/modules/stock/documentLine.d.ts +24 -0
  58. package/dist/modules/stock/documentLine.js +125 -0
  59. package/dist/modules/stock/documentLineAssoc.d.ts +20 -0
  60. package/dist/modules/stock/documentLineAssoc.js +154 -0
  61. package/dist/modules/stock/documentLineFolder.d.ts +6 -0
  62. package/dist/modules/stock/documentLineFolder.js +92 -0
  63. package/dist/modules/stock/documentLineState.d.ts +10 -0
  64. package/dist/modules/stock/documentLineState.js +114 -0
  65. package/dist/modules/stock/documentLineStateCriteria.d.ts +20 -0
  66. package/dist/modules/stock/documentLineStateCriteria.js +121 -0
  67. package/dist/modules/stock/documentSet.d.ts +8 -0
  68. package/dist/modules/stock/documentSet.js +114 -0
  69. package/dist/modules/stock/documentType.d.ts +14 -0
  70. package/dist/modules/stock/documentType.js +117 -0
  71. package/dist/modules/stock/externalDocumentHeader.d.ts +15 -0
  72. package/dist/modules/stock/externalDocumentHeader.js +135 -0
  73. package/dist/modules/stock/externalDocumentType.d.ts +6 -0
  74. package/dist/modules/stock/externalDocumentType.js +70 -0
  75. package/dist/modules/stock/index.d.ts +3 -0
  76. package/dist/modules/stock/index.js +8 -0
  77. package/dist/modules/stock/location.d.ts +12 -0
  78. package/dist/modules/stock/location.js +140 -0
  79. package/dist/modules/stock/maintenance.d.ts +12 -0
  80. package/dist/modules/stock/maintenance.js +140 -0
  81. package/dist/modules/stock/maintenanceAssoc.d.ts +12 -0
  82. package/dist/modules/stock/maintenanceAssoc.js +127 -0
  83. package/dist/modules/stock/maintenancePreset.d.ts +10 -0
  84. package/dist/modules/stock/maintenancePreset.js +114 -0
  85. package/dist/modules/stock/maintenancePresetAssoc.d.ts +8 -0
  86. package/dist/modules/stock/maintenancePresetAssoc.js +91 -0
  87. package/dist/modules/stock/maintenanceType.d.ts +13 -0
  88. package/dist/modules/stock/maintenanceType.js +140 -0
  89. package/dist/modules/stock/moloniRequest.d.ts +5 -0
  90. package/dist/modules/stock/moloniRequest.js +59 -0
  91. package/dist/modules/stock/orderManagement.d.ts +11 -0
  92. package/dist/modules/stock/orderManagement.js +88 -0
  93. package/dist/modules/stock/payment.d.ts +22 -0
  94. package/dist/modules/stock/payment.js +210 -0
  95. package/dist/modules/stock/plot.d.ts +32 -0
  96. package/dist/modules/stock/plot.js +238 -0
  97. package/dist/modules/stock/preSale.d.ts +11 -0
  98. package/dist/modules/stock/preSale.js +125 -0
  99. package/dist/modules/stock/preSaleProduct.d.ts +4 -0
  100. package/dist/modules/stock/preSaleProduct.js +70 -0
  101. package/dist/modules/stock/primaryColor.d.ts +13 -0
  102. package/dist/modules/stock/primaryColor.js +140 -0
  103. package/dist/modules/stock/product.d.ts +30 -0
  104. package/dist/modules/stock/product.js +239 -0
  105. package/dist/modules/stock/productAttribute.d.ts +12 -0
  106. package/dist/modules/stock/productAttribute.js +127 -0
  107. package/dist/modules/stock/productCategory.d.ts +13 -0
  108. package/dist/modules/stock/productCategory.js +140 -0
  109. package/dist/modules/stock/productColor.d.ts +12 -0
  110. package/dist/modules/stock/productColor.js +127 -0
  111. package/dist/modules/stock/productImage.d.ts +14 -0
  112. package/dist/modules/stock/productImage.js +130 -0
  113. package/dist/modules/stock/productName.d.ts +13 -0
  114. package/dist/modules/stock/productName.js +140 -0
  115. package/dist/modules/stock/productNamePreset.d.ts +13 -0
  116. package/dist/modules/stock/productNamePreset.js +140 -0
  117. package/dist/modules/stock/productPart.d.ts +14 -0
  118. package/dist/modules/stock/productPart.js +139 -0
  119. package/dist/modules/stock/productSubCategory.d.ts +13 -0
  120. package/dist/modules/stock/productSubCategory.js +139 -0
  121. package/dist/modules/stock/productUse.d.ts +13 -0
  122. package/dist/modules/stock/productUse.js +140 -0
  123. package/dist/modules/stock/productUseAssoc.d.ts +12 -0
  124. package/dist/modules/stock/productUseAssoc.js +126 -0
  125. package/dist/modules/stock/promotion.d.ts +13 -0
  126. package/dist/modules/stock/promotion.js +140 -0
  127. package/dist/modules/stock/promotionAssoc.d.ts +12 -0
  128. package/dist/modules/stock/promotionAssoc.js +127 -0
  129. package/dist/modules/stock/providerCurrentAccount.d.ts +5 -0
  130. package/dist/modules/stock/providerCurrentAccount.js +61 -0
  131. package/dist/modules/stock/queryList.d.ts +11 -0
  132. package/dist/modules/stock/queryList.js +116 -0
  133. package/dist/modules/stock/queryParameter.d.ts +8 -0
  134. package/dist/modules/stock/queryParameter.js +105 -0
  135. package/dist/modules/stock/returnReason.d.ts +6 -0
  136. package/dist/modules/stock/returnReason.js +92 -0
  137. package/dist/modules/stock/similarProduct.d.ts +12 -0
  138. package/dist/modules/stock/similarProduct.js +127 -0
  139. package/dist/modules/stock/stockMovement.d.ts +8 -0
  140. package/dist/modules/stock/stockMovement.js +75 -0
  141. package/dist/modules/stock/topMenu.d.ts +5 -0
  142. package/dist/modules/stock/topMenu.js +61 -0
  143. package/dist/modules/stock/typeOfInventory.d.ts +13 -0
  144. package/dist/modules/stock/typeOfInventory.js +140 -0
  145. package/dist/modules/stock/typeOfLocation.d.ts +13 -0
  146. package/dist/modules/stock/typeOfLocation.js +140 -0
  147. package/dist/modules/stock/unitOfMeasure.d.ts +13 -0
  148. package/dist/modules/stock/unitOfMeasure.js +140 -0
  149. package/dist/modules/stock/vatTax.d.ts +13 -0
  150. package/dist/modules/stock/vatTax.js +140 -0
  151. package/dist/modules/stock/vatTaxZone.d.ts +14 -0
  152. package/dist/modules/stock/vatTaxZone.js +140 -0
  153. package/dist/modules/stock/vatValidation.d.ts +4 -0
  154. package/dist/modules/stock/vatValidation.js +63 -0
  155. package/dist/modules/stock/websiteRequest.d.ts +10 -0
  156. package/dist/modules/stock/websiteRequest.js +96 -0
  157. package/dist/modules/stock/workflow.d.ts +8 -0
  158. package/dist/modules/stock/workflow.js +103 -0
  159. package/dist/modules/user/address.d.ts +12 -0
  160. package/dist/modules/user/address.js +127 -0
  161. package/dist/modules/user/bankData.d.ts +12 -0
  162. package/dist/modules/user/bankData.js +127 -0
  163. package/dist/modules/user/clientType.d.ts +12 -0
  164. package/dist/modules/user/clientType.js +127 -0
  165. package/dist/modules/user/clients.d.ts +17 -0
  166. package/dist/modules/user/clients.js +140 -0
  167. package/dist/modules/user/commissioner.d.ts +15 -0
  168. package/dist/modules/user/commissioner.js +140 -0
  169. package/dist/modules/user/contactTypes.d.ts +12 -0
  170. package/dist/modules/user/contactTypes.js +127 -0
  171. package/dist/modules/user/contacts.d.ts +14 -0
  172. package/dist/modules/user/contacts.js +149 -0
  173. package/dist/modules/user/country.d.ts +12 -0
  174. package/dist/modules/user/country.js +140 -0
  175. package/dist/modules/user/deliveryMethods.d.ts +8 -0
  176. package/dist/modules/user/deliveryMethods.js +116 -0
  177. package/dist/modules/user/entityList.d.ts +7 -0
  178. package/dist/modules/user/entityList.js +105 -0
  179. package/dist/modules/user/favorites.d.ts +7 -0
  180. package/dist/modules/user/favorites.js +92 -0
  181. package/dist/modules/user/groupPermission.d.ts +7 -0
  182. package/dist/modules/user/groupPermission.js +94 -0
  183. package/dist/modules/user/index.d.ts +3 -0
  184. package/dist/modules/user/index.js +8 -0
  185. package/dist/modules/user/language.d.ts +12 -0
  186. package/dist/modules/user/language.js +127 -0
  187. package/dist/modules/user/logout.d.ts +2 -0
  188. package/dist/modules/user/logout.js +58 -0
  189. package/dist/modules/user/maturityDates.d.ts +8 -0
  190. package/dist/modules/user/maturityDates.js +116 -0
  191. package/dist/modules/user/password.d.ts +5 -0
  192. package/dist/modules/user/password.js +68 -0
  193. package/dist/modules/user/paymentCondition.d.ts +11 -0
  194. package/dist/modules/user/paymentCondition.js +127 -0
  195. package/dist/modules/user/paymentMethods.d.ts +8 -0
  196. package/dist/modules/user/paymentMethods.js +116 -0
  197. package/dist/modules/user/permission.d.ts +7 -0
  198. package/dist/modules/user/permission.js +94 -0
  199. package/dist/modules/user/provider.d.ts +15 -0
  200. package/dist/modules/user/provider.js +153 -0
  201. package/dist/modules/user/providerType.d.ts +12 -0
  202. package/dist/modules/user/providerType.js +127 -0
  203. package/dist/modules/user/purchaseCondition.d.ts +12 -0
  204. package/dist/modules/user/purchaseCondition.js +127 -0
  205. package/dist/modules/user/reasonForExemption.d.ts +12 -0
  206. package/dist/modules/user/reasonForExemption.js +127 -0
  207. package/dist/modules/user/refreshToken.d.ts +5 -0
  208. package/dist/modules/user/refreshToken.js +59 -0
  209. package/dist/modules/user/segmentsArea.d.ts +12 -0
  210. package/dist/modules/user/segmentsArea.js +127 -0
  211. package/dist/modules/user/sessions.d.ts +5 -0
  212. package/dist/modules/user/sessions.js +59 -0
  213. package/dist/modules/user/shippings.d.ts +11 -0
  214. package/dist/modules/user/shippings.js +127 -0
  215. package/dist/modules/user/socialMedia.d.ts +11 -0
  216. package/dist/modules/user/socialMedia.js +127 -0
  217. package/dist/modules/user/storeOperator.d.ts +16 -0
  218. package/dist/modules/user/storeOperator.js +151 -0
  219. package/dist/modules/user/swift.d.ts +12 -0
  220. package/dist/modules/user/swift.js +127 -0
  221. package/dist/modules/user/tenant.d.ts +6 -0
  222. package/dist/modules/user/tenant.js +92 -0
  223. package/dist/modules/user/user.d.ts +18 -0
  224. package/dist/modules/user/user.js +151 -0
  225. package/dist/modules/user/userPermission.d.ts +7 -0
  226. package/dist/modules/user/userPermission.js +83 -0
  227. package/dist/modules/user/userPositions.d.ts +12 -0
  228. package/dist/modules/user/userPositions.js +127 -0
  229. package/dist/modules/user/userToken.d.ts +9 -0
  230. package/dist/modules/user/userToken.js +116 -0
  231. package/dist/modules/user/vehicles.d.ts +6 -0
  232. package/dist/modules/user/vehicles.js +92 -0
  233. package/dist/modules/user/zipCode.d.ts +6 -0
  234. package/dist/modules/user/zipCode.js +69 -0
  235. package/dist/shared/client.d.ts +2 -0
  236. package/dist/shared/client.js +9 -0
  237. package/package.json +13 -8
  238. package/.editorconfig +0 -9
  239. package/.eslintignore +0 -3
  240. package/.eslintrc.json +0 -51
  241. package/.nvmrc +0 -1
  242. package/package-lock.json +0 -6181
  243. package/prettier.config.js +0 -5
  244. package/src/modules/documentManagement/index.ts +0 -6
  245. package/src/modules/documentManagement/multimedia.ts +0 -33
  246. package/src/modules/integration/dynamicData.ts +0 -45
  247. package/src/modules/integration/field.ts +0 -38
  248. package/src/modules/integration/fieldGroup.ts +0 -68
  249. package/src/modules/integration/file.ts +0 -30
  250. package/src/modules/integration/history.ts +0 -30
  251. package/src/modules/integration/index.ts +0 -6
  252. package/src/modules/integration/observation.ts +0 -43
  253. package/src/modules/integration/observationType.ts +0 -55
  254. package/src/modules/integration/task.ts +0 -66
  255. package/src/modules/integration/taskAttachment.ts +0 -26
  256. package/src/modules/integration/taskGroup.ts +0 -45
  257. package/src/modules/integration/taskNote.ts +0 -39
  258. package/src/modules/print/index.ts +0 -10
  259. package/src/modules/print/npc.ts +0 -24
  260. package/src/modules/print/printer.ts +0 -26
  261. package/src/modules/print/schedulePrintJob.ts +0 -75
  262. package/src/modules/stock/attribute.ts +0 -101
  263. package/src/modules/stock/attributeValue.ts +0 -91
  264. package/src/modules/stock/cabide.ts +0 -105
  265. package/src/modules/stock/cabideProduct.ts +0 -67
  266. package/src/modules/stock/clientCurrentAccount.ts +0 -22
  267. package/src/modules/stock/color.ts +0 -90
  268. package/src/modules/stock/composition.ts +0 -81
  269. package/src/modules/stock/compositionMaterial.ts +0 -92
  270. package/src/modules/stock/documentHeader.ts +0 -324
  271. package/src/modules/stock/documentLine.ts +0 -89
  272. package/src/modules/stock/documentLineAssoc.ts +0 -117
  273. package/src/modules/stock/documentLineFolder.ts +0 -43
  274. package/src/modules/stock/documentLineState.ts +0 -66
  275. package/src/modules/stock/documentLineStateCriteria.ts +0 -90
  276. package/src/modules/stock/documentSet.ts +0 -53
  277. package/src/modules/stock/documentType.ts +0 -68
  278. package/src/modules/stock/externalDocumentHeader.ts +0 -85
  279. package/src/modules/stock/externalDocumentType.ts +0 -26
  280. package/src/modules/stock/index.ts +0 -8
  281. package/src/modules/stock/location.ts +0 -91
  282. package/src/modules/stock/maintenance.ts +0 -91
  283. package/src/modules/stock/maintenanceAssoc.ts +0 -81
  284. package/src/modules/stock/maintenancePreset.ts +0 -55
  285. package/src/modules/stock/maintenancePresetAssoc.ts +0 -42
  286. package/src/modules/stock/maintenanceType.ts +0 -92
  287. package/src/modules/stock/moloniRequest.ts +0 -18
  288. package/src/modules/stock/orderManagement.ts +0 -41
  289. package/src/modules/stock/payment.ts +0 -161
  290. package/src/modules/stock/plot.ts +0 -196
  291. package/src/modules/stock/preSale.ts +0 -76
  292. package/src/modules/stock/preSaleProduct.ts +0 -23
  293. package/src/modules/stock/primaryColor.ts +0 -92
  294. package/src/modules/stock/product.ts +0 -197
  295. package/src/modules/stock/productAttribute.ts +0 -81
  296. package/src/modules/stock/productCategory.ts +0 -92
  297. package/src/modules/stock/productColor.ts +0 -81
  298. package/src/modules/stock/productImage.ts +0 -86
  299. package/src/modules/stock/productName.ts +0 -92
  300. package/src/modules/stock/productNamePreset.ts +0 -92
  301. package/src/modules/stock/productPart.ts +0 -91
  302. package/src/modules/stock/productSubCategory.ts +0 -90
  303. package/src/modules/stock/productUse.ts +0 -92
  304. package/src/modules/stock/productUseAssoc.ts +0 -78
  305. package/src/modules/stock/promotion.ts +0 -93
  306. package/src/modules/stock/promotionAssoc.ts +0 -81
  307. package/src/modules/stock/providerCurrentAccount.ts +0 -22
  308. package/src/modules/stock/queryList.ts +0 -61
  309. package/src/modules/stock/queryParameter.ts +0 -50
  310. package/src/modules/stock/returnReason.ts +0 -40
  311. package/src/modules/stock/similarProduct.ts +0 -81
  312. package/src/modules/stock/stockMovement.ts +0 -32
  313. package/src/modules/stock/topMenu.ts +0 -22
  314. package/src/modules/stock/typeOfInventory.ts +0 -92
  315. package/src/modules/stock/typeOfLocation.ts +0 -92
  316. package/src/modules/stock/unitOfMeasure.ts +0 -92
  317. package/src/modules/stock/vatTax.ts +0 -92
  318. package/src/modules/stock/vatTaxZone.ts +0 -94
  319. package/src/modules/stock/vatValidation.ts +0 -20
  320. package/src/modules/stock/websiteRequest.ts +0 -51
  321. package/src/modules/stock/workflow.ts +0 -50
  322. package/src/modules/user/address.ts +0 -81
  323. package/src/modules/user/bankData.ts +0 -81
  324. package/src/modules/user/clientType.ts +0 -80
  325. package/src/modules/user/clients.ts +0 -100
  326. package/src/modules/user/commissioner.ts +0 -96
  327. package/src/modules/user/contactTypes.ts +0 -80
  328. package/src/modules/user/contacts.ts +0 -100
  329. package/src/modules/user/country.ts +0 -90
  330. package/src/modules/user/deliveryMethods.ts +0 -60
  331. package/src/modules/user/entityList.ts +0 -42
  332. package/src/modules/user/favorites.ts +0 -36
  333. package/src/modules/user/groupPermission.ts +0 -44
  334. package/src/modules/user/index.ts +0 -8
  335. package/src/modules/user/language.ts +0 -80
  336. package/src/modules/user/logout.ts +0 -12
  337. package/src/modules/user/maturityDates.ts +0 -60
  338. package/src/modules/user/password.ts +0 -21
  339. package/src/modules/user/paymentCondition.ts +0 -79
  340. package/src/modules/user/paymentMethods.ts +0 -60
  341. package/src/modules/user/permission.ts +0 -44
  342. package/src/modules/user/provider.ts +0 -106
  343. package/src/modules/user/providerType.ts +0 -80
  344. package/src/modules/user/purchaseCondition.ts +0 -82
  345. package/src/modules/user/reasonForExemption.ts +0 -80
  346. package/src/modules/user/refreshToken.ts +0 -18
  347. package/src/modules/user/segmentsArea.ts +0 -80
  348. package/src/modules/user/sessions.ts +0 -18
  349. package/src/modules/user/shippings.ts +0 -79
  350. package/src/modules/user/socialMedia.ts +0 -79
  351. package/src/modules/user/storeOperator.ts +0 -104
  352. package/src/modules/user/swift.ts +0 -80
  353. package/src/modules/user/tenant.ts +0 -36
  354. package/src/modules/user/user.ts +0 -111
  355. package/src/modules/user/userPermission.ts +0 -37
  356. package/src/modules/user/userPositions.ts +0 -80
  357. package/src/modules/user/userToken.ts +0 -69
  358. package/src/modules/user/vehicles.ts +0 -40
  359. package/src/modules/user/zipCode.ts +0 -23
  360. package/src/shared/client.ts +0 -5
  361. package/tsconfig.json +0 -19
@@ -1,75 +0,0 @@
1
- import { shared, SchedulePrintJob as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath, serviceApiKeyPath } from '.';
4
-
5
- export import IEntity = Entity.Entity;
6
- export import ICreateSchedulePrintJobRequest = Entity.ICreateSchedulePrintJobRequest;
7
- export import IDispatchSchedulePrintJobRequest = Entity.IDispatchSchedulePrintJobRequest;
8
- export import IFindScheduleResponse = Entity.IFindScheduleResponse;
9
-
10
- export const route = `${serviceHostname}${serviceAuthPath}schedule_print_job/`;
11
- export const apiKeyRooute = `${serviceHostname}${serviceApiKeyPath}schedule_print_job/`;
12
-
13
- interface IRoutes {
14
- auth: Entity.IController;
15
- apiKey: Entity.IController;
16
- }
17
-
18
- const routes: IRoutes = {
19
- auth: {
20
- create: async (body: ICreateSchedulePrintJobRequest): Promise<IEntity> => {
21
- const response = await api.post(`${route}`, body);
22
- return response.data;
23
- },
24
-
25
- deleteOne: async (selector: shared.IFindByIdRequest): Promise<void> => {
26
- await api.delete(`${route}${selector.id}`);
27
- },
28
-
29
- dispatchSchedulePrintJob: async (
30
- body: IDispatchSchedulePrintJobRequest,
31
- ): Promise<IFindScheduleResponse> => {
32
- const response = await api.post(
33
- `${route}dispatch_schedule_print_job`,
34
- body,
35
- );
36
- return response.data;
37
- },
38
-
39
- findByOwner: async (
40
- params: shared.IFindByOwnerIdRequest,
41
- ): Promise<IEntity[]> => {
42
- const response = await api.get(`${route}`, { params });
43
- return response.data;
44
- },
45
- },
46
- apiKey: {
47
- create: async (body: ICreateSchedulePrintJobRequest): Promise<IEntity> => {
48
- const response = await api.post(`${apiKeyRooute}`, body);
49
- return response.data;
50
- },
51
-
52
- deleteOne: async (selector: shared.IFindByIdRequest): Promise<void> => {
53
- await api.delete(`${apiKeyRooute}${selector.id}`);
54
- },
55
-
56
- dispatchSchedulePrintJob: async (
57
- body: IDispatchSchedulePrintJobRequest,
58
- ): Promise<IFindScheduleResponse> => {
59
- const response = await api.post(
60
- `${apiKeyRooute}dispatch_schedule_print_job`,
61
- body,
62
- );
63
- return response.data;
64
- },
65
-
66
- findByOwner: async (
67
- params: shared.IFindByOwnerIdRequest,
68
- ): Promise<IEntity[]> => {
69
- const response = await api.get(`${apiKeyRooute}`, { params });
70
- return response.data;
71
- },
72
- },
73
- };
74
-
75
- export const { apiKey, auth } = routes;
@@ -1,101 +0,0 @@
1
- import { shared, Attribute as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
- export import IAttributeDatatype = Entity.IAttributeDatatype;
7
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
- export import AttributeDatatypeEnum = Entity.AttributeDatatypeEnum;
9
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10
- export import attributeDatatypes = Entity.attributeDatatypes;
11
-
12
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
13
- export import IEntity = Entity.Entity;
14
-
15
- export import IFindRequest = Entity.IFindRequest;
16
- export import IFindResponse = Entity.IFindResponse;
17
-
18
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
19
-
20
- export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
21
- export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
22
-
23
- export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
24
-
25
- export import ICreateRequest = Entity.ICreateRequest;
26
-
27
- export import IUpdateRequest = Entity.IUpdateRequest;
28
- export type IPaginationResponse =
29
- shared.IPaginationResponse<Entity.IFindResponse>;
30
-
31
- export const route = `${serviceHostname}${serviceAuthPath}attribute/`;
32
-
33
- const repository: Entity.IRepository = {
34
- find: async (params: IFindRequest): Promise<IFindResponse[]> => {
35
- const response = await api.get(`${route}`, { params });
36
- return response.data;
37
- },
38
-
39
- findPaginated: async (
40
- params: IFindPaginatedRequest,
41
- ): Promise<IPaginationResponse> => {
42
- const response = await api.get(`${route}paginated`, { params });
43
- return response.data;
44
- },
45
-
46
- findMinified: async (
47
- params?: IFindMinifiedRequest,
48
- ): Promise<IFindMinifiedResponse[]> => {
49
- const response = await api.get(`${route}minified`, {
50
- params,
51
- });
52
- return response.data;
53
- },
54
-
55
- findByOwnerId: async (
56
- params: IFindByOwnerIdRequest,
57
- ): Promise<IFindResponse[]> => {
58
- const response = await api.get(`${route}by_owner`, {
59
- params,
60
- });
61
- return response.data;
62
- },
63
-
64
- findById: async (
65
- selector: shared.IFindByIdRequest,
66
- ): Promise<IFindResponse | null> => {
67
- const response = await api.get(`${route}${selector.id}`);
68
- return response.data;
69
- },
70
-
71
- create: async (body: ICreateRequest): Promise<IFindResponse> => {
72
- const response = await api.post(`${route}`, body);
73
- return response.data;
74
- },
75
-
76
- update: async (
77
- selector: shared.IFindByIdRequest,
78
- body: IUpdateRequest,
79
- ): Promise<IFindResponse | null> => {
80
- const response = await api.put(`${route}${selector.id}`, body);
81
- return response.data;
82
- },
83
-
84
- deleteOne: async (
85
- selector: shared.IFindByIdRequest,
86
- ): Promise<IFindResponse | null> => {
87
- const response = await api.delete(`${route}${selector.id}`);
88
- return response.data;
89
- },
90
- };
91
-
92
- export const {
93
- find,
94
- findPaginated,
95
- findMinified,
96
- findByOwnerId,
97
- findById,
98
- create,
99
- update,
100
- deleteOne,
101
- } = repository;
@@ -1,91 +0,0 @@
1
- import { shared, AttributeValue as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- export import IFindRequest = Entity.IFindRequest;
6
- export import IFindResponse = Entity.IFindResponse;
7
-
8
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
9
-
10
- export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
11
- export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
12
-
13
- export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
14
-
15
- export import ICreateRequest = Entity.ICreateRequest;
16
-
17
- export import IUpdateRequest = Entity.IUpdateRequest;
18
- export type IPaginationResponse =
19
- shared.IPaginationResponse<Entity.IFindResponse>;
20
-
21
- export const route = `${serviceHostname}${serviceAuthPath}attribute_value/`;
22
-
23
- const repository: Entity.IRepository = {
24
- find: async (params: IFindRequest): Promise<IFindResponse[]> => {
25
- const response = await api.get(`${route}`, { params });
26
- return response.data;
27
- },
28
-
29
- findPaginated: async (
30
- params: IFindPaginatedRequest,
31
- ): Promise<IPaginationResponse> => {
32
- const response = await api.get(`${route}paginated`, { params });
33
- return response.data;
34
- },
35
-
36
- findMinified: async (
37
- params?: IFindMinifiedRequest,
38
- ): Promise<IFindMinifiedResponse[]> => {
39
- const response = await api.get(`${route}minified`, {
40
- params,
41
- });
42
- return response.data;
43
- },
44
-
45
- findByOwnerId: async (
46
- params?: IFindByOwnerIdRequest,
47
- ): Promise<IFindResponse[]> => {
48
- const response = await api.get(`${route}by_owner`, {
49
- params,
50
- });
51
- return response.data;
52
- },
53
-
54
- findById: async (
55
- selector: shared.IFindByIdRequest,
56
- ): Promise<IFindResponse | null> => {
57
- const response = await api.get(`${route}${selector.id}`);
58
- return response.data;
59
- },
60
-
61
- create: async (body: ICreateRequest): Promise<IFindResponse> => {
62
- const response = await api.post(`${route}`, body);
63
- return response.data;
64
- },
65
-
66
- update: async (
67
- selector: shared.IFindByIdRequest,
68
- body: IUpdateRequest,
69
- ): Promise<IFindResponse | null> => {
70
- const response = await api.put(`${route}${selector.id}`, body);
71
- return response.data;
72
- },
73
-
74
- deleteOne: async (
75
- selector: shared.IFindByIdRequest,
76
- ): Promise<IFindResponse | null> => {
77
- const response = await api.delete(`${route}${selector.id}`);
78
- return response.data;
79
- },
80
- };
81
-
82
- export const {
83
- find,
84
- findPaginated,
85
- findMinified,
86
- findByOwnerId,
87
- findById,
88
- create,
89
- update,
90
- deleteOne,
91
- } = repository;
@@ -1,105 +0,0 @@
1
- import { shared, Cabide as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- export import ICreateRequest = Entity.ICreateRequest;
6
-
7
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
- export import IEntity = Entity.Entity;
9
-
10
- export import IFindResponse = Entity.IFindResponse;
11
-
12
- export import IFindRequest = Entity.IFindRequest;
13
-
14
- export import IUpdateRequest = Entity.IUpdateRequest;
15
-
16
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
17
- export import cabidesTypesEnum = Entity.cabideTypes;
18
-
19
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
20
- export import ICabideType = Entity.ICabideType;
21
-
22
- export import IFindByIdProviderRequest = Entity.IFindByIdProviderRequest;
23
-
24
- export import IFindByIdProviderResponse = Entity.IFindByIdProviderResponse;
25
-
26
- export import IFindCabideProvidersResponse = Entity.IFindCabideProvidersResponse;
27
-
28
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
29
-
30
- export import IFindWithPaginationResponse = Entity.IFindWithPaginationResponse;
31
-
32
- export const route = `${serviceHostname}${serviceAuthPath}cabide/`;
33
-
34
- const repository: Entity.IRepository = {
35
- create: async (body: ICreateRequest): Promise<IEntity> => {
36
- const response = await api.post(`${route}`, body);
37
- return response.data;
38
- },
39
-
40
- find: async (params: IFindRequest): Promise<IFindResponse[]> => {
41
- const response = await api.get(`${route}`, { params });
42
- return response.data;
43
- },
44
-
45
- findPaginated: async (
46
- params: IFindPaginatedRequest,
47
- ): Promise<IFindWithPaginationResponse> => {
48
- const response = await api.get(`${route}paginated`, { params });
49
- return response.data;
50
- },
51
-
52
- findById: async (
53
- selector: shared.IFindByIdRequest,
54
- ): Promise<IEntity | null> => {
55
- const response = await api.get(`${route}${selector.id}`);
56
- return response.data;
57
- },
58
-
59
- findByIdProvider: async (
60
- selector: IFindByIdProviderRequest,
61
- ): Promise<IFindByIdProviderResponse[]> => {
62
- const response = await api.get(
63
- `${route}'/id_provider/${selector.id_provider}`,
64
- );
65
- return response.data;
66
- },
67
-
68
- print: async (params: shared.IFindByIdRequest): Promise<void> => {
69
- await api.get(`${route}print_label`, {
70
- params,
71
- });
72
- },
73
-
74
- findCabideProviders: async (
75
- params: shared.IFindMinifiedRequest,
76
- ): Promise<IFindCabideProvidersResponse[]> => {
77
- const response = await api.get(`${route}cabide_providers`, {
78
- params,
79
- });
80
- return response.data;
81
- },
82
-
83
- update: async (
84
- selector: shared.IFindByIdRequest,
85
- body: IUpdateRequest,
86
- ): Promise<IEntity | null> => {
87
- const response = await api.put(`${route}${selector.id}`, body);
88
- return response.data;
89
- },
90
-
91
- deleteOne: async (selector: shared.IFindByIdRequest): Promise<void> => {
92
- await api.delete(`${route}${selector.id}`);
93
- },
94
- };
95
-
96
- export const {
97
- findById,
98
- create,
99
- update,
100
- deleteOne,
101
- find,
102
- findPaginated,
103
- print,
104
- findCabideProviders,
105
- } = repository;
@@ -1,67 +0,0 @@
1
- import { shared, CabideProduct as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import * as Product from './product';
4
- import { serviceHostname, serviceAuthPath } from '.';
5
-
6
- export import ICreateRequest = Entity.ICreateRequest;
7
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
- export import IEntity = Entity.Entity;
9
- export import IFindCabideByOwnerResponse = Entity.IFindCabideByOwnerResponse;
10
-
11
- export import ICreateProductByCabideProductIdRequest = Entity.ICreateProductByCabideProductIdRequest;
12
-
13
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
14
-
15
- export import IFindWithPaginationResponse = Entity.IFindWithPaginationResponse;
16
-
17
- export const route = `${serviceHostname}${serviceAuthPath}cabide_product/`;
18
-
19
- const repository: Entity.IRepository = {
20
- create: async (body: ICreateRequest): Promise<IEntity> => {
21
- const response = await api.post(`${route}`, body);
22
- return response.data;
23
- },
24
-
25
- createProductByCabideProductId: async (
26
- body: ICreateProductByCabideProductIdRequest,
27
- ): Promise<Product.IEntityExtended> => {
28
- const response = await api.post(`${route}product`, body);
29
- return response.data;
30
- },
31
-
32
- findByOwner: async (
33
- selector: shared.IFindByOwnerIdRequest,
34
- ): Promise<IFindCabideByOwnerResponse[]> => {
35
- const response = await api.get(`${route}${selector.owner_id}`);
36
- return response.data;
37
- },
38
-
39
- findByOwnerPaginated: async ({
40
- owner_id,
41
- ...params
42
- }: IFindPaginatedRequest): Promise<IFindWithPaginationResponse> => {
43
- const response = await api.get(`${route}${owner_id}/paginated`, {
44
- params,
45
- });
46
- return response.data;
47
- },
48
-
49
- findProductByCabideProductId: async (
50
- selector: shared.IFindByIdRequest,
51
- ): Promise<Product.IEntityExtended[]> => {
52
- const response = await api.get(`${route}product/${selector.id}`);
53
- return response.data;
54
- },
55
-
56
- deleteOne: async (selector: shared.IFindByIdRequest): Promise<void> => {
57
- await api.delete(`${route}${selector.id}`);
58
- },
59
- };
60
-
61
- export const {
62
- create,
63
- deleteOne,
64
- findByOwner,
65
- findByOwnerPaginated,
66
- findProductByCabideProductId,
67
- } = repository;
@@ -1,22 +0,0 @@
1
- import { shared, ClientCurrentAccount as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- export import IEntity = Entity.Entity;
6
-
7
- export import IFindRequest = Entity.IFindRequest;
8
-
9
- export const route = `${serviceHostname}${serviceAuthPath}client_current_account/`;
10
-
11
- const repository: Omit<Entity.IRepository, 'find'> = {
12
- findByOwnerId: async (
13
- params: IFindRequest,
14
- ): Promise<shared.IPaginationResponse<IEntity>> => {
15
- const response = await api.get(`${route}by_owner`, {
16
- params,
17
- });
18
- return response.data;
19
- },
20
- };
21
-
22
- export const { findByOwnerId } = repository;
@@ -1,90 +0,0 @@
1
- import { shared, Color as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- export import IFindRequest = Entity.IFindRequest;
6
- export import IFindResponse = Entity.IFindResponse;
7
-
8
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
9
-
10
- export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
11
- export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
12
-
13
- export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
14
-
15
- export import ICreateRequest = Entity.ICreateRequest;
16
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
17
- export import IEntity = Entity.Entity;
18
-
19
- export import IUpdateRequest = Entity.IUpdateRequest;
20
- export type IPaginationResponse =
21
- shared.IPaginationResponse<Entity.IFindResponse>;
22
-
23
- export const route = `${serviceHostname}${serviceAuthPath}color/`;
24
-
25
- const repository: Entity.IRepository = {
26
- find: async (params: IFindRequest): Promise<IFindResponse[]> => {
27
- const response = await api.get(`${route}`, { params });
28
- return response.data;
29
- },
30
-
31
- findPaginated: async (
32
- params: IFindPaginatedRequest,
33
- ): Promise<IPaginationResponse> => {
34
- const response = await api.get(`${route}paginated`, { params });
35
- return response.data;
36
- },
37
-
38
- findMinified: async (
39
- params?: IFindMinifiedRequest,
40
- ): Promise<IFindMinifiedResponse[]> => {
41
- const response = await api.get(`${route}minified`, {
42
- params,
43
- });
44
- return response.data;
45
- },
46
-
47
- findByOwnerId: async (
48
- params: IFindByOwnerIdRequest,
49
- ): Promise<IFindResponse[]> => {
50
- const response = await api.get(`${route}by_owner`, {
51
- params,
52
- });
53
- return response.data;
54
- },
55
-
56
- findById: async (
57
- selector: shared.IFindByIdRequest,
58
- ): Promise<IFindResponse | null> => {
59
- const response = await api.get(`${route}${selector.id}`);
60
- return response.data;
61
- },
62
-
63
- create: async (body: ICreateRequest): Promise<IFindResponse> => {
64
- const response = await api.post(`${route}`, body);
65
- return response.data;
66
- },
67
-
68
- update: async (
69
- selector: shared.IFindByIdRequest,
70
- body: IUpdateRequest,
71
- ): Promise<IFindResponse | null> => {
72
- const response = await api.put(`${route}${selector.id}`, body);
73
- return response.data;
74
- },
75
-
76
- deleteOne: async (selector: shared.IFindByIdRequest): Promise<void> => {
77
- await api.delete(`${route}${selector.id}`);
78
- },
79
- };
80
-
81
- export const {
82
- find,
83
- findPaginated,
84
- findMinified,
85
- findByOwnerId,
86
- findById,
87
- create,
88
- update,
89
- deleteOne,
90
- } = repository;
@@ -1,81 +0,0 @@
1
- import { shared, Composition as Entity } from '@nomalism-com/types';
2
- import api from '../../shared/client';
3
- import { serviceHostname, serviceAuthPath } from '.';
4
-
5
- export import IFindRequest = Entity.IFindRequest;
6
- export import IFindResponse = Entity.IFindResponse;
7
-
8
- export import IFindPaginatedRequest = Entity.IFindPaginatedRequest;
9
-
10
- export import IFindByOwnerIdRequest = shared.IFindByOwnerIdRequest;
11
- export import IFindByOwnerIdResponse = Entity.IFindByOwnerIdResponse;
12
-
13
- export import ICreateRequest = Entity.ICreateRequest;
14
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
- export import IEntity = Entity.Entity;
16
-
17
- export import IUpdateRequest = Entity.IUpdateRequest;
18
- export type IPaginationResponse =
19
- shared.IPaginationResponse<Entity.IFindResponse>;
20
-
21
- export const route = `${serviceHostname}${serviceAuthPath}composition/`;
22
-
23
- const repository: Entity.IRepository = {
24
- find: async (params: IFindRequest): Promise<IFindResponse[]> => {
25
- const response = await api.get(`${route}`, { params });
26
- return response.data;
27
- },
28
-
29
- findPaginated: async (
30
- params: IFindPaginatedRequest,
31
- ): Promise<IPaginationResponse> => {
32
- const response = await api.get(`${route}paginated`, { params });
33
- return response.data;
34
- },
35
-
36
- findByOwnerId: async (
37
- params: IFindByOwnerIdRequest,
38
- ): Promise<IFindByOwnerIdResponse[]> => {
39
- const response = await api.get(`${route}by_owner`, {
40
- params,
41
- });
42
- return response.data;
43
- },
44
-
45
- findById: async (
46
- selector: shared.IFindByIdRequest,
47
- ): Promise<IFindResponse | null> => {
48
- const response = await api.get(`${route}${selector.id}`);
49
- return response.data;
50
- },
51
-
52
- create: async (body: ICreateRequest): Promise<IFindByOwnerIdResponse> => {
53
- const response = await api.post(`${route}`, body);
54
- return response.data;
55
- },
56
-
57
- update: async (
58
- selector: shared.IFindByIdRequest,
59
- body: IUpdateRequest,
60
- ): Promise<IFindByOwnerIdResponse | null> => {
61
- const response = await api.put(`${route}${selector.id}`, body);
62
- return response.data;
63
- },
64
-
65
- deleteOne: async (
66
- selector: shared.IFindByIdRequest,
67
- ): Promise<IFindByOwnerIdResponse | null> => {
68
- const response = await api.delete(`${route}${selector.id}`);
69
- return response.data;
70
- },
71
- };
72
-
73
- export const {
74
- find,
75
- findPaginated,
76
- findByOwnerId,
77
- findById,
78
- create,
79
- update,
80
- deleteOne,
81
- } = repository;