@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,19 @@
1
+ export { default as CardStockIndicator } from "./CardStockIndicator/CardStockIndicator";
2
+ export { default as CustomerDeliveryCard } from "./CustomerDeliveryCard/CustomerDeliveryCard";
3
+ export { default as CustomerDeliveryLineCard } from "./CustomerDeliveryLineCard/CustomerDeliveryLineCard";
4
+ export { default as DescriptionCard } from "./DescriptionCard/DescriptionCard";
5
+ export { default as InternalMoveCard } from "./InternalMoveCard/InternalMoveCard";
6
+ export { default as InternalMoveLineCard } from "./InternalMoveLineCard/InternalMoveLineCard";
7
+ export { default as InventoryCard } from "./InventoryCard/InventoryCard";
8
+ export { default as InventoryHeader } from "./InventoryHeader/InventoryHeader";
9
+ export { default as InventoryLineCard } from "./InventoryLineCard/InventoryLineCard";
10
+ export { default as ProductCard } from "./ProductCard/ProductCard";
11
+ export { default as ProductCardInfo } from "./ProductCardInfo/ProductCardInfo";
12
+ export { default as ProductCharacteristics } from "./ProductCharacteristics/ProductCharacteristics";
13
+ export { default as ProductStockLocationCard } from "./ProductStockLocationCard/ProductStockLocationCard";
14
+ export { default as ProductVariantCard } from "./ProductVariantCard/ProductVariantCard";
15
+ export { default as QuantityCard } from "./QuantityCard/QuantityCard";
16
+ export { default as SmallPropertyCard } from "./SmallPropertyCard/SmallPropertyCard";
17
+ export { default as StockMoveHeader } from "./StockMoveHeader/StockMoveHeader";
18
+ export { default as SupplierArrivalCard } from "./SupplierArrivalCard/SupplierArrivalCard";
19
+ export { default as SupplierArrivalLineCard } from "./SupplierArrivalLineCard/SupplierArrivalLineCard";
@@ -0,0 +1,37 @@
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
+ export { default as CardStockIndicator } from './CardStockIndicator/CardStockIndicator';
19
+ export { default as CustomerDeliveryCard } from './CustomerDeliveryCard/CustomerDeliveryCard';
20
+ export { default as CustomerDeliveryLineCard } from './CustomerDeliveryLineCard/CustomerDeliveryLineCard';
21
+ export { default as DescriptionCard } from './DescriptionCard/DescriptionCard';
22
+ export { default as InternalMoveCard } from './InternalMoveCard/InternalMoveCard';
23
+ export { default as InternalMoveLineCard } from './InternalMoveLineCard/InternalMoveLineCard';
24
+ export { default as InventoryCard } from './InventoryCard/InventoryCard';
25
+ export { default as InventoryHeader } from './InventoryHeader/InventoryHeader';
26
+ export { default as InventoryLineCard } from './InventoryLineCard/InventoryLineCard';
27
+ export { default as ProductCard } from './ProductCard/ProductCard';
28
+ export { default as ProductCardInfo } from './ProductCardInfo/ProductCardInfo';
29
+ export { default as ProductCharacteristics } from './ProductCharacteristics/ProductCharacteristics';
30
+ export { default as ProductStockLocationCard } from './ProductStockLocationCard/ProductStockLocationCard';
31
+ export { default as ProductVariantCard } from './ProductVariantCard/ProductVariantCard';
32
+ export { default as QuantityCard } from './QuantityCard/QuantityCard';
33
+ export { default as SmallPropertyCard } from './SmallPropertyCard/SmallPropertyCard';
34
+ export { default as StockMoveHeader } from './StockMoveHeader/StockMoveHeader';
35
+ export { default as SupplierArrivalCard } from './SupplierArrivalCard/SupplierArrivalCard';
36
+ export { default as SupplierArrivalLineCard } from './SupplierArrivalLineCard/SupplierArrivalLineCard';
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/organisms/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,sBAAsB,EAAC,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,qDAAqD,CAAC;AACxG,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,OAAO,IAAI,mBAAmB,EAAC,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAC,OAAO,IAAI,uBAAuB,EAAC,MAAM,mDAAmD,CAAC"}
@@ -0,0 +1,21 @@
1
+ export { fetchCustomerDeliveryLines, updateCustomerDeliveryLine, } from './customerDeliveryLineSlice';
2
+ export { addNewLine as addNewCustomerDeliveryLine, realizeCustomerDelivery, searchDeliveries, } from './customerDeliverySlice';
3
+ export { fetchInternalMoveLines } from './internalMoveLineSlice';
4
+ export { searchInternalMoves, createInternalMove, updateInternalMove, } from './internalMoveSlice';
5
+ export { createNewInventoryLine, fetchInventoryLines, updateInventoryLine, } from './inventoryLineSlice';
6
+ export { searchInventories, modifyDescription, updateInventory, fetchInventoryById, } from './inventorySlice';
7
+ export { filterClients, filterSuppliers } from './partnerSlice';
8
+ export { fetchProductDistribution, fetchProductIndicators, fetchProductsAvailability, } from './productIndicatorsSlice';
9
+ export { searchProducts, fetchProductWithId, updateProductLocker, } from './productSlice';
10
+ export { fetchProductVariants, fetchProductsAttributes, } from './productVariantSlice';
11
+ export { getRacks } from './racksListSlice';
12
+ export { fetchSupplychainConfigForStockApp } from './stockAppConfigSlice';
13
+ export { fetchStockCorrectionReasons } from './stockCorrectionReasonSlice';
14
+ export { fetchStockCorrections, createCorrection, updateCorrection, } from './stockCorrectionSlice';
15
+ export { fetchStockLocationLine } from './stockLocationLineSlice';
16
+ export { searchStockLocations, filterSecondStockLocations, } from './stockLocationSlice';
17
+ export { fetchSupplierArrivalLines, updateSupplierArrivalLine, } from './supplierArrivalLineSlice';
18
+ export { searchSupplierArrivals, addNewLine as addNewSupplierArrivalLine, realizeSupplierArrival, } from './supplierArrivalSlice';
19
+ export { fetchProductForSupplier } from './supplierCatalogSlice';
20
+ export { filterTrackingNumber, createTrackingNumberSeq, updateSupplierTrackingNumber, } from './trackingNumberSlice';
21
+ export { fetchUnit } from './unitSlice';
@@ -0,0 +1,39 @@
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
+ export { fetchCustomerDeliveryLines, updateCustomerDeliveryLine, } from './customerDeliveryLineSlice';
19
+ export { addNewLine as addNewCustomerDeliveryLine, realizeCustomerDelivery, searchDeliveries, } from './customerDeliverySlice';
20
+ export { fetchInternalMoveLines } from './internalMoveLineSlice';
21
+ export { searchInternalMoves, createInternalMove, updateInternalMove, } from './internalMoveSlice';
22
+ export { createNewInventoryLine, fetchInventoryLines, updateInventoryLine, } from './inventoryLineSlice';
23
+ export { searchInventories, modifyDescription, updateInventory, fetchInventoryById, } from './inventorySlice';
24
+ export { filterClients, filterSuppliers } from './partnerSlice';
25
+ export { fetchProductDistribution, fetchProductIndicators, fetchProductsAvailability, } from './productIndicatorsSlice';
26
+ export { searchProducts, fetchProductWithId, updateProductLocker, } from './productSlice';
27
+ export { fetchProductVariants, fetchProductsAttributes, } from './productVariantSlice';
28
+ export { getRacks } from './racksListSlice';
29
+ export { fetchSupplychainConfigForStockApp } from './stockAppConfigSlice';
30
+ export { fetchStockCorrectionReasons } from './stockCorrectionReasonSlice';
31
+ export { fetchStockCorrections, createCorrection, updateCorrection, } from './stockCorrectionSlice';
32
+ export { fetchStockLocationLine } from './stockLocationLineSlice';
33
+ export { searchStockLocations, filterSecondStockLocations, } from './stockLocationSlice';
34
+ export { fetchSupplierArrivalLines, updateSupplierArrivalLine, } from './supplierArrivalLineSlice';
35
+ export { searchSupplierArrivals, addNewLine as addNewSupplierArrivalLine, realizeSupplierArrival, } from './supplierArrivalSlice';
36
+ export { fetchProductForSupplier } from './supplierCatalogSlice';
37
+ export { filterTrackingNumber, createTrackingNumberSeq, updateSupplierTrackingNumber, } from './trackingNumberSlice';
38
+ export { fetchUnit } from './unitSlice';
39
+ //# sourceMappingURL=asyncFunctions-index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncFunctions-index.js","sourceRoot":"","sources":["../../src/features/asyncFunctions-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,UAAU,IAAI,0BAA0B,EACxC,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAC,iCAAiC,EAAC,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAC,2BAA2B,EAAC,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,UAAU,IAAI,yBAAyB,EACvC,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,uBAAuB,EAAC,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC"}
@@ -0,0 +1,27 @@
1
+ export const fetchCustomerDeliveryLines: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const updateCustomerDeliveryLine: import("@reduxjs/toolkit").AsyncThunk<any, void, {
12
+ state?: unknown;
13
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
14
+ extra?: unknown;
15
+ rejectValue?: unknown;
16
+ serializedErrorType?: unknown;
17
+ pendingMeta?: unknown;
18
+ fulfilledMeta?: unknown;
19
+ rejectedMeta?: unknown;
20
+ }>;
21
+ export const customerDeliveryLineReducer: import("redux").Reducer<{
22
+ loadingCDLines: boolean;
23
+ moreLoading: boolean;
24
+ isListEnd: boolean;
25
+ customerDeliveryLineList: any[];
26
+ updateLineResponse: {};
27
+ }, import("redux").AnyAction>;
@@ -0,0 +1,88 @@
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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { handlerApiCall } from '@axelor/aos-mobile-core';
20
+ import { searchCustomerDeliveryLines, updateLine, } from '../api/customer-delivery-line-api';
21
+ export const fetchCustomerDeliveryLines = createAsyncThunk('CustomerDeliveryLines/fetchCustomerDeliveryLine', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: searchCustomerDeliveryLines,
24
+ data,
25
+ action: 'fetch customer delivery line',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ export const updateCustomerDeliveryLine = createAsyncThunk('CustomerDeliveryLines/updateCustomerDeliveryLine', async function (data, { getState }) {
31
+ return handlerApiCall({
32
+ fetchFunction: updateLine,
33
+ data,
34
+ action: 'update customer delivery line',
35
+ getState,
36
+ responseOptions: { showToast: true },
37
+ });
38
+ });
39
+ const initialState = {
40
+ loadingCDLines: false,
41
+ moreLoading: false,
42
+ isListEnd: false,
43
+ customerDeliveryLineList: [],
44
+ updateLineResponse: {},
45
+ };
46
+ const CustomerDeliveryLineSlice = createSlice({
47
+ name: 'customerDeliveryLine',
48
+ initialState,
49
+ extraReducers: builder => {
50
+ builder.addCase(fetchCustomerDeliveryLines.pending, (state, action) => {
51
+ if (action.meta.arg.page === 0) {
52
+ state.loadingCDLines = true;
53
+ }
54
+ else {
55
+ state.moreLoading = true;
56
+ }
57
+ });
58
+ builder.addCase(fetchCustomerDeliveryLines.fulfilled, (state, action) => {
59
+ state.loadingCDLines = false;
60
+ state.moreLoading = false;
61
+ if (action.meta.arg.page === 0) {
62
+ state.customerDeliveryLineList = action.payload;
63
+ state.isListEnd = false;
64
+ }
65
+ else {
66
+ if (action.payload != null) {
67
+ state.isListEnd = false;
68
+ state.customerDeliveryLineList = [
69
+ ...state.customerDeliveryLineList,
70
+ ...action.payload,
71
+ ];
72
+ }
73
+ else {
74
+ state.isListEnd = true;
75
+ }
76
+ }
77
+ });
78
+ builder.addCase(updateCustomerDeliveryLine.pending, state => {
79
+ state.loadingCDLines = true;
80
+ });
81
+ builder.addCase(updateCustomerDeliveryLine.fulfilled, (state, action) => {
82
+ state.loadingCDLines = false;
83
+ state.updateLineResponse = action.payload;
84
+ });
85
+ },
86
+ });
87
+ export const customerDeliveryLineReducer = CustomerDeliveryLineSlice.reducer;
88
+ //# sourceMappingURL=customerDeliveryLineSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerDeliveryLineSlice.js","sourceRoot":"","sources":["../../src/features/customerDeliveryLineSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,2BAA2B,EAC3B,UAAU,GACX,MAAM,mCAAmC,CAAC;AAE3C,MAAM,CAAC,MAAM,0BAA0B,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;YACtE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC;YAC7B,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;YAC1B,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,EAAE;gBAC9B,KAAK,CAAC,wBAAwB,GAAG,MAAM,CAAC,OAAO,CAAC;gBAChD,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;aACzB;iBAAM;gBACL,IAAI,MAAM,CAAC,OAAO,IAAI,IAAI,EAAE;oBAC1B,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;oBACxB,KAAK,CAAC,wBAAwB,GAAG;wBAC/B,GAAG,KAAK,CAAC,wBAAwB;wBACjC,GAAG,MAAM,CAAC,OAAO;qBAClB,CAAC;iBACH;qBAAM;oBACL,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;iBACxB;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;YAC1D,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;QAC9B,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,0BAA0B,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACtE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC;YAC7B,KAAK,CAAC,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,yBAAyB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,38 @@
1
+ export const searchDeliveries: import("@reduxjs/toolkit").AsyncThunk<any, void, {
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const addNewLine: import("@reduxjs/toolkit").AsyncThunk<any, void, {
12
+ state?: unknown;
13
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
14
+ extra?: unknown;
15
+ rejectValue?: unknown;
16
+ serializedErrorType?: unknown;
17
+ pendingMeta?: unknown;
18
+ fulfilledMeta?: unknown;
19
+ rejectedMeta?: unknown;
20
+ }>;
21
+ export const realizeCustomerDelivery: import("@reduxjs/toolkit").AsyncThunk<any, void, {
22
+ state?: unknown;
23
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
24
+ extra?: unknown;
25
+ rejectValue?: unknown;
26
+ serializedErrorType?: unknown;
27
+ pendingMeta?: unknown;
28
+ fulfilledMeta?: unknown;
29
+ rejectedMeta?: unknown;
30
+ }>;
31
+ export const customerDeliveryReducer: import("redux").Reducer<{
32
+ loading: boolean;
33
+ moreLoading: boolean;
34
+ isListEnd: boolean;
35
+ deliveryList: any[];
36
+ newLineResponse: {};
37
+ realizeResponse: {};
38
+ }, import("redux").AnyAction>;
@@ -0,0 +1,102 @@
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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { handlerApiCall } from '@axelor/aos-mobile-core';
20
+ import { addLineStockMove, realizeSockMove, searchDeliveryFilter, } from '../api/customer-delivery-api';
21
+ export const searchDeliveries = createAsyncThunk('deliveries/searchDeliveries', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: searchDeliveryFilter,
24
+ data,
25
+ action: 'filter customer deliveries',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ export const addNewLine = createAsyncThunk('deliveries/addNewLine', async function (data, { getState }) {
31
+ return handlerApiCall({
32
+ fetchFunction: addLineStockMove,
33
+ data,
34
+ action: 'add new line to customer delivery',
35
+ getState,
36
+ responseOptions: { showToast: true },
37
+ });
38
+ });
39
+ export const realizeCustomerDelivery = createAsyncThunk('deliveries/realizeCustomerDelivery', async function (data, { getState }) {
40
+ return handlerApiCall({
41
+ fetchFunction: realizeSockMove,
42
+ data,
43
+ action: 'realize customer delivery',
44
+ getState,
45
+ responseOptions: { showToast: true },
46
+ });
47
+ });
48
+ const initialState = {
49
+ loading: false,
50
+ moreLoading: false,
51
+ isListEnd: false,
52
+ deliveryList: [],
53
+ newLineResponse: {},
54
+ realizeResponse: {},
55
+ };
56
+ const customerDeliverySlice = createSlice({
57
+ name: 'deliveries',
58
+ initialState,
59
+ extraReducers: builder => {
60
+ builder.addCase(searchDeliveries.pending, (state, action) => {
61
+ if (action.meta.arg.page === 0) {
62
+ state.loading = true;
63
+ }
64
+ else {
65
+ state.moreLoading = true;
66
+ }
67
+ });
68
+ builder.addCase(searchDeliveries.fulfilled, (state, action) => {
69
+ state.loading = false;
70
+ state.moreLoading = false;
71
+ if (action.meta.arg.page === 0) {
72
+ state.deliveryList = action.payload;
73
+ state.isListEnd = false;
74
+ }
75
+ else {
76
+ if (action.payload != null) {
77
+ state.isListEnd = false;
78
+ state.deliveryList = [...state.deliveryList, ...action.payload];
79
+ }
80
+ else {
81
+ state.isListEnd = true;
82
+ }
83
+ }
84
+ });
85
+ builder.addCase(addNewLine.pending, state => {
86
+ state.loading = true;
87
+ });
88
+ builder.addCase(addNewLine.fulfilled, (state, action) => {
89
+ state.loading = false;
90
+ state.newLineResponse = action.payload;
91
+ });
92
+ builder.addCase(realizeCustomerDelivery.pending, state => {
93
+ state.loading = true;
94
+ });
95
+ builder.addCase(realizeCustomerDelivery.fulfilled, (state, action) => {
96
+ state.loading = false;
97
+ state.realizeResponse = action.payload;
98
+ });
99
+ },
100
+ });
101
+ export const customerDeliveryReducer = customerDeliverySlice.reducer;
102
+ //# sourceMappingURL=customerDeliverySlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerDeliverySlice.js","sourceRoot":"","sources":["../../src/features/customerDeliverySlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,oBAAoB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,gBAAgB,CAC9C,6BAA6B,EAC7B,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,oBAAoB;QACnC,IAAI;QACJ,MAAM,EAAE,4BAA4B;QACpC,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CACxC,uBAAuB,EACvB,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,gBAAgB;QAC/B,IAAI;QACJ,MAAM,EAAE,mCAAmC;QAC3C,QAAQ;QACR,eAAe,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC;KACnC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GA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CAAC,OAAO,IAAI,IAAI,EAAE;oBAC1B,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;oBACxB,KAAK,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,CAAC,YAAY,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;iBACjE;qBAAM;oBACL,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;iBACxB;aACF;QACH,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;YAC1C,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACtD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC;QACzC,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;YACvD,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YACnE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC,OAAO,CAAC"}
@@ -0,0 +1,21 @@
1
+ export { customerDeliveryReducer as customerDelivery } from "./customerDeliverySlice";
2
+ export { internalMoveLineReducer as internalMoveLine } from "./internalMoveLineSlice";
3
+ export { internalMoveReducer as internalMove } from "./internalMoveSlice";
4
+ export { inventoryReducer as inventory } from "./inventorySlice";
5
+ export { inventoryLineReducer as inventoryLine } from "./inventoryLineSlice";
6
+ export { partnerReducer as partner } from "./partnerSlice";
7
+ export { productIndicatorsReducer as productIndicators } from "./productIndicatorsSlice";
8
+ export { productReducer as product } from "./productSlice";
9
+ export { productVariantReducer as productVariant } from "./productVariantSlice";
10
+ export { stockAppConfigReducer as stockAppConfig } from "./stockAppConfigSlice";
11
+ export { stockCorrectionReasonReducer as stockCorrectionReason } from "./stockCorrectionReasonSlice";
12
+ export { stockCorrectionReducer as stockCorrection } from "./stockCorrectionSlice";
13
+ export { stockLocationLineReducer as stockLocationLine } from "./stockLocationLineSlice";
14
+ export { stockLocationReducer as stockLocation } from "./stockLocationSlice";
15
+ export { supplierArrivalLineReducer as supplierArrivalLine } from "./supplierArrivalLineSlice";
16
+ export { supplierArrivalReducer as supplierArrival } from "./supplierArrivalSlice";
17
+ export { supplierCatalogReducer as supplierCatalog } from "./supplierCatalogSlice";
18
+ export { trackingNumberReducer as trackingNumber } from "./trackingNumberSlice";
19
+ export { unitReducer as unit } from "./unitSlice";
20
+ export { customerDeliveryLineReducer as customerDeliveryLine } from "./customerDeliveryLineSlice";
21
+ export { rackReducer as rack } from "./racksListSlice";
@@ -0,0 +1,39 @@
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
+ export { customerDeliveryReducer as customerDelivery } from './customerDeliverySlice';
19
+ export { internalMoveLineReducer as internalMoveLine } from './internalMoveLineSlice';
20
+ export { internalMoveReducer as internalMove } from './internalMoveSlice';
21
+ export { inventoryReducer as inventory } from './inventorySlice';
22
+ export { inventoryLineReducer as inventoryLine } from './inventoryLineSlice';
23
+ export { partnerReducer as partner } from './partnerSlice';
24
+ export { productIndicatorsReducer as productIndicators } from './productIndicatorsSlice';
25
+ export { productReducer as product } from './productSlice';
26
+ export { productVariantReducer as productVariant } from './productVariantSlice';
27
+ export { stockAppConfigReducer as stockAppConfig } from './stockAppConfigSlice';
28
+ export { stockCorrectionReasonReducer as stockCorrectionReason } from './stockCorrectionReasonSlice';
29
+ export { stockCorrectionReducer as stockCorrection } from './stockCorrectionSlice';
30
+ export { stockLocationLineReducer as stockLocationLine } from './stockLocationLineSlice';
31
+ export { stockLocationReducer as stockLocation } from './stockLocationSlice';
32
+ export { supplierArrivalLineReducer as supplierArrivalLine } from './supplierArrivalLineSlice';
33
+ export { supplierArrivalReducer as supplierArrival } from './supplierArrivalSlice';
34
+ export { supplierCatalogReducer as supplierCatalog } from './supplierCatalogSlice';
35
+ export { trackingNumberReducer as trackingNumber } from './trackingNumberSlice';
36
+ export { unitReducer as unit } from './unitSlice';
37
+ export { customerDeliveryLineReducer as customerDeliveryLine } from './customerDeliveryLineSlice';
38
+ export { rackReducer as rack } from './racksListSlice';
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAC,uBAAuB,IAAI,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAC,mBAAmB,IAAI,YAAY,EAAC,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAC,gBAAgB,IAAI,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAC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AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const internalMoveLineReducer: import("redux").Reducer<{
12
+ loadingIMLines: boolean;
13
+ moreLoading: boolean;
14
+ isListEnd: boolean;
15
+ internalMoveLineList: any[];
16
+ }, import("redux").AnyAction>;
@@ -0,0 +1,71 @@
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 { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
19
+ import { handlerApiCall } from '@axelor/aos-mobile-core';
20
+ import { searchInternalMoveLines } from '../api/internal-move-line-api';
21
+ export const fetchInternalMoveLines = createAsyncThunk('internalMoveLine/fetchInternalMoveLine', async function (data, { getState }) {
22
+ return handlerApiCall({
23
+ fetchFunction: searchInternalMoveLines,
24
+ data,
25
+ action: 'fetch internal move lines',
26
+ getState,
27
+ responseOptions: { isArrayResponse: true },
28
+ });
29
+ });
30
+ const initialState = {
31
+ loadingIMLines: false,
32
+ moreLoading: false,
33
+ isListEnd: false,
34
+ internalMoveLineList: [],
35
+ };
36
+ const internalMoveLineSlice = createSlice({
37
+ name: 'internalMoveLine',
38
+ initialState,
39
+ extraReducers: builder => {
40
+ builder.addCase(fetchInternalMoveLines.pending, (state, action) => {
41
+ if (action.meta.arg.page === 0) {
42
+ state.loadingIMLines = true;
43
+ }
44
+ else {
45
+ state.moreLoading = true;
46
+ }
47
+ });
48
+ builder.addCase(fetchInternalMoveLines.fulfilled, (state, action) => {
49
+ state.loadingIMLines = false;
50
+ state.moreLoading = false;
51
+ if (action.meta.arg.page === 0) {
52
+ state.internalMoveLineList = action.payload;
53
+ state.isListEnd = false;
54
+ }
55
+ else {
56
+ if (action.payload != null) {
57
+ state.isListEnd = false;
58
+ state.internalMoveLineList = [
59
+ ...state.internalMoveLineList,
60
+ ...action.payload,
61
+ ];
62
+ }
63
+ else {
64
+ state.isListEnd = true;
65
+ }
66
+ }
67
+ });
68
+ },
69
+ });
70
+ export const internalMoveLineReducer = internalMoveLineSlice.reducer;
71
+ //# sourceMappingURL=internalMoveLineSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internalMoveLineSlice.js","sourceRoot":"","sources":["../../src/features/internalMoveLineSlice.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,gBAAgB,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,uBAAuB,EAAC,MAAM,+BAA+B,CAAC;AAEtE,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CACpD,wCAAwC,EACxC,KAAK,WAAW,IAAI,EAAE,EAAC,QAAQ,EAAC;IAC9B,OAAO,cAAc,CAAC;QACpB,aAAa,EAAE,uBAAuB;QACtC,IAAI;QACJ,MAAM,EAAE,2BAA2B;QACnC,QAAQ;QACR,eAAe,EAAE,EAAC,eAAe,EAAE,IAAI,EAAC;KACzC,CAAC,CAAC;AACL,CAAC,CACF,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,oBAAoB,EAAE,EAAE;CACzB,CAAC;AAEF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{
2
+ state?: unknown;
3
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
4
+ extra?: unknown;
5
+ rejectValue?: unknown;
6
+ serializedErrorType?: unknown;
7
+ pendingMeta?: unknown;
8
+ fulfilledMeta?: unknown;
9
+ rejectedMeta?: unknown;
10
+ }>;
11
+ export const createInternalMove: import("@reduxjs/toolkit").AsyncThunk<any, void, {
12
+ state?: unknown;
13
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
14
+ extra?: unknown;
15
+ rejectValue?: unknown;
16
+ serializedErrorType?: unknown;
17
+ pendingMeta?: unknown;
18
+ fulfilledMeta?: unknown;
19
+ rejectedMeta?: unknown;
20
+ }>;
21
+ export const updateInternalMove: import("@reduxjs/toolkit").AsyncThunk<any, void, {
22
+ state?: unknown;
23
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction>;
24
+ extra?: unknown;
25
+ rejectValue?: unknown;
26
+ serializedErrorType?: unknown;
27
+ pendingMeta?: unknown;
28
+ fulfilledMeta?: unknown;
29
+ rejectedMeta?: unknown;
30
+ }>;
31
+ export const internalMoveReducer: import("redux").Reducer<{
32
+ loadingInternalMove: boolean;
33
+ moreLoading: boolean;
34
+ isListEnd: boolean;
35
+ internalMoveList: any[];
36
+ createResponse: {};
37
+ updateResponse: {};
38
+ }, import("redux").AnyAction>;