@axelor/aos-mobile-stock 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/README.md +44 -0
  2. package/lib/api/customer-delivery-api.d.ts +16 -0
  3. package/lib/api/customer-delivery-api.js +122 -0
  4. package/lib/api/customer-delivery-api.js.map +1 -0
  5. package/lib/api/customer-delivery-line-api.d.ts +9 -0
  6. package/lib/api/customer-delivery-line-api.js +65 -0
  7. package/lib/api/customer-delivery-line-api.js.map +1 -0
  8. package/lib/api/index.d.ts +18 -0
  9. package/lib/api/index.js +36 -0
  10. package/lib/api/index.js.map +1 -0
  11. package/lib/api/internal-move-api.d.ts +20 -0
  12. package/lib/api/internal-move-api.js +112 -0
  13. package/lib/api/internal-move-api.js.map +1 -0
  14. package/lib/api/internal-move-line-api.d.ts +4 -0
  15. package/lib/api/internal-move-line-api.js +53 -0
  16. package/lib/api/internal-move-line-api.js.map +1 -0
  17. package/lib/api/inventory-api.d.ts +18 -0
  18. package/lib/api/inventory-api.js +121 -0
  19. package/lib/api/inventory-api.js.map +1 -0
  20. package/lib/api/inventory-line-api.d.ts +18 -0
  21. package/lib/api/inventory-line-api.js +76 -0
  22. package/lib/api/inventory-line-api.js.map +1 -0
  23. package/lib/api/partner-api.d.ts +8 -0
  24. package/lib/api/partner-api.js +155 -0
  25. package/lib/api/partner-api.js.map +1 -0
  26. package/lib/api/product-api.d.ts +26 -0
  27. package/lib/api/product-api.js +189 -0
  28. package/lib/api/product-api.js.map +1 -0
  29. package/lib/api/stock-correction-api.d.ts +17 -0
  30. package/lib/api/stock-correction-api.js +73 -0
  31. package/lib/api/stock-correction-api.js.map +1 -0
  32. package/lib/api/stock-correction-reason-api.d.ts +1 -0
  33. package/lib/api/stock-correction-reason-api.js +24 -0
  34. package/lib/api/stock-correction-reason-api.js.map +1 -0
  35. package/lib/api/stock-location-api.d.ts +7 -0
  36. package/lib/api/stock-location-api.js +121 -0
  37. package/lib/api/stock-location-api.js.map +1 -0
  38. package/lib/api/stock-location-line-api.d.ts +6 -0
  39. package/lib/api/stock-location-line-api.js +114 -0
  40. package/lib/api/stock-location-line-api.js.map +1 -0
  41. package/lib/api/supplier-arrival-api.d.ts +17 -0
  42. package/lib/api/supplier-arrival-api.js +121 -0
  43. package/lib/api/supplier-arrival-api.js.map +1 -0
  44. package/lib/api/supplier-arrival-line-api.d.ts +10 -0
  45. package/lib/api/supplier-arrival-line-api.js +67 -0
  46. package/lib/api/supplier-arrival-line-api.js.map +1 -0
  47. package/lib/api/supplier-catalog-api.d.ts +4 -0
  48. package/lib/api/supplier-catalog-api.js +49 -0
  49. package/lib/api/supplier-catalog-api.js.map +1 -0
  50. package/lib/api/supplychain-config-api.d.ts +1 -0
  51. package/lib/api/supplychain-config-api.js +24 -0
  52. package/lib/api/supplychain-config-api.js.map +1 -0
  53. package/lib/api/tracking-number-api.d.ts +16 -0
  54. package/lib/api/tracking-number-api.js +107 -0
  55. package/lib/api/tracking-number-api.js.map +1 -0
  56. package/lib/api/unit-api.d.ts +1 -0
  57. package/lib/api/unit-api.js +22 -0
  58. package/lib/api/unit-api.js.map +1 -0
  59. package/lib/components/index.d.ts +2 -0
  60. package/lib/components/index.js +20 -0
  61. package/lib/components/index.js.map +1 -0
  62. package/lib/components/molecules/CarrierCard/CarrierCard.d.ts +6 -0
  63. package/lib/components/molecules/CarrierCard/CarrierCard.js +46 -0
  64. package/lib/components/molecules/CarrierCard/CarrierCard.js.map +1 -0
  65. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.d.ts +14 -0
  66. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js +82 -0
  67. package/lib/components/molecules/LocationsMoveCard/LocationsMoveCard.js.map +1 -0
  68. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.d.ts +7 -0
  69. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js +42 -0
  70. package/lib/components/molecules/ProductCardDetails/ProductCardDetails.js.map +1 -0
  71. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.d.ts +10 -0
  72. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js +75 -0
  73. package/lib/components/molecules/StockCorrectionCard/StockCorrectionCard.js.map +1 -0
  74. package/lib/components/molecules/index.d.ts +4 -0
  75. package/lib/components/molecules/index.js +22 -0
  76. package/lib/components/molecules/index.js.map +1 -0
  77. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.d.ts +6 -0
  78. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js +72 -0
  79. package/lib/components/organisms/CardStockIndicator/CardStockIndicator.js.map +1 -0
  80. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.d.ts +12 -0
  81. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js +94 -0
  82. package/lib/components/organisms/CustomerDeliveryCard/CustomerDeliveryCard.js.map +1 -0
  83. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.d.ts +14 -0
  84. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js +81 -0
  85. package/lib/components/organisms/CustomerDeliveryLineCard/CustomerDeliveryLineCard.js.map +1 -0
  86. package/lib/components/organisms/DescriptionCard/DescriptionCard.d.ts +7 -0
  87. package/lib/components/organisms/DescriptionCard/DescriptionCard.js +42 -0
  88. package/lib/components/organisms/DescriptionCard/DescriptionCard.js.map +1 -0
  89. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.d.ts +13 -0
  90. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js +94 -0
  91. package/lib/components/organisms/InternalMoveCard/InternalMoveCard.js.map +1 -0
  92. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.d.ts +13 -0
  93. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js +101 -0
  94. package/lib/components/organisms/InternalMoveLineCard/InternalMoveLineCard.js.map +1 -0
  95. package/lib/components/organisms/InventoryCard/InventoryCard.d.ts +10 -0
  96. package/lib/components/organisms/InventoryCard/InventoryCard.js +88 -0
  97. package/lib/components/organisms/InventoryCard/InventoryCard.js.map +1 -0
  98. package/lib/components/organisms/InventoryHeader/InventoryHeader.d.ts +8 -0
  99. package/lib/components/organisms/InventoryHeader/InventoryHeader.js +77 -0
  100. package/lib/components/organisms/InventoryHeader/InventoryHeader.js.map +1 -0
  101. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.d.ts +14 -0
  102. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js +72 -0
  103. package/lib/components/organisms/InventoryLineCard/InventoryLineCard.js.map +1 -0
  104. package/lib/components/organisms/ProductCard/ProductCard.d.ts +10 -0
  105. package/lib/components/organisms/ProductCard/ProductCard.js +77 -0
  106. package/lib/components/organisms/ProductCard/ProductCard.js.map +1 -0
  107. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.d.ts +10 -0
  108. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js +74 -0
  109. package/lib/components/organisms/ProductCardInfo/ProductCardInfo.js.map +1 -0
  110. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.d.ts +13 -0
  111. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js +79 -0
  112. package/lib/components/organisms/ProductCharacteristics/ProductCharacteristics.js.map +1 -0
  113. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.d.ts +10 -0
  114. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js +89 -0
  115. package/lib/components/organisms/ProductStockLocationCard/ProductStockLocationCard.js.map +1 -0
  116. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.d.ts +19 -0
  117. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js +128 -0
  118. package/lib/components/organisms/ProductVariantCard/ProductVariantCard.js.map +1 -0
  119. package/lib/components/organisms/QuantityCard/QuantityCard.d.ts +12 -0
  120. package/lib/components/organisms/QuantityCard/QuantityCard.js +98 -0
  121. package/lib/components/organisms/QuantityCard/QuantityCard.js.map +1 -0
  122. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.d.ts +9 -0
  123. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js +63 -0
  124. package/lib/components/organisms/SmallPropertyCard/SmallPropertyCard.js.map +1 -0
  125. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.d.ts +9 -0
  126. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js +71 -0
  127. package/lib/components/organisms/StockMoveHeader/StockMoveHeader.js.map +1 -0
  128. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.d.ts +11 -0
  129. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js +93 -0
  130. package/lib/components/organisms/SupplierArrivalCard/SupplierArrivalCard.js.map +1 -0
  131. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.d.ts +13 -0
  132. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js +78 -0
  133. package/lib/components/organisms/SupplierArrivalLineCard/SupplierArrivalLineCard.js.map +1 -0
  134. package/lib/components/organisms/index.d.ts +19 -0
  135. package/lib/components/organisms/index.js +37 -0
  136. package/lib/components/organisms/index.js.map +1 -0
  137. package/lib/features/asyncFunctions-index.d.ts +21 -0
  138. package/lib/features/asyncFunctions-index.js +39 -0
  139. package/lib/features/asyncFunctions-index.js.map +1 -0
  140. package/lib/features/customerDeliveryLineSlice.d.ts +27 -0
  141. package/lib/features/customerDeliveryLineSlice.js +88 -0
  142. package/lib/features/customerDeliveryLineSlice.js.map +1 -0
  143. package/lib/features/customerDeliverySlice.d.ts +38 -0
  144. package/lib/features/customerDeliverySlice.js +102 -0
  145. package/lib/features/customerDeliverySlice.js.map +1 -0
  146. package/lib/features/index.d.ts +21 -0
  147. package/lib/features/index.js +39 -0
  148. package/lib/features/index.js.map +1 -0
  149. package/lib/features/internalMoveLineSlice.d.ts +16 -0
  150. package/lib/features/internalMoveLineSlice.js +71 -0
  151. package/lib/features/internalMoveLineSlice.js.map +1 -0
  152. package/lib/features/internalMoveSlice.d.ts +38 -0
  153. package/lib/features/internalMoveSlice.js +105 -0
  154. package/lib/features/internalMoveSlice.js.map +1 -0
  155. package/lib/features/inventoryLineSlice.d.ts +38 -0
  156. package/lib/features/inventoryLineSlice.js +105 -0
  157. package/lib/features/inventoryLineSlice.js.map +1 -0
  158. package/lib/features/inventorySlice.d.ts +47 -0
  159. package/lib/features/inventorySlice.js +129 -0
  160. package/lib/features/inventorySlice.js.map +1 -0
  161. package/lib/features/partnerSlice.d.ts +25 -0
  162. package/lib/features/partnerSlice.js +65 -0
  163. package/lib/features/partnerSlice.js.map +1 -0
  164. package/lib/features/productIndicatorsSlice.d.ts +37 -0
  165. package/lib/features/productIndicatorsSlice.js +101 -0
  166. package/lib/features/productIndicatorsSlice.js.map +1 -0
  167. package/lib/features/productSlice.d.ts +39 -0
  168. package/lib/features/productSlice.js +105 -0
  169. package/lib/features/productSlice.js.map +1 -0
  170. package/lib/features/productVariantSlice.d.ts +27 -0
  171. package/lib/features/productVariantSlice.js +98 -0
  172. package/lib/features/productVariantSlice.js.map +1 -0
  173. package/lib/features/racksListSlice.d.ts +14 -0
  174. package/lib/features/racksListSlice.js +63 -0
  175. package/lib/features/racksListSlice.js.map +1 -0
  176. package/lib/features/stockAppConfigSlice.d.ts +14 -0
  177. package/lib/features/stockAppConfigSlice.js +49 -0
  178. package/lib/features/stockAppConfigSlice.js.map +1 -0
  179. package/lib/features/stockCorrectionReasonSlice.d.ts +14 -0
  180. package/lib/features/stockCorrectionReasonSlice.js +48 -0
  181. package/lib/features/stockCorrectionReasonSlice.js.map +1 -0
  182. package/lib/features/stockCorrectionSlice.d.ts +38 -0
  183. package/lib/features/stockCorrectionSlice.js +105 -0
  184. package/lib/features/stockCorrectionSlice.js.map +1 -0
  185. package/lib/features/stockLocationLineSlice.d.ts +16 -0
  186. package/lib/features/stockLocationLineSlice.js +71 -0
  187. package/lib/features/stockLocationLineSlice.js.map +1 -0
  188. package/lib/features/stockLocationSlice.d.ts +25 -0
  189. package/lib/features/stockLocationSlice.js +65 -0
  190. package/lib/features/stockLocationSlice.js.map +1 -0
  191. package/lib/features/supplierArrivalLineSlice.d.ts +27 -0
  192. package/lib/features/supplierArrivalLineSlice.js +88 -0
  193. package/lib/features/supplierArrivalLineSlice.js.map +1 -0
  194. package/lib/features/supplierArrivalSlice.d.ts +38 -0
  195. package/lib/features/supplierArrivalSlice.js +105 -0
  196. package/lib/features/supplierArrivalSlice.js.map +1 -0
  197. package/lib/features/supplierCatalogSlice.d.ts +14 -0
  198. package/lib/features/supplierCatalogSlice.js +48 -0
  199. package/lib/features/supplierCatalogSlice.js.map +1 -0
  200. package/lib/features/trackingNumberSlice.d.ts +35 -0
  201. package/lib/features/trackingNumberSlice.js +96 -0
  202. package/lib/features/trackingNumberSlice.js.map +1 -0
  203. package/lib/features/unitSlice.d.ts +14 -0
  204. package/lib/features/unitSlice.js +48 -0
  205. package/lib/features/unitSlice.js.map +1 -0
  206. package/lib/i18n/en.json +103 -0
  207. package/lib/i18n/fr.json +103 -0
  208. package/lib/index.d.ts +14 -0
  209. package/lib/index.js +97 -0
  210. package/lib/index.js.map +1 -0
  211. package/lib/screens/auth/UserScreen.d.ts +4 -0
  212. package/lib/screens/auth/UserScreen.js +54 -0
  213. package/lib/screens/auth/UserScreen.js.map +1 -0
  214. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.d.ts +5 -0
  215. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js +149 -0
  216. package/lib/screens/customerDeliveries/CustomerDeliveryDetailScreen.js.map +1 -0
  217. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.d.ts +5 -0
  218. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js +140 -0
  219. package/lib/screens/customerDeliveries/CustomerDeliveryLineDetailScreen.js.map +1 -0
  220. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.d.ts +5 -0
  221. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js +116 -0
  222. package/lib/screens/customerDeliveries/CustomerDeliveryLineListScreen.js.map +1 -0
  223. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.d.ts +4 -0
  224. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js +130 -0
  225. package/lib/screens/customerDeliveries/CustomerDeliveryListScreen.js.map +1 -0
  226. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.d.ts +5 -0
  227. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js +76 -0
  228. package/lib/screens/customerDeliveries/CustomerDeliverySelectProductScreen.js.map +1 -0
  229. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.d.ts +5 -0
  230. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js +79 -0
  231. package/lib/screens/customerDeliveries/CustomerDeliverySelectTrackingScreen.js.map +1 -0
  232. package/lib/screens/customerDeliveries/index.d.ts +66 -0
  233. package/lib/screens/customerDeliveries/index.js +68 -0
  234. package/lib/screens/customerDeliveries/index.js.map +1 -0
  235. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.d.ts +5 -0
  236. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js +102 -0
  237. package/lib/screens/internalMoves/InternalMoveDetailsGeneralScreen.js.map +1 -0
  238. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.d.ts +5 -0
  239. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js +296 -0
  240. package/lib/screens/internalMoves/InternalMoveLineDetailsScreen.js.map +1 -0
  241. package/lib/screens/internalMoves/InternalMoveLineListScreen.d.ts +5 -0
  242. package/lib/screens/internalMoves/InternalMoveLineListScreen.js +107 -0
  243. package/lib/screens/internalMoves/InternalMoveLineListScreen.js.map +1 -0
  244. package/lib/screens/internalMoves/InternalMoveListScreen.d.ts +4 -0
  245. package/lib/screens/internalMoves/InternalMoveListScreen.js +162 -0
  246. package/lib/screens/internalMoves/InternalMoveListScreen.js.map +1 -0
  247. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.d.ts +5 -0
  248. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js +48 -0
  249. package/lib/screens/internalMoves/InternalMoveSelectFromLocationScreen.js.map +1 -0
  250. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.d.ts +5 -0
  251. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js +98 -0
  252. package/lib/screens/internalMoves/InternalMoveSelectProductScreen.js.map +1 -0
  253. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.d.ts +5 -0
  254. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js +53 -0
  255. package/lib/screens/internalMoves/InternalMoveSelectToLocationScreen.js.map +1 -0
  256. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.d.ts +5 -0
  257. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js +101 -0
  258. package/lib/screens/internalMoves/InternalMoveSelectTrackingScreen.js.map +1 -0
  259. package/lib/screens/internalMoves/index.d.ts +78 -0
  260. package/lib/screens/internalMoves/index.js +78 -0
  261. package/lib/screens/internalMoves/index.js.map +1 -0
  262. package/lib/screens/inventories/InventoryLineDetailsScreen.d.ts +5 -0
  263. package/lib/screens/inventories/InventoryLineDetailsScreen.js +98 -0
  264. package/lib/screens/inventories/InventoryLineDetailsScreen.js.map +1 -0
  265. package/lib/screens/inventories/InventoryLineListScreen.d.ts +5 -0
  266. package/lib/screens/inventories/InventoryLineListScreen.js +122 -0
  267. package/lib/screens/inventories/InventoryLineListScreen.js.map +1 -0
  268. package/lib/screens/inventories/InventoryListScreen.d.ts +4 -0
  269. package/lib/screens/inventories/InventoryListScreen.js +148 -0
  270. package/lib/screens/inventories/InventoryListScreen.js.map +1 -0
  271. package/lib/screens/inventories/InventoryPlannedDetailsScreen.d.ts +5 -0
  272. package/lib/screens/inventories/InventoryPlannedDetailsScreen.js +81 -0
  273. package/lib/screens/inventories/InventoryPlannedDetailsScreen.js.map +1 -0
  274. package/lib/screens/inventories/InventorySelectProductScreen.d.ts +5 -0
  275. package/lib/screens/inventories/InventorySelectProductScreen.js +83 -0
  276. package/lib/screens/inventories/InventorySelectProductScreen.js.map +1 -0
  277. package/lib/screens/inventories/InventorySelectTrackingScreen.d.ts +5 -0
  278. package/lib/screens/inventories/InventorySelectTrackingScreen.js +81 -0
  279. package/lib/screens/inventories/InventorySelectTrackingScreen.js.map +1 -0
  280. package/lib/screens/inventories/InventoryStartedDetailsScreen.d.ts +5 -0
  281. package/lib/screens/inventories/InventoryStartedDetailsScreen.js +110 -0
  282. package/lib/screens/inventories/InventoryStartedDetailsScreen.js.map +1 -0
  283. package/lib/screens/inventories/index.d.ts +77 -0
  284. package/lib/screens/inventories/index.js +76 -0
  285. package/lib/screens/inventories/index.js.map +1 -0
  286. package/lib/screens/products/ProductDetailsScreen.d.ts +5 -0
  287. package/lib/screens/products/ProductDetailsScreen.js +135 -0
  288. package/lib/screens/products/ProductDetailsScreen.js.map +1 -0
  289. package/lib/screens/products/ProductImageScreen.d.ts +4 -0
  290. package/lib/screens/products/ProductImageScreen.js +62 -0
  291. package/lib/screens/products/ProductImageScreen.js.map +1 -0
  292. package/lib/screens/products/ProductListScreen.d.ts +4 -0
  293. package/lib/screens/products/ProductListScreen.js +72 -0
  294. package/lib/screens/products/ProductListScreen.js.map +1 -0
  295. package/lib/screens/products/ProductListVariantScreen.d.ts +5 -0
  296. package/lib/screens/products/ProductListVariantScreen.js +66 -0
  297. package/lib/screens/products/ProductListVariantScreen.js.map +1 -0
  298. package/lib/screens/products/ProductStockDetailsScreen.d.ts +5 -0
  299. package/lib/screens/products/ProductStockDetailsScreen.js +201 -0
  300. package/lib/screens/products/ProductStockDetailsScreen.js.map +1 -0
  301. package/lib/screens/products/ProductStockLocationDetailsScreen.d.ts +4 -0
  302. package/lib/screens/products/ProductStockLocationDetailsScreen.js +110 -0
  303. package/lib/screens/products/ProductStockLocationDetailsScreen.js.map +1 -0
  304. package/lib/screens/products/index.d.ts +46 -0
  305. package/lib/screens/products/index.js +56 -0
  306. package/lib/screens/products/index.js.map +1 -0
  307. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.d.ts +5 -0
  308. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js +271 -0
  309. package/lib/screens/stockCorrections/StockCorrectionDetailsScreen.js.map +1 -0
  310. package/lib/screens/stockCorrections/StockCorrectionListScreen.d.ts +4 -0
  311. package/lib/screens/stockCorrections/StockCorrectionListScreen.js +140 -0
  312. package/lib/screens/stockCorrections/StockCorrectionListScreen.js.map +1 -0
  313. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.d.ts +5 -0
  314. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js +48 -0
  315. package/lib/screens/stockCorrections/StockCorrectionNewLocationScreen.js.map +1 -0
  316. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.d.ts +5 -0
  317. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js +55 -0
  318. package/lib/screens/stockCorrections/StockCorrectionNewProductScreen.js.map +1 -0
  319. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.d.ts +5 -0
  320. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js +54 -0
  321. package/lib/screens/stockCorrections/StockCorrectionNewTrackingScreen.js.map +1 -0
  322. package/lib/screens/stockCorrections/index.d.ts +40 -0
  323. package/lib/screens/stockCorrections/index.js +51 -0
  324. package/lib/screens/stockCorrections/index.js.map +1 -0
  325. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.d.ts +5 -0
  326. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js +87 -0
  327. package/lib/screens/supplierArrivals/SupplierArrivalAddTrackingScreen.js.map +1 -0
  328. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.d.ts +5 -0
  329. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js +120 -0
  330. package/lib/screens/supplierArrivals/SupplierArrivalDetailsScreen.js.map +1 -0
  331. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.d.ts +5 -0
  332. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js +167 -0
  333. package/lib/screens/supplierArrivals/SupplierArrivalLineDetailScreen.js.map +1 -0
  334. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.d.ts +5 -0
  335. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js +107 -0
  336. package/lib/screens/supplierArrivals/SupplierArrivalLineListScreen.js.map +1 -0
  337. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.d.ts +4 -0
  338. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js +126 -0
  339. package/lib/screens/supplierArrivals/SupplierArrivalListScreen.js.map +1 -0
  340. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.d.ts +5 -0
  341. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js +79 -0
  342. package/lib/screens/supplierArrivals/SupplierArrivalSelectProductScreen.js.map +1 -0
  343. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.d.ts +5 -0
  344. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js +106 -0
  345. package/lib/screens/supplierArrivals/SupplierArrivalSelectTrackingScreen.js.map +1 -0
  346. package/lib/screens/supplierArrivals/index.d.ts +77 -0
  347. package/lib/screens/supplierArrivals/index.js +76 -0
  348. package/lib/screens/supplierArrivals/index.js.map +1 -0
  349. package/lib/types/index.d.ts +5 -0
  350. package/lib/types/index.js +23 -0
  351. package/lib/types/index.js.map +1 -0
  352. package/lib/types/inventory.d.ts +16 -0
  353. package/lib/types/inventory.js +88 -0
  354. package/lib/types/inventory.js.map +1 -0
  355. package/lib/types/product.d.ts +16 -0
  356. package/lib/types/product.js +62 -0
  357. package/lib/types/product.js.map +1 -0
  358. package/lib/types/stock-corrrection.d.ts +11 -0
  359. package/lib/types/stock-corrrection.js +47 -0
  360. package/lib/types/stock-corrrection.js.map +1 -0
  361. package/lib/types/stock-location.d.ts +8 -0
  362. package/lib/types/stock-location.js +26 -0
  363. package/lib/types/stock-location.js.map +1 -0
  364. package/lib/types/stock-move.d.ts +36 -0
  365. package/lib/types/stock-move.js +124 -0
  366. package/lib/types/stock-move.js.map +1 -0
  367. package/lib/utils/displayers.d.ts +4 -0
  368. package/lib/utils/displayers.js +22 -0
  369. package/lib/utils/displayers.js.map +1 -0
  370. package/lib/utils/filters.d.ts +6 -0
  371. package/lib/utils/filters.js +77 -0
  372. package/lib/utils/filters.js.map +1 -0
  373. package/package.json +48 -0
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider, getApiResponseData, getFirstData, } from '@axelor/aos-mobile-core';
19
+ import StockLocation from '../types/stock-location';
20
+ const stockLocationFields = [
21
+ 'name',
22
+ 'id',
23
+ 'serialNumber',
24
+ 'stockLocationLineList',
25
+ ];
26
+ const createSearchCriteria = ({ companyId, searchValue, defaultStockLocation, }) => {
27
+ let criterias = [];
28
+ criterias.push({
29
+ fieldName: 'typeSelect',
30
+ operator: '=',
31
+ value: StockLocation.type.internal,
32
+ });
33
+ if (companyId != null) {
34
+ criterias.push({
35
+ fieldName: 'company.id',
36
+ operator: '=',
37
+ value: companyId,
38
+ });
39
+ }
40
+ if (searchValue != null) {
41
+ criterias.push({
42
+ operator: 'or',
43
+ criteria: [
44
+ {
45
+ fieldName: 'name',
46
+ operator: 'like',
47
+ value: searchValue,
48
+ },
49
+ {
50
+ fieldName: 'serialNumber',
51
+ operator: 'like',
52
+ value: searchValue,
53
+ },
54
+ ],
55
+ });
56
+ }
57
+ if (defaultStockLocation != null) {
58
+ criterias.push({
59
+ operator: 'or',
60
+ criteria: [
61
+ {
62
+ fieldName: 'id',
63
+ operator: '=',
64
+ value: defaultStockLocation.id,
65
+ },
66
+ {
67
+ fieldName: 'parentStockLocation.id',
68
+ operator: '=',
69
+ value: defaultStockLocation.id,
70
+ },
71
+ ],
72
+ });
73
+ }
74
+ return criterias;
75
+ };
76
+ export async function searchStockLocationsFilter({ searchValue = null, companyId = null, defaultStockLocation = null, page = 0, }) {
77
+ return axiosApiProvider.post({
78
+ url: '/ws/rest/com.axelor.apps.stock.db.StockLocation/search',
79
+ data: {
80
+ data: {
81
+ criteria: [
82
+ {
83
+ operator: 'and',
84
+ criteria: createSearchCriteria({
85
+ companyId: companyId,
86
+ searchValue: searchValue,
87
+ defaultStockLocation: defaultStockLocation,
88
+ }),
89
+ },
90
+ ],
91
+ },
92
+ fields: stockLocationFields,
93
+ sortBy: ['id', 'name'],
94
+ limit: 10,
95
+ offset: 10 * page,
96
+ },
97
+ });
98
+ }
99
+ export async function searchStockLocationBySerialNumber(serialNumber) {
100
+ return axiosApiProvider
101
+ .post({
102
+ url: '/ws/rest/com.axelor.apps.stock.db.StockLocation/search',
103
+ data: {
104
+ data: {
105
+ criteria: [
106
+ {
107
+ fieldName: 'serialNumber',
108
+ operator: '=',
109
+ value: serialNumber,
110
+ },
111
+ ],
112
+ },
113
+ fields: stockLocationFields,
114
+ limit: 1,
115
+ offset: 0,
116
+ },
117
+ })
118
+ .then(getApiResponseData)
119
+ .then(getFirstData);
120
+ }
121
+ //# sourceMappingURL=stock-location-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stock-location-api.js","sourceRoot":"","sources":["../../src/api/stock-location-api.js"],"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ockLocationLine({ stockId, productId, companyId, page, }: {
2
+ stockId: any;
3
+ productId: any;
4
+ companyId: any;
5
+ page?: number;
6
+ }): Promise<any>;
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ import StockLocation from '../types/stock-location';
20
+ const stockLocationLineFields = [
21
+ 'id',
22
+ 'rack',
23
+ 'stockLocation',
24
+ 'product',
25
+ 'currentQty',
26
+ 'futureQty',
27
+ 'reservedQty',
28
+ 'unit',
29
+ ];
30
+ export async function searchStockLocationLine({ stockId, productId, companyId, page = 0, }) {
31
+ return axiosApiProvider.post({
32
+ url: '/ws/rest/com.axelor.apps.stock.db.StockLocationLine/search',
33
+ data: stockId != null
34
+ ? {
35
+ data: {
36
+ criteria: [
37
+ {
38
+ operator: 'and',
39
+ criteria: [
40
+ {
41
+ fieldName: 'product.id',
42
+ operator: '=',
43
+ value: productId,
44
+ },
45
+ {
46
+ fieldName: 'stockLocation.id',
47
+ operator: '=',
48
+ value: stockId,
49
+ },
50
+ ],
51
+ },
52
+ ],
53
+ },
54
+ fields: stockLocationLineFields,
55
+ limit: 10,
56
+ offset: 10 * page,
57
+ }
58
+ : companyId == null
59
+ ? {
60
+ data: {
61
+ criteria: [
62
+ {
63
+ operator: 'and',
64
+ criteria: [
65
+ {
66
+ fieldName: 'product.id',
67
+ operator: '=',
68
+ value: productId,
69
+ },
70
+ {
71
+ fieldName: 'stockLocation.typeSelect',
72
+ operator: '=',
73
+ value: StockLocation.type.internal,
74
+ },
75
+ ],
76
+ },
77
+ ],
78
+ },
79
+ fields: stockLocationLineFields,
80
+ limit: 10,
81
+ offset: 10 * page,
82
+ }
83
+ : {
84
+ data: {
85
+ criteria: [
86
+ {
87
+ operator: 'and',
88
+ criteria: [
89
+ {
90
+ fieldName: 'product.id',
91
+ operator: '=',
92
+ value: productId,
93
+ },
94
+ {
95
+ fieldName: 'stockLocation.typeSelect',
96
+ operator: '=',
97
+ value: StockLocation.type.internal,
98
+ },
99
+ {
100
+ fieldName: 'stockLocation.company.id',
101
+ operator: '=',
102
+ value: companyId,
103
+ },
104
+ ],
105
+ },
106
+ ],
107
+ },
108
+ fields: stockLocationLineFields,
109
+ limit: 10,
110
+ offset: 10 * page,
111
+ },
112
+ });
113
+ }
114
+ //# sourceMappingURL=stock-location-line-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stock-location-line-api.js","sourceRoot":"","sources":["../../src/api/stock-location-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,MAAM,uBAAuB,GAAG;IAC9B,IAAI;IACJ,MAAM;IACN,eAAe;IACf,SAAS;IACT,YAAY;IACZ,WAAW;IACX,aAAa;IACb,MAAM;CACP,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAC5C,OAAO,EACP,SAAS,EACT,SAAS,EACT,IAAI,GAAG,CAAC,GACT;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,4DAA4D;QACjE,IAAI,EACF,OAAO,IAAI,IAAI;YACb,CAAC,CAAC;gBACE,IAAI,EAAE;oBACJ,QAAQ,EAAE;wBACR;4BACE,QAAQ,E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AAE,uBAAuB;oBAC/B,KAAK,EAAE,EAAE;oBACT,MAAM,EAAE,EAAE,GAAG,IAAI;iBAClB;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,17 @@
1
+ export function searchSupplierArrivalFilter({ searchValue, page }: {
2
+ searchValue: any;
3
+ page?: number;
4
+ }): Promise<any>;
5
+ export function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, conformity, }: {
6
+ stockMoveId: any;
7
+ productId: any;
8
+ unitId: any;
9
+ trackingNumberId: any;
10
+ expectedQty: any;
11
+ realQty: any;
12
+ conformity?: number;
13
+ }): Promise<any>;
14
+ export function realizeSockMove({ stockMoveId, version }: {
15
+ stockMoveId: any;
16
+ version: any;
17
+ }): Promise<any>;
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ import StockMove from '../types/stock-move';
20
+ const supplierArrivalsFields = [
21
+ 'id',
22
+ 'availlableStatusSelect',
23
+ 'filterOnAvailableProducts',
24
+ 'name',
25
+ 'stockMoveLineList',
26
+ 'stockMoveSeq',
27
+ 'fromStockLocation',
28
+ 'company',
29
+ 'originId',
30
+ 'origin',
31
+ 'supplierShipmentRef',
32
+ 'toAddress',
33
+ 'createdOn',
34
+ 'partner',
35
+ 'statusSelect',
36
+ 'realDate',
37
+ 'estimatedDate',
38
+ 'toStockLocation',
39
+ 'fromAddress',
40
+ ];
41
+ const sortByFields = [
42
+ 'statusSelect',
43
+ '-realDate',
44
+ 'estimatedDate',
45
+ 'stockMoveSeq',
46
+ ];
47
+ const createSearchCriteria = searchValue => {
48
+ const criteria = [];
49
+ criteria.push({
50
+ fieldName: 'isReversion',
51
+ operator: '=',
52
+ value: false,
53
+ }, {
54
+ fieldName: 'typeSelect',
55
+ operator: '=',
56
+ value: StockMove.type.incoming,
57
+ }, {
58
+ operator: 'OR',
59
+ criteria: [
60
+ {
61
+ fieldName: 'statusSelect',
62
+ operator: '=',
63
+ value: StockMove.status.Planned,
64
+ },
65
+ {
66
+ fieldName: 'statusSelect',
67
+ operator: '=',
68
+ value: StockMove.status.Realized,
69
+ },
70
+ ],
71
+ });
72
+ if (searchValue != null) {
73
+ criteria.push({
74
+ fieldName: 'stockMoveSeq',
75
+ operator: 'like',
76
+ value: searchValue,
77
+ });
78
+ }
79
+ return criteria;
80
+ };
81
+ export async function searchSupplierArrivalFilter({ searchValue, page = 0 }) {
82
+ return axiosApiProvider.post({
83
+ url: '/ws/rest/com.axelor.apps.stock.db.StockMove/search',
84
+ data: {
85
+ data: {
86
+ criteria: [
87
+ {
88
+ operator: 'and',
89
+ criteria: createSearchCriteria(searchValue),
90
+ },
91
+ ],
92
+ },
93
+ fields: supplierArrivalsFields,
94
+ sortBy: sortByFields,
95
+ limit: 10,
96
+ offset: 10 * page,
97
+ },
98
+ });
99
+ }
100
+ export async function addLineStockMove({ stockMoveId, productId, unitId, trackingNumberId, expectedQty, realQty, conformity = StockMove.conformity.None, }) {
101
+ return axiosApiProvider.post({
102
+ url: `/ws/aos/stock-move/add-line/${stockMoveId}`,
103
+ data: {
104
+ productId: productId,
105
+ unitId: unitId,
106
+ trackingNumberId: trackingNumberId,
107
+ expectedQty: expectedQty,
108
+ realQty: realQty,
109
+ conformity: conformity,
110
+ },
111
+ });
112
+ }
113
+ export async function realizeSockMove({ stockMoveId, version }) {
114
+ return axiosApiProvider.put({
115
+ url: `/ws/aos/stock-move/realize/${stockMoveId}`,
116
+ data: {
117
+ version: version,
118
+ },
119
+ });
120
+ }
121
+ //# sourceMappingURL=supplier-arrival-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-arrival-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,sBAAsB,GAAG;IAC7B,IAAI;IACJ,wBAAwB;IACxB,2BAA2B;IAC3B,MAAM;IACN,mBAAmB;IACnB,cAAc;IACd,mBAAmB;IACnB,SAAS;IACT,UAAU;IACV,QAAQ;IACR,qBAAqB;IACrB,WAAW;IACX,WAAW;IACX,SAAS;IACT,cAAc;IACd,UAAU;IACV,eAAe;IACf,iBAAiB;IACjB,aAAa;CACd,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,cAAc;IACd,WAAW;IACX,eAAe;IACf,cAAc;CACf,CAAC;AAEF,MAAM,oBAAoB,GAAG,WAAW,CAAC,EAAE;IACzC,MAAM,QAAQ,GAAG,EAAE,CAAC;IACpB,QAAQ,CAAC,IAAI,CACX;QACE,SAAS,EAAE,aAAa;QACxB,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,KAAK;KACb,EACD;QACE,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ;KAC/B,EACD;QACE,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE;YACR;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO;aAChC;YACD;gBACE,SAAS,EAAE,cAAc;gBACzB,QAAQ,EAAE,GAAG;gBACb,KAAK,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;IAC1D,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,8BAA8B,WAAW,EAAE;QAChD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;SACjB;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,10 @@
1
+ export function searchSupplierArrivalLines({ supplierArrivalId, page, }: {
2
+ supplierArrivalId: any;
3
+ page?: number;
4
+ }): Promise<any>;
5
+ export function updateLine({ stockMoveLineId, version, realQty, conformity, }: {
6
+ stockMoveLineId: any;
7
+ version: any;
8
+ realQty: any;
9
+ conformity?: number;
10
+ }): Promise<any>;
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ import StockMove from '../types/stock-move';
20
+ const supplierArrivalLineFields = [
21
+ 'id',
22
+ 'product',
23
+ 'availableStatusSelect',
24
+ 'trackingNumber',
25
+ 'unit',
26
+ 'qty',
27
+ 'realQty',
28
+ 'locker',
29
+ 'name',
30
+ 'conformitySelect',
31
+ ];
32
+ export async function searchSupplierArrivalLines({ supplierArrivalId, page = 0, }) {
33
+ return axiosApiProvider.post({
34
+ url: '/ws/rest/com.axelor.apps.stock.db.StockMoveLine/search',
35
+ data: {
36
+ data: {
37
+ criteria: [
38
+ {
39
+ operator: 'and',
40
+ criteria: [
41
+ {
42
+ fieldName: 'stockMove.id',
43
+ operator: '=',
44
+ value: supplierArrivalId,
45
+ },
46
+ ],
47
+ },
48
+ ],
49
+ },
50
+ fields: supplierArrivalLineFields,
51
+ sortBy: ['id'],
52
+ limit: 10,
53
+ offset: 10 * page,
54
+ },
55
+ });
56
+ }
57
+ export async function updateLine({ stockMoveLineId, version, realQty, conformity = StockMove.conformity.None, }) {
58
+ return axiosApiProvider.put({
59
+ url: `/ws/aos/stock-move-line/${stockMoveLineId}`,
60
+ data: {
61
+ version: version,
62
+ realQty: realQty,
63
+ conformity: conformity,
64
+ },
65
+ });
66
+ }
67
+ //# sourceMappingURL=supplier-arrival-line-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-arrival-line-api.js","sourceRoot":"","sources":["../../src/api/supplier-arrival-line-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,MAAM,yBAAyB,GAAG;IAChC,IAAI;IACJ,SAAS;IACT,uBAAuB;IACvB,gBAAgB;IAChB,MAAM;IACN,KAAK;IACL,SAAS;IACT,QAAQ;IACR,MAAM;IACN,kBAAkB;CACnB,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,iBAAiB,EACjB,IAAI,GAAG,CAAC,GACT;IACC,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,wDAAwD;QAC7D,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE;4BACR;gCACE,SAAS,EAAE,cAAc;gCACzB,QAAQ,EAAE,GAAG;gCACb,KAAK,EAAE,iBAAiB;6BACzB;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,yBAAyB;YACjC,MAAM,EAAE,CAAC,IAAI,CAAC;YACd,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE,GAAG,IAAI;SAClB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,EAC/B,eAAe,EACf,OAAO,EACP,OAAO,EACP,UAAU,GAAG,SAAS,CAAC,UAAU,CAAC,IAAI,GACvC;IACC,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,2BAA2B,eAAe,EAAE;QACjD,IAAI,EAAE;YACJ,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,UAAU;SACvB;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ export function searchSupplierProduct({ supplierId, productId }: {
2
+ supplierId: any;
3
+ productId: any;
4
+ }): Promise<any>;
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ export async function searchSupplierProduct({ supplierId, productId }) {
20
+ return axiosApiProvider.post({
21
+ url: '/ws/rest/com.axelor.apps.purchase.db.SupplierCatalog/search',
22
+ data: {
23
+ data: {
24
+ criteria: [
25
+ {
26
+ operator: 'and',
27
+ criteria: [
28
+ {
29
+ fieldName: 'supplierPartner.id',
30
+ operator: '=',
31
+ value: supplierId,
32
+ },
33
+ {
34
+ fieldName: 'product.id',
35
+ operator: '=',
36
+ value: productId,
37
+ },
38
+ ],
39
+ },
40
+ ],
41
+ },
42
+ fields: ['id', 'productSupplierName', 'productSupplierCode'],
43
+ sortBy: ['id'],
44
+ limit: 1,
45
+ offset: 0,
46
+ },
47
+ });
48
+ }
49
+ //# sourceMappingURL=supplier-catalog-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplier-catalog-api.js","sourceRoot":"","sources":["../../src/api/supplier-catalog-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,EAAC,UAAU,EAAE,SAAS,EAAC;IACjE,OAAO,gBAAgB,CAAC,IAAI,CAAC;QAC3B,GAAG,EAAE,6DAA6D;QAClE,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,KAAK;wBACf,QAAQ,EAAE;4BACR;gCACE,SAAS,EAAE,oBAAoB;gCAC/B,QAAQ,EAAE,GAAG;gCACb,KAAK,EAAE,UAAU;6BAClB;4BACD;gCACE,SAAS,EAAE,YAAY;gCACvB,QAAQ,EAAE,GAAG;gCACb,KAAK,EAAE,SAAS;6BACjB;yBACF;qBACF;iBACF;aACF;YACD,MAAM,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;YAC5D,MAAM,EAAE,CAAC,IAAI,CAAC;YACd,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1 @@
1
+ export function fetchSupplychainConfig(): Promise<any>;
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Axelor Business Solutions
3
+ *
4
+ * Copyright (C) 2023 Axelor (<http://axelor.com>).
5
+ *
6
+ * This program is free software: you can redistribute it and/or modify
7
+ * it under the terms of the GNU Affero General Public License, version 3,
8
+ * as published by the Free Software Foundation.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU Affero General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Affero General Public License
16
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+ */
18
+ import { axiosApiProvider } from '@axelor/aos-mobile-core';
19
+ export async function fetchSupplychainConfig() {
20
+ return axiosApiProvider.get({
21
+ url: '/ws/rest/com.axelor.apps.base.db.AppSupplychain',
22
+ });
23
+ }
24
+ //# sourceMappingURL=supplychain-config-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplychain-config-api.js","sourceRoot":"","sources":["../../src/api/supplychain-config-api.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD,MAAM,CAAC,KAAK,UAAU,sBAAsB;IAC1C,OAAO,gBAAgB,CAAC,GAAG,CAAC;QAC1B,GAAG,EAAE,iDAAiD;KACvD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,16 @@
1
+ export function searchTrackingNumberFilter({ productId, searchValue, page, }: {
2
+ productId: any;
3
+ searchValue: any;
4
+ page?: number;
5
+ }): Promise<any>;
6
+ export function searchTrackingNumberBySerialNumber(serialNumber: any): Promise<any>;
7
+ export function createTrackingNumber({ qty, product, trackingNumberSeq }: {
8
+ qty: any;
9
+ product: any;
10
+ trackingNumberSeq: any;
11
+ }): Promise<any>;
12
+ export function updateStockMoveLineTrackingNumber({ stockMoveLineId, stockMoveLineVersion, trackingNumber, }: {
13
+ stockMoveLineId: any;
14
+ stockMoveLineVersion: any;
15
+ trackingNumber: any;
16
+ }): Promise<any>;