@daffodil/cart 0.87.2 → 0.89.0

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 (463) hide show
  1. package/driver/in-memory/index.d.ts +382 -1
  2. package/driver/index.d.ts +364 -1
  3. package/driver/magento/index.d.ts +995 -1
  4. package/driver/magento/testing/index.d.ts +188 -1
  5. package/driver/testing/index.d.ts +163 -1
  6. package/fesm2022/daffodil-cart-driver-in-memory.mjs +81 -77
  7. package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
  8. package/fesm2022/daffodil-cart-driver-magento-testing.mjs +32 -32
  9. package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
  10. package/fesm2022/daffodil-cart-driver-magento.mjs +78 -78
  11. package/fesm2022/daffodil-cart-driver-magento.mjs.map +1 -1
  12. package/fesm2022/daffodil-cart-driver-testing.mjs +37 -37
  13. package/fesm2022/daffodil-cart-driver-testing.mjs.map +1 -1
  14. package/fesm2022/daffodil-cart-driver.mjs +3 -3
  15. package/fesm2022/daffodil-cart-driver.mjs.map +1 -1
  16. package/fesm2022/daffodil-cart-routing.mjs +37 -37
  17. package/fesm2022/daffodil-cart-routing.mjs.map +1 -1
  18. package/fesm2022/daffodil-cart-state-testing.mjs +16 -16
  19. package/fesm2022/daffodil-cart-state-testing.mjs.map +1 -1
  20. package/fesm2022/daffodil-cart-state.mjs +90 -69
  21. package/fesm2022/daffodil-cart-state.mjs.map +1 -1
  22. package/fesm2022/daffodil-cart-testing.mjs +29 -29
  23. package/fesm2022/daffodil-cart-testing.mjs.map +1 -1
  24. package/fesm2022/daffodil-cart.mjs +3 -3
  25. package/fesm2022/daffodil-cart.mjs.map +1 -1
  26. package/index.d.ts +459 -1
  27. package/package.json +1 -1
  28. package/routing/index.d.ts +240 -1
  29. package/state/index.d.ts +1704 -1
  30. package/state/testing/index.d.ts +130 -1
  31. package/testing/index.d.ts +169 -1
  32. package/driver/errors/cart-not-found.d.ts +0 -9
  33. package/driver/errors/codes.enum.d.ts +0 -12
  34. package/driver/errors/expired-payment-token.d.ts +0 -11
  35. package/driver/errors/invalid-api-response.d.ts +0 -10
  36. package/driver/errors/invalid-country.d.ts +0 -9
  37. package/driver/errors/invalid-coupon-code.d.ts +0 -11
  38. package/driver/errors/invalid-email.d.ts +0 -8
  39. package/driver/errors/invalid-region.d.ts +0 -9
  40. package/driver/errors/item-exceeds-max-qty.d.ts +0 -9
  41. package/driver/errors/map.d.ts +0 -25
  42. package/driver/errors/product-out-of-stock.d.ts +0 -9
  43. package/driver/errors/public_api.d.ts +0 -12
  44. package/driver/errors/unauthorized-for-cart.d.ts +0 -8
  45. package/driver/in-memory/backend/cart/cart.service.d.ts +0 -28
  46. package/driver/in-memory/backend/cart-address/cart-address.service.d.ts +0 -17
  47. package/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.d.ts +0 -19
  48. package/driver/in-memory/backend/cart-coupon/cart-coupon.service.d.ts +0 -26
  49. package/driver/in-memory/backend/cart-items/cart-items.service.d.ts +0 -33
  50. package/driver/in-memory/backend/cart-order/cart-order.service.d.ts +0 -13
  51. package/driver/in-memory/backend/cart-payment/cart-payment.service.d.ts +0 -21
  52. package/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.d.ts +0 -14
  53. package/driver/in-memory/backend/cart-root.service.d.ts +0 -34
  54. package/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.d.ts +0 -19
  55. package/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.d.ts +0 -23
  56. package/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -17
  57. package/driver/in-memory/backend/public_api.d.ts +0 -12
  58. package/driver/in-memory/collection-names.d.ts +0 -11
  59. package/driver/in-memory/drivers/cart/cart.service.d.ts +0 -24
  60. package/driver/in-memory/drivers/cart-address/cart-address.service.d.ts +0 -17
  61. package/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.d.ts +0 -18
  62. package/driver/in-memory/drivers/cart-coupon/cart-coupon.service.d.ts +0 -20
  63. package/driver/in-memory/drivers/cart-driver.module.d.ts +0 -9
  64. package/driver/in-memory/drivers/cart-item/cart-item.service.d.ts +0 -21
  65. package/driver/in-memory/drivers/cart-order/cart-order.service.d.ts +0 -17
  66. package/driver/in-memory/drivers/cart-payment/cart-payment.service.d.ts +0 -20
  67. package/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.d.ts +0 -17
  68. package/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.d.ts +0 -18
  69. package/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.d.ts +0 -19
  70. package/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -17
  71. package/driver/in-memory/drivers/public_api.d.ts +0 -11
  72. package/driver/in-memory/helpers/compute-cart-item-prices.d.ts +0 -3
  73. package/driver/in-memory/helpers/compute-cart-totals.d.ts +0 -3
  74. package/driver/in-memory/injection-tokens/extra-attributes-hook.token.d.ts +0 -4
  75. package/driver/in-memory/injection-tokens/public_api.d.ts +0 -1
  76. package/driver/in-memory/public_api.d.ts +0 -4
  77. package/driver/injection-tokens/free-payment-method.d.ts +0 -2
  78. package/driver/injection-tokens/public_api.d.ts +0 -1
  79. package/driver/interfaces/cart-address-service.interface.d.ts +0 -12
  80. package/driver/interfaces/cart-billing-address-service.interface.d.ts +0 -16
  81. package/driver/interfaces/cart-coupon-service.interface.d.ts +0 -24
  82. package/driver/interfaces/cart-item-service.interface.d.ts +0 -28
  83. package/driver/interfaces/cart-order-service.interface.d.ts +0 -12
  84. package/driver/interfaces/cart-payment-methods-service.interface.d.ts +0 -12
  85. package/driver/interfaces/cart-payment-service.interface.d.ts +0 -22
  86. package/driver/interfaces/cart-service.interface.d.ts +0 -29
  87. package/driver/interfaces/cart-shipping-address-service.interface.d.ts +0 -16
  88. package/driver/interfaces/cart-shipping-information-service.interface.d.ts +0 -21
  89. package/driver/interfaces/cart-shipping-methods-service.interface.d.ts +0 -12
  90. package/driver/interfaces/public_api.d.ts +0 -11
  91. package/driver/magento/cart-address.service.d.ts +0 -26
  92. package/driver/magento/cart-billing-address.service.d.ts +0 -30
  93. package/driver/magento/cart-coupon.service.d.ts +0 -24
  94. package/driver/magento/cart-driver.module.d.ts +0 -9
  95. package/driver/magento/cart-item.service.d.ts +0 -35
  96. package/driver/magento/cart-order.service.d.ts +0 -17
  97. package/driver/magento/cart-payment-methods.service.d.ts +0 -21
  98. package/driver/magento/cart-payment.service.d.ts +0 -34
  99. package/driver/magento/cart-shipping-address.service.d.ts +0 -30
  100. package/driver/magento/cart-shipping-information.service.d.ts +0 -29
  101. package/driver/magento/cart-shipping-methods.service.d.ts +0 -21
  102. package/driver/magento/cart.service.d.ts +0 -32
  103. package/driver/magento/errors/codes.d.ts +0 -5
  104. package/driver/magento/errors/map.d.ts +0 -11
  105. package/driver/magento/errors/transform.d.ts +0 -15
  106. package/driver/magento/injection-tokens/cart-mutation-queue.token.d.ts +0 -2
  107. package/driver/magento/injection-tokens/fragments/cart.d.ts +0 -2
  108. package/driver/magento/injection-tokens/public_api.d.ts +0 -3
  109. package/driver/magento/injection-tokens/transforms/cart/token.d.ts +0 -2
  110. package/driver/magento/injection-tokens/transforms/cart-item/token.d.ts +0 -2
  111. package/driver/magento/interfaces/cart-item-transform.type.d.ts +0 -3
  112. package/driver/magento/interfaces/cart-transform.type.d.ts +0 -6
  113. package/driver/magento/interfaces/public_api.d.ts +0 -2
  114. package/driver/magento/models/public_api.d.ts +0 -2
  115. package/driver/magento/models/requests/billing-address.d.ts +0 -5
  116. package/driver/magento/models/requests/cart-address-base.d.ts +0 -5
  117. package/driver/magento/models/requests/cart-address.d.ts +0 -12
  118. package/driver/magento/models/requests/cart-item-update.d.ts +0 -4
  119. package/driver/magento/models/requests/cart-item.d.ts +0 -11
  120. package/driver/magento/models/requests/payment-method.d.ts +0 -4
  121. package/driver/magento/models/requests/public_api.d.ts +0 -8
  122. package/driver/magento/models/requests/shipping-address.d.ts +0 -4
  123. package/driver/magento/models/requests/shipping-method.d.ts +0 -4
  124. package/driver/magento/models/responses/cart-address.d.ts +0 -19
  125. package/driver/magento/models/responses/cart-coupon.d.ts +0 -3
  126. package/driver/magento/models/responses/cart-item.d.ts +0 -60
  127. package/driver/magento/models/responses/cart-payment-method.d.ts +0 -6
  128. package/driver/magento/models/responses/cart-shipping-method.d.ts +0 -8
  129. package/driver/magento/models/responses/cart.d.ts +0 -33
  130. package/driver/magento/models/responses/public_api.d.ts +0 -9
  131. package/driver/magento/models/responses/shipping-address.d.ts +0 -6
  132. package/driver/magento/models/responses/user-error.enum.d.ts +0 -6
  133. package/driver/magento/models/responses/user-error.type.d.ts +0 -5
  134. package/driver/magento/public_api.d.ts +0 -16
  135. package/driver/magento/queries/add-item/public_api.d.ts +0 -3
  136. package/driver/magento/queries/add-item/query.d.ts +0 -4
  137. package/driver/magento/queries/add-item/response.type.d.ts +0 -9
  138. package/driver/magento/queries/add-item/variables.type.d.ts +0 -5
  139. package/driver/magento/queries/apply-coupon/public_api.d.ts +0 -3
  140. package/driver/magento/queries/apply-coupon/query.d.ts +0 -4
  141. package/driver/magento/queries/apply-coupon/response.type.d.ts +0 -6
  142. package/driver/magento/queries/apply-coupon/variables.type.d.ts +0 -4
  143. package/driver/magento/queries/create-cart/public_api.d.ts +0 -3
  144. package/driver/magento/queries/create-cart/query.d.ts +0 -1
  145. package/driver/magento/queries/create-cart/response.type.d.ts +0 -4
  146. package/driver/magento/queries/create-cart/variables.type.d.ts +0 -2
  147. package/driver/magento/queries/fragments/available-payment-method.d.ts +0 -1
  148. package/driver/magento/queries/fragments/available-shipping-method.d.ts +0 -1
  149. package/driver/magento/queries/fragments/cart-address.d.ts +0 -1
  150. package/driver/magento/queries/fragments/cart-coupon.d.ts +0 -1
  151. package/driver/magento/queries/fragments/cart-item.d.ts +0 -2
  152. package/driver/magento/queries/fragments/cart.d.ts +0 -1
  153. package/driver/magento/queries/fragments/prices.d.ts +0 -1
  154. package/driver/magento/queries/fragments/public_api.d.ts +0 -10
  155. package/driver/magento/queries/fragments/selected-payment-method.d.ts +0 -1
  156. package/driver/magento/queries/fragments/selected-shipping-method.d.ts +0 -1
  157. package/driver/magento/queries/fragments/user-error.d.ts +0 -1
  158. package/driver/magento/queries/get-billing-address/public_api.d.ts +0 -3
  159. package/driver/magento/queries/get-billing-address/query.d.ts +0 -4
  160. package/driver/magento/queries/get-billing-address/response.type.d.ts +0 -8
  161. package/driver/magento/queries/get-billing-address/variables.type.d.ts +0 -3
  162. package/driver/magento/queries/get-cart/public_api.d.ts +0 -3
  163. package/driver/magento/queries/get-cart/query.d.ts +0 -4
  164. package/driver/magento/queries/get-cart/response.type.d.ts +0 -5
  165. package/driver/magento/queries/get-cart/variables.type.d.ts +0 -3
  166. package/driver/magento/queries/get-selected-payment-method/public_api.d.ts +0 -3
  167. package/driver/magento/queries/get-selected-payment-method/query.d.ts +0 -4
  168. package/driver/magento/queries/get-selected-payment-method/response.type.d.ts +0 -7
  169. package/driver/magento/queries/get-selected-payment-method/variables.type.d.ts +0 -3
  170. package/driver/magento/queries/get-selected-shipping-method/public_api.d.ts +0 -3
  171. package/driver/magento/queries/get-selected-shipping-method/query.d.ts +0 -4
  172. package/driver/magento/queries/get-selected-shipping-method/response.type.d.ts +0 -10
  173. package/driver/magento/queries/get-selected-shipping-method/variables.type.d.ts +0 -3
  174. package/driver/magento/queries/get-shipping-address/public_api.d.ts +0 -3
  175. package/driver/magento/queries/get-shipping-address/query.d.ts +0 -4
  176. package/driver/magento/queries/get-shipping-address/response.type.d.ts +0 -8
  177. package/driver/magento/queries/get-shipping-address/variables.type.d.ts +0 -3
  178. package/driver/magento/queries/list-coupons/public_api.d.ts +0 -3
  179. package/driver/magento/queries/list-coupons/query.d.ts +0 -4
  180. package/driver/magento/queries/list-coupons/response.type.d.ts +0 -6
  181. package/driver/magento/queries/list-coupons/variables.type.d.ts +0 -3
  182. package/driver/magento/queries/list-items/public_api.d.ts +0 -3
  183. package/driver/magento/queries/list-items/query.d.ts +0 -4
  184. package/driver/magento/queries/list-items/response.type.d.ts +0 -7
  185. package/driver/magento/queries/list-items/variables.type.d.ts +0 -3
  186. package/driver/magento/queries/list-payment-methods/public_api.d.ts +0 -3
  187. package/driver/magento/queries/list-payment-methods/query.d.ts +0 -4
  188. package/driver/magento/queries/list-payment-methods/response.type.d.ts +0 -7
  189. package/driver/magento/queries/list-payment-methods/variables.type.d.ts +0 -3
  190. package/driver/magento/queries/list-shipping-methods/public_api.d.ts +0 -3
  191. package/driver/magento/queries/list-shipping-methods/query.d.ts +0 -3
  192. package/driver/magento/queries/list-shipping-methods/response.type.d.ts +0 -7
  193. package/driver/magento/queries/list-shipping-methods/variables.type.d.ts +0 -3
  194. package/driver/magento/queries/merge-carts/public_api.d.ts +0 -3
  195. package/driver/magento/queries/merge-carts/query.d.ts +0 -4
  196. package/driver/magento/queries/merge-carts/response.type.d.ts +0 -4
  197. package/driver/magento/queries/merge-carts/variables.type.d.ts +0 -4
  198. package/driver/magento/queries/place-order/public_api.d.ts +0 -3
  199. package/driver/magento/queries/place-order/query.d.ts +0 -2
  200. package/driver/magento/queries/place-order/response.type.d.ts +0 -12
  201. package/driver/magento/queries/place-order/variables.type.d.ts +0 -3
  202. package/driver/magento/queries/public_api.d.ts +0 -28
  203. package/driver/magento/queries/remove-all-coupons/public_api.d.ts +0 -3
  204. package/driver/magento/queries/remove-all-coupons/query.d.ts +0 -4
  205. package/driver/magento/queries/remove-all-coupons/response.type.d.ts +0 -6
  206. package/driver/magento/queries/remove-all-coupons/variables.type.d.ts +0 -3
  207. package/driver/magento/queries/remove-item/public_api.d.ts +0 -3
  208. package/driver/magento/queries/remove-item/query.d.ts +0 -4
  209. package/driver/magento/queries/remove-item/response.type.d.ts +0 -4
  210. package/driver/magento/queries/remove-item/variables.type.d.ts +0 -4
  211. package/driver/magento/queries/set-selected-payment-method/public_api.d.ts +0 -3
  212. package/driver/magento/queries/set-selected-payment-method/query.d.ts +0 -4
  213. package/driver/magento/queries/set-selected-payment-method/response.type.d.ts +0 -4
  214. package/driver/magento/queries/set-selected-payment-method/variables.type.d.ts +0 -5
  215. package/driver/magento/queries/set-selected-payment-method-with-billing/public_api.d.ts +0 -3
  216. package/driver/magento/queries/set-selected-payment-method-with-billing/query.d.ts +0 -4
  217. package/driver/magento/queries/set-selected-payment-method-with-billing/response.type.d.ts +0 -10
  218. package/driver/magento/queries/set-selected-payment-method-with-billing/variables.type.d.ts +0 -6
  219. package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/public_api.d.ts +0 -3
  220. package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.d.ts +0 -4
  221. package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/response.type.d.ts +0 -16
  222. package/driver/magento/queries/set-selected-payment-method-with-billing-and-email/variables.type.d.ts +0 -7
  223. package/driver/magento/queries/set-selected-shipping-method/public_api.d.ts +0 -3
  224. package/driver/magento/queries/set-selected-shipping-method/query.d.ts +0 -4
  225. package/driver/magento/queries/set-selected-shipping-method/response.type.d.ts +0 -4
  226. package/driver/magento/queries/set-selected-shipping-method/variables.type.d.ts +0 -5
  227. package/driver/magento/queries/update-address/public_api.d.ts +0 -3
  228. package/driver/magento/queries/update-address/query.d.ts +0 -11
  229. package/driver/magento/queries/update-address/response.type.d.ts +0 -11
  230. package/driver/magento/queries/update-address/variables.type.d.ts +0 -6
  231. package/driver/magento/queries/update-address-with-email/public_api.d.ts +0 -3
  232. package/driver/magento/queries/update-address-with-email/query.d.ts +0 -11
  233. package/driver/magento/queries/update-address-with-email/response.type.d.ts +0 -18
  234. package/driver/magento/queries/update-address-with-email/variables.type.d.ts +0 -7
  235. package/driver/magento/queries/update-billing-address/public_api.d.ts +0 -3
  236. package/driver/magento/queries/update-billing-address/query.d.ts +0 -4
  237. package/driver/magento/queries/update-billing-address/response.type.d.ts +0 -4
  238. package/driver/magento/queries/update-billing-address/variables.type.d.ts +0 -5
  239. package/driver/magento/queries/update-billing-address-with-email/public_api.d.ts +0 -3
  240. package/driver/magento/queries/update-billing-address-with-email/query.d.ts +0 -4
  241. package/driver/magento/queries/update-billing-address-with-email/response.type.d.ts +0 -11
  242. package/driver/magento/queries/update-billing-address-with-email/variables.type.d.ts +0 -6
  243. package/driver/magento/queries/update-item/public_api.d.ts +0 -3
  244. package/driver/magento/queries/update-item/query.d.ts +0 -4
  245. package/driver/magento/queries/update-item/response.type.d.ts +0 -4
  246. package/driver/magento/queries/update-item/variables.type.d.ts +0 -5
  247. package/driver/magento/queries/update-shipping-address/public_api.d.ts +0 -3
  248. package/driver/magento/queries/update-shipping-address/query.d.ts +0 -4
  249. package/driver/magento/queries/update-shipping-address/response.type.d.ts +0 -4
  250. package/driver/magento/queries/update-shipping-address/variables.type.d.ts +0 -5
  251. package/driver/magento/queries/update-shipping-address-with-email/public_api.d.ts +0 -3
  252. package/driver/magento/queries/update-shipping-address-with-email/query.d.ts +0 -4
  253. package/driver/magento/queries/update-shipping-address-with-email/response.type.d.ts +0 -11
  254. package/driver/magento/queries/update-shipping-address-with-email/variables.type.d.ts +0 -6
  255. package/driver/magento/testing/factories/cart-address-input.factory.d.ts +0 -20
  256. package/driver/magento/testing/factories/cart-address.factory.d.ts +0 -30
  257. package/driver/magento/testing/factories/cart-coupon.factory.d.ts +0 -11
  258. package/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.d.ts +0 -25
  259. package/driver/magento/testing/factories/cart-item/cart-item.factory.d.ts +0 -24
  260. package/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.d.ts +0 -16
  261. package/driver/magento/testing/factories/cart-payment-method.factory.d.ts +0 -13
  262. package/driver/magento/testing/factories/cart-shipping-method.factory.d.ts +0 -17
  263. package/driver/magento/testing/factories/cart.factory.d.ts +0 -38
  264. package/driver/magento/testing/factories/public_api.d.ts +0 -10
  265. package/driver/magento/testing/factories/shipping-address.factory.d.ts +0 -14
  266. package/driver/magento/testing/public_api.d.ts +0 -1
  267. package/driver/magento/transforms/inputs/billing-address.service.d.ts +0 -11
  268. package/driver/magento/transforms/inputs/cart-address.service.d.ts +0 -8
  269. package/driver/magento/transforms/inputs/cart-item-input-transformers.d.ts +0 -5
  270. package/driver/magento/transforms/inputs/cart-item-update.service.d.ts +0 -8
  271. package/driver/magento/transforms/inputs/payment-method.service.d.ts +0 -8
  272. package/driver/magento/transforms/inputs/shipping-address.service.d.ts +0 -11
  273. package/driver/magento/transforms/inputs/shipping-method.service.d.ts +0 -8
  274. package/driver/magento/transforms/outputs/billing-address.service.d.ts +0 -19
  275. package/driver/magento/transforms/outputs/cart-address.service.d.ts +0 -16
  276. package/driver/magento/transforms/outputs/cart-coupon-response.service.d.ts +0 -21
  277. package/driver/magento/transforms/outputs/cart-coupon.d.ts +0 -3
  278. package/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.d.ts +0 -8
  279. package/driver/magento/transforms/outputs/cart-item/cart-item-transformer.d.ts +0 -11
  280. package/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.d.ts +0 -8
  281. package/driver/magento/transforms/outputs/cart-item/simple-cart-item-transformer.d.ts +0 -8
  282. package/driver/magento/transforms/outputs/cart-payment.service.d.ts +0 -16
  283. package/driver/magento/transforms/outputs/cart-shipping-rate.service.d.ts +0 -16
  284. package/driver/magento/transforms/outputs/cart-totals-transformer.d.ts +0 -5
  285. package/driver/magento/transforms/outputs/cart.service.d.ts +0 -36
  286. package/driver/magento/transforms/outputs/shipping-address.service.d.ts +0 -19
  287. package/driver/magento/transforms/public_api.d.ts +0 -12
  288. package/driver/operators/handle-cart-not-found.d.ts +0 -8
  289. package/driver/operators/public_api.d.ts +0 -1
  290. package/driver/public_api.d.ts +0 -5
  291. package/driver/services/public_api.d.ts +0 -1
  292. package/driver/services/resolve.service.d.ts +0 -25
  293. package/driver/testing/drivers/cart/cart.service.d.ts +0 -22
  294. package/driver/testing/drivers/cart-address/cart-address.service.d.ts +0 -16
  295. package/driver/testing/drivers/cart-billing-address/cart-billing-address.service.d.ts +0 -17
  296. package/driver/testing/drivers/cart-coupon/cart-coupon.service.d.ts +0 -19
  297. package/driver/testing/drivers/cart-driver.module.d.ts +0 -9
  298. package/driver/testing/drivers/cart-item/cart-item.service.d.ts +0 -20
  299. package/driver/testing/drivers/cart-order/cart-order.service.d.ts +0 -12
  300. package/driver/testing/drivers/cart-payment/cart-payment.service.d.ts +0 -19
  301. package/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.d.ts +0 -15
  302. package/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.d.ts +0 -17
  303. package/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.d.ts +0 -18
  304. package/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.d.ts +0 -15
  305. package/driver/testing/drivers/public_api.d.ts +0 -12
  306. package/driver/testing/public_api.d.ts +0 -1
  307. package/errors/codes.enum.d.ts +0 -10
  308. package/errors/map.d.ts +0 -10
  309. package/errors/public_api.d.ts +0 -3
  310. package/errors/resolution/cart-not-found-or-created-resolution.d.ts +0 -11
  311. package/errors/resolution/cart-resolution.d.ts +0 -10
  312. package/errors/resolution/cart-server-side-resolution.d.ts +0 -12
  313. package/errors/resolution/cart-storage-resolution.d.ts +0 -11
  314. package/errors/resolution/public_api.d.ts +0 -4
  315. package/helpers/get-affected-item.d.ts +0 -5
  316. package/helpers/get-item-total-discount.d.ts +0 -5
  317. package/helpers/input-to-item-transform.d.ts +0 -5
  318. package/helpers/public_api.d.ts +0 -3
  319. package/injection-tokens/payment-method-map.d.ts +0 -7
  320. package/injection-tokens/public_api.d.ts +0 -1
  321. package/models/cart-address.d.ts +0 -11
  322. package/models/cart-coupon.d.ts +0 -15
  323. package/models/cart-item-input.d.ts +0 -70
  324. package/models/cart-item.d.ts +0 -63
  325. package/models/cart-order-result.d.ts +0 -15
  326. package/models/cart-payment.d.ts +0 -15
  327. package/models/cart-shipping-rate.d.ts +0 -30
  328. package/models/cart-total.d.ts +0 -37
  329. package/models/cart.d.ts +0 -55
  330. package/models/composite-cart-item.d.ts +0 -24
  331. package/models/configurable-cart-item.d.ts +0 -23
  332. package/models/public_api.d.ts +0 -11
  333. package/public_api.d.ts +0 -5
  334. package/routing/cart-routing.module.d.ts +0 -9
  335. package/routing/config/config.d.ts +0 -16
  336. package/routing/config/resolution/config.d.ts +0 -15
  337. package/routing/guards/billing-address/billing-address-guard-redirect.token.d.ts +0 -1
  338. package/routing/guards/billing-address/billing-address.guard.d.ts +0 -19
  339. package/routing/guards/cart-items/cart-items-guard-redirect.token.d.ts +0 -1
  340. package/routing/guards/cart-items/cart-items.guard.d.ts +0 -20
  341. package/routing/guards/in-stock-items/in-stock-items-guard-redirect.token.d.ts +0 -1
  342. package/routing/guards/in-stock-items/in-stock-items.guard.d.ts +0 -21
  343. package/routing/guards/order-result/order-result-guard-redirect.token.d.ts +0 -1
  344. package/routing/guards/order-result/order-result.guard.d.ts +0 -17
  345. package/routing/guards/payment-method/payment-method-guard-redirect.token.d.ts +0 -1
  346. package/routing/guards/payment-method/payment-method.guard.d.ts +0 -19
  347. package/routing/guards/public_api.d.ts +0 -17
  348. package/routing/guards/resolve-cart/redirect.token.d.ts +0 -1
  349. package/routing/guards/resolve-cart/resolve-cart.guard.d.ts +0 -22
  350. package/routing/guards/resolved-cart/resolved-cart.guard.d.ts +0 -21
  351. package/routing/guards/shipping-address/shipping-address-guard-redirect.token.d.ts +0 -1
  352. package/routing/guards/shipping-address/shipping-address.guard.d.ts +0 -19
  353. package/routing/guards/shipping-method/shipping-method-guard-redirect.token.d.ts +0 -1
  354. package/routing/guards/shipping-method/shipping-method.guard.d.ts +0 -19
  355. package/routing/public_api.d.ts +0 -5
  356. package/routing/resolvers/cart-resolver.service.d.ts +0 -20
  357. package/routing/resolvers/empty-cart-resolver.service.d.ts +0 -20
  358. package/routing/resolvers/public_api.d.ts +0 -4
  359. package/routing/resolvers/tokens/cart-resolver-redirect.token.d.ts +0 -1
  360. package/routing/resolvers/tokens/empty-cart-resolver-redirect.token.d.ts +0 -1
  361. package/state/actions/cart-address.actions.d.ts +0 -40
  362. package/state/actions/cart-billing-address.actions.d.ts +0 -65
  363. package/state/actions/cart-coupon.actions.d.ts +0 -124
  364. package/state/actions/cart-item.actions.d.ts +0 -188
  365. package/state/actions/cart-order.actions.d.ts +0 -39
  366. package/state/actions/cart-payment-methods.actions.d.ts +0 -38
  367. package/state/actions/cart-payment.actions.d.ts +0 -135
  368. package/state/actions/cart-retrieval.d.ts +0 -5
  369. package/state/actions/cart-shipping-address.actions.d.ts +0 -65
  370. package/state/actions/cart-shipping-information.actions.d.ts +0 -86
  371. package/state/actions/cart-shipping-methods.actions.d.ts +0 -32
  372. package/state/actions/cart.actions.d.ts +0 -184
  373. package/state/actions/public_api.d.ts +0 -12
  374. package/state/cart-retrieval/get-response.d.ts +0 -8
  375. package/state/cart-retrieval/public_api.d.ts +0 -3
  376. package/state/cart-retrieval/token.d.ts +0 -2
  377. package/state/cart-retrieval/type.d.ts +0 -40
  378. package/state/cart-state.module.d.ts +0 -8
  379. package/state/effects/cart-address.effects.d.ts +0 -16
  380. package/state/effects/cart-billing-address.effects.d.ts +0 -17
  381. package/state/effects/cart-coupon.effects.d.ts +0 -19
  382. package/state/effects/cart-item.effects.d.ts +0 -26
  383. package/state/effects/cart-order.effects.d.ts +0 -17
  384. package/state/effects/cart-payment-methods.effects.d.ts +0 -16
  385. package/state/effects/cart-payment-processor.effects.d.ts +0 -40
  386. package/state/effects/cart-payment.effects.d.ts +0 -19
  387. package/state/effects/cart-resolver.effects.d.ts +0 -27
  388. package/state/effects/cart-shipping-address.effects.d.ts +0 -17
  389. package/state/effects/cart-shipping-information.effects.d.ts +0 -18
  390. package/state/effects/cart-shipping-methods.effects.d.ts +0 -16
  391. package/state/effects/cart.effects.d.ts +0 -19
  392. package/state/effects/public_api.d.ts +0 -1
  393. package/state/facades/cart/cart-facade.interface.d.ts +0 -212
  394. package/state/facades/cart/cart.facade.d.ts +0 -90
  395. package/state/helpers/cart-items-entity-transform.d.ts +0 -12
  396. package/state/helpers/public_api.d.ts +0 -1
  397. package/state/injection-tokens/cart-item-state-debounce-time.d.ts +0 -1
  398. package/state/injection-tokens/error-matcher.token.d.ts +0 -2
  399. package/state/injection-tokens/public_api.d.ts +0 -2
  400. package/state/models/public_api.d.ts +0 -1
  401. package/state/models/stateful-cart.d.ts +0 -8
  402. package/state/public_api.d.ts +0 -10
  403. package/state/reducers/action-types.type.d.ts +0 -3
  404. package/state/reducers/cart/cart.reducer.d.ts +0 -4
  405. package/state/reducers/cart/retrieval-actions.reducer.d.ts +0 -9
  406. package/state/reducers/cart-billing-address/cart-billing-address.reducer.d.ts +0 -4
  407. package/state/reducers/cart-coupon/cart-coupon.reducer.d.ts +0 -4
  408. package/state/reducers/cart-initial-state.d.ts +0 -2
  409. package/state/reducers/cart-item/cart-item.reducer.d.ts +0 -4
  410. package/state/reducers/cart-item-entities/adapter.d.ts +0 -6
  411. package/state/reducers/cart-item-entities/cart-item-entities.reducer.d.ts +0 -11
  412. package/state/reducers/cart-item-entities/retrieval-actions.reducer.d.ts +0 -9
  413. package/state/reducers/cart-item-entities/set-state-meta-reducer.d.ts +0 -10
  414. package/state/reducers/cart-operation-type.enum.d.ts +0 -15
  415. package/state/reducers/cart-order/cart-order-initial-state.d.ts +0 -2
  416. package/state/reducers/cart-order/cart-order-state.interface.d.ts +0 -7
  417. package/state/reducers/cart-order/cart-order.reducer.d.ts +0 -4
  418. package/state/reducers/cart-payment/cart-payment.reducer.d.ts +0 -4
  419. package/state/reducers/cart-payment/payment.reducer.d.ts +0 -3
  420. package/state/reducers/cart-payment-methods/cart-payment-methods.reducer.d.ts +0 -4
  421. package/state/reducers/cart-reducers-state.interface.d.ts +0 -13
  422. package/state/reducers/cart-reducers.d.ts +0 -3
  423. package/state/reducers/cart-resolve/cart-resolve-state.enum.d.ts +0 -7
  424. package/state/reducers/cart-resolve/cart-resolve.reducer.d.ts +0 -4
  425. package/state/reducers/cart-shipping-address/cart-shipping-address.reducer.d.ts +0 -4
  426. package/state/reducers/cart-shipping-information/cart-shipping-information.reducer.d.ts +0 -4
  427. package/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.d.ts +0 -4
  428. package/state/reducers/cart-state.interface.d.ts +0 -10
  429. package/state/reducers/cart-store-feature-key.d.ts +0 -1
  430. package/state/reducers/cart.reducer.d.ts +0 -8
  431. package/state/reducers/errors/cart-errors.type.d.ts +0 -5
  432. package/state/reducers/errors/error-state-helpers.d.ts +0 -29
  433. package/state/reducers/loading/cart-loading.type.d.ts +0 -27
  434. package/state/reducers/public_api.d.ts +0 -17
  435. package/state/reducers/token/config.token.d.ts +0 -8
  436. package/state/reducers/token/extra.token.d.ts +0 -3
  437. package/state/reducers/token/meta.token.d.ts +0 -3
  438. package/state/reducers/token/public_api.d.ts +0 -2
  439. package/state/reducers/token/reducers.token.d.ts +0 -3
  440. package/state/selectors/cart/cart.selector.d.ts +0 -178
  441. package/state/selectors/cart-feature.selector.d.ts +0 -7
  442. package/state/selectors/cart-item-entities/cart-item-entities.selectors.d.ts +0 -26
  443. package/state/selectors/cart-order/cart-order.selector.d.ts +0 -20
  444. package/state/selectors/cart.selector.d.ts +0 -8
  445. package/state/selectors/public_api.d.ts +0 -1
  446. package/state/testing/cart-testing.module.d.ts +0 -6
  447. package/state/testing/factories/stateful-cart-item.factory.d.ts +0 -18
  448. package/state/testing/factories/stateful-composite-cart-item.factory.d.ts +0 -18
  449. package/state/testing/factories/stateful-configurable-cart-item.factory.d.ts +0 -18
  450. package/state/testing/mock-cart-facade.d.ts +0 -77
  451. package/state/testing/public_api.d.ts +0 -5
  452. package/storage/cart-storage.service.d.ts +0 -23
  453. package/testing/factories/cart-address.factory.d.ts +0 -26
  454. package/testing/factories/cart-coupon.factory.d.ts +0 -13
  455. package/testing/factories/cart-item/cart-item.factory.d.ts +0 -30
  456. package/testing/factories/cart-item/composite-cart-item.factory.d.ts +0 -20
  457. package/testing/factories/cart-item/configurable-cart-item.factory.d.ts +0 -19
  458. package/testing/factories/cart-payment.factory.d.ts +0 -11
  459. package/testing/factories/cart-shipping-rate.factory.d.ts +0 -17
  460. package/testing/factories/cart-total.factory.d.ts +0 -23
  461. package/testing/factories/cart.factory.d.ts +0 -26
  462. package/testing/factories/public_api.d.ts +0 -9
  463. package/testing/public_api.d.ts +0 -1
@@ -1,26 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCartItemInput, DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartDriverResolveService, DaffCartItemServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartItemLoadFailure, DaffCartItemDeleteFailure, DaffCartItemUpdateFailure, DaffCartItemListFailure, DaffCartItemAddFailure, DaffCartItemStateReset, DaffCartItemDeleteOutOfStockFailure, DaffCartItemActions } from '../actions/public_api';
6
- import { DaffCartFacade } from '../facades/cart/cart.facade';
7
- import * as i0 from "@angular/core";
8
- export declare class DaffCartItemEffects<T extends DaffCart = DaffCart, U extends DaffCartItemInput = DaffCartItemInput> {
9
- private actions$;
10
- private errorMatcher;
11
- private driver;
12
- private storage;
13
- private cartItemStateDebounceTime;
14
- private cartResolver;
15
- private cartFacade;
16
- constructor(actions$: Actions<DaffCartItemActions<T, U>>, errorMatcher: ErrorTransformer, driver: DaffCartItemServiceInterface<T, U>, storage: DaffCartStorageService, cartItemStateDebounceTime: number, cartResolver: DaffCartDriverResolveService<T>, cartFacade: DaffCartFacade<T>);
17
- list$: import("rxjs").Observable<DaffCartItemListFailure> & import("@ngrx/effects").CreateEffectMetadata;
18
- get$: import("rxjs").Observable<DaffCartItemLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
19
- add$: import("rxjs").Observable<DaffCartItemAddFailure> & import("@ngrx/effects").CreateEffectMetadata;
20
- update$: import("rxjs").Observable<DaffCartItemUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
21
- resetCartItemStateAfterChange$: import("rxjs").Observable<DaffCartItemStateReset> & import("@ngrx/effects").CreateEffectMetadata;
22
- delete$: import("rxjs").Observable<DaffCartItemDeleteFailure> & import("@ngrx/effects").CreateEffectMetadata;
23
- removeOutOfStock$: import("rxjs").Observable<DaffCartItemDeleteOutOfStockFailure> & import("@ngrx/effects").CreateEffectMetadata;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartItemEffects<any, any>, never>;
25
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartItemEffects<any, any>>;
26
- }
@@ -1,17 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCart, DaffCartOrderResult, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartOrderServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartPlaceOrderFailure, DaffCartStorageFailure, DaffCartCreate, DaffCartOrderActions } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartOrderEffects<T extends DaffCart = DaffCart, R extends DaffCartOrderResult = DaffCartOrderResult> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions<DaffCartOrderActions>, errorMatcher: ErrorTransformer, driver: DaffCartOrderServiceInterface<T, R>, storage: DaffCartStorageService);
13
- placeOrder$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartPlaceOrderFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- resetCart$: import("rxjs").Observable<DaffCartCreate> & import("@ngrx/effects").CreateEffectMetadata;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartOrderEffects<any, any>, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartOrderEffects<any, any>>;
17
- }
@@ -1,16 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCartPaymentMethod, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartPaymentMethodsServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartPaymentMethodsLoadFailure } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartPaymentMethodsEffects<T extends DaffCartPaymentMethod> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions, errorMatcher: ErrorTransformer, driver: DaffCartPaymentMethodsServiceInterface<T>, storage: DaffCartStorageService);
13
- list$: import("rxjs").Observable<DaffCartPaymentMethodsLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartPaymentMethodsEffects<any>, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartPaymentMethodsEffects<any>>;
16
- }
@@ -1,40 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { Actions } from '@ngrx/effects';
3
- import { Observable } from 'rxjs';
4
- import { DaffCart } from '@daffodil/cart';
5
- import { DaffCartDriverResolveService, DaffCartPaymentServiceInterface } from '@daffodil/cart/driver';
6
- import { DaffError } from '@daffodil/core';
7
- import { ErrorTransformer } from '@daffodil/core/state';
8
- import { DaffPaymentRequest, DaffPaymentResponse } from '@daffodil/payment';
9
- import { DaffPaymentDriverInterface } from '@daffodil/payment/driver';
10
- import { DaffPaymentProcessorCollection, DaffPaymentGenerateTokenFailure, DaffPaymentGenerateTokenPayload } from '@daffodil/payment/state';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * Performs a payment update on the current cart.
14
- *
15
- * @param payload The generate token request.
16
- * @param deps DI deps.
17
- * @param cbs Return the actions and/or perform custom behavior in response to each particular case.
18
- */
19
- export declare function daffCartPaymentProcessorUpdate<Cart extends DaffCart = DaffCart, Request extends DaffPaymentRequest = DaffPaymentRequest, Response extends DaffPaymentResponse = DaffPaymentResponse, Success = unknown, PaymentFailure = unknown, UpdateFailure = unknown>(payload: DaffPaymentGenerateTokenPayload<Request>, deps: {
20
- cartDriver: DaffCartPaymentServiceInterface<Cart>;
21
- paymentDriver: DaffPaymentDriverInterface<Response>;
22
- cartResolver: DaffCartDriverResolveService;
23
- }, cbs: {
24
- success: (resp: Cart) => Observable<Success>;
25
- paymentFailure: (errors: Array<DaffError>) => Observable<PaymentFailure>;
26
- updateFailure: (errors: Array<DaffError>) => Observable<UpdateFailure>;
27
- }): Observable<PaymentFailure>;
28
- export declare class DaffCartPaymentProcessorEffects<T extends DaffCart = DaffCart> {
29
- private actions$;
30
- private processors;
31
- private errorMatcher;
32
- private paymentErrorMatcher;
33
- private driver;
34
- private cartResolver;
35
- private injector;
36
- constructor(actions$: Actions, processors: DaffPaymentProcessorCollection, errorMatcher: ErrorTransformer, paymentErrorMatcher: ErrorTransformer, driver: DaffCartPaymentServiceInterface<T>, cartResolver: DaffCartDriverResolveService<T>, injector: Injector);
37
- update$: Observable<DaffPaymentGenerateTokenFailure> & import("@ngrx/effects").CreateEffectMetadata;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartPaymentProcessorEffects<any>, never>;
39
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartPaymentProcessorEffects<any>>;
40
- }
@@ -1,19 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartPaymentServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartPaymentLoadFailure, DaffCartPaymentRemoveFailure, DaffCartPaymentUpdateFailure, DaffCartPaymentUpdateWithBillingFailure, DaffCartPaymentActions } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartPaymentEffects<T extends DaffCart = DaffCart> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions<DaffCartPaymentActions<T>>, errorMatcher: ErrorTransformer, driver: DaffCartPaymentServiceInterface<T>, storage: DaffCartStorageService);
13
- get$: import("rxjs").Observable<DaffCartPaymentLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- update$: import("rxjs").Observable<DaffCartPaymentUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
15
- updateWithBilling$: import("rxjs").Observable<DaffCartPaymentUpdateWithBillingFailure> & import("@ngrx/effects").CreateEffectMetadata;
16
- remove$: import("rxjs").Observable<DaffCartPaymentRemoveFailure> & import("@ngrx/effects").CreateEffectMetadata;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartPaymentEffects<any>, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartPaymentEffects<any>>;
19
- }
@@ -1,27 +0,0 @@
1
- import { Actions, OnInitEffects } from '@ngrx/effects';
2
- import { Action } from '@ngrx/store';
3
- import { Observable } from 'rxjs';
4
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
5
- import { DaffCartDriverResolveService } from '@daffodil/cart/driver';
6
- import { ErrorTransformer } from '@daffodil/core/state';
7
- import { DaffCartActions } from '../actions/public_api';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * An effect for resolving a guest cart for a customer.
11
- * It will:
12
- * 1. Check storage for an id, and retrieve the cart if it exists.
13
- * 2. If a cart doesn't exist, it will attempt to create a new cart exactly once.
14
- * 3. If the cart resolution fails, it will bailout.
15
- */
16
- export declare class DaffCartResolverEffects<T extends DaffCart = DaffCart> implements OnInitEffects {
17
- private actions$;
18
- private errorMatcher;
19
- private cartStorage;
20
- private cartResolver;
21
- private platformId;
22
- constructor(actions$: Actions<DaffCartActions<T>>, errorMatcher: ErrorTransformer, cartStorage: DaffCartStorageService, cartResolver: DaffCartDriverResolveService, platformId: string);
23
- ngrxOnInitEffects(): Action;
24
- onResolveCart: (() => Observable<Action>) & import("@ngrx/effects").CreateEffectMetadata;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartResolverEffects<any>, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartResolverEffects<any>>;
27
- }
@@ -1,17 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartShippingAddressServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartShippingAddressLoadFailure, DaffCartShippingAddressUpdateFailure, DaffCartShippingAddressActions } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartShippingAddressEffects<T extends DaffCart = DaffCart> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions<DaffCartShippingAddressActions<T>>, errorMatcher: ErrorTransformer, driver: DaffCartShippingAddressServiceInterface<T>, storage: DaffCartStorageService);
13
- get$: import("rxjs").Observable<DaffCartShippingAddressLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- update$: import("rxjs").Observable<DaffCartShippingAddressUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartShippingAddressEffects<any>, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartShippingAddressEffects<any>>;
17
- }
@@ -1,18 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartShippingInformationServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartShippingInformationLoadFailure, DaffCartShippingInformationDeleteFailure, DaffCartShippingInformationUpdateFailure, DaffCartShippingInformationActions } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartShippingInformationEffects<T extends DaffCart = DaffCart> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions<DaffCartShippingInformationActions<T>>, errorMatcher: ErrorTransformer, driver: DaffCartShippingInformationServiceInterface<T>, storage: DaffCartStorageService);
13
- get$: import("rxjs").Observable<DaffCartShippingInformationLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- update$: import("rxjs").Observable<DaffCartShippingInformationUpdateFailure> & import("@ngrx/effects").CreateEffectMetadata;
15
- delete$: import("rxjs").Observable<DaffCartShippingInformationDeleteFailure> & import("@ngrx/effects").CreateEffectMetadata;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartShippingInformationEffects<any>, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartShippingInformationEffects<any>>;
18
- }
@@ -1,16 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCartShippingRate, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartShippingMethodsServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartShippingMethodsLoadFailure } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartShippingMethodsEffects<T extends DaffCartShippingRate> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions, errorMatcher: ErrorTransformer, driver: DaffCartShippingMethodsServiceInterface<T>, storage: DaffCartStorageService);
13
- list$: import("rxjs").Observable<DaffCartShippingMethodsLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartShippingMethodsEffects<any>, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartShippingMethodsEffects<any>>;
16
- }
@@ -1,19 +0,0 @@
1
- import { Actions } from '@ngrx/effects';
2
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffCartServiceInterface } from '@daffodil/cart/driver';
4
- import { ErrorTransformer } from '@daffodil/core/state';
5
- import { DaffCartLoadFailure, DaffCartClearFailure, DaffCartCreateFailure, DaffCartStorageFailure } from '../actions/public_api';
6
- import * as i0 from "@angular/core";
7
- export declare class DaffCartEffects<T extends DaffCart = DaffCart> {
8
- private actions$;
9
- private errorMatcher;
10
- private driver;
11
- private storage;
12
- constructor(actions$: Actions, errorMatcher: ErrorTransformer, driver: DaffCartServiceInterface<T>, storage: DaffCartStorageService);
13
- create$: import("rxjs").Observable<DaffCartCreateFailure> & import("@ngrx/effects").CreateEffectMetadata;
14
- storeId$: import("rxjs").Observable<DaffCartStorageFailure> & import("@ngrx/effects").CreateEffectMetadata;
15
- get$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartLoadFailure> & import("@ngrx/effects").CreateEffectMetadata;
16
- clear$: import("rxjs").Observable<DaffCartStorageFailure | DaffCartClearFailure> & import("@ngrx/effects").CreateEffectMetadata;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartEffects<any>, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartEffects<any>>;
19
- }
@@ -1 +0,0 @@
1
- export { daffCartPaymentProcessorUpdate } from './cart-payment-processor.effects';
@@ -1,212 +0,0 @@
1
- import { Dictionary } from '@ngrx/entity';
2
- import { Action } from '@ngrx/store';
3
- import { Observable } from 'rxjs';
4
- import { DaffCart, DaffCartOrderResult, DaffConfigurableCartItemAttribute, DaffCompositeCartItemOption } from '@daffodil/cart';
5
- import { DaffOperationEntity, DaffStateError, DaffStoreFacade } from '@daffodil/core/state';
6
- import { DaffCartOperationType } from '../../reducers/cart-operation-type.enum';
7
- import { DaffCartErrors } from '../../reducers/errors/cart-errors.type';
8
- import { DaffCartLoading } from '../../reducers/loading/cart-loading.type';
9
- import { DaffCartResolveState } from '../../reducers/public_api';
10
- export interface DaffCartFacadeInterface<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> extends DaffStoreFacade<Action> {
11
- cart$: Observable<T>;
12
- resolved$: Observable<DaffCartResolveState>;
13
- /**
14
- * The object that holds all the loading states for cart operations.
15
- */
16
- loadingObject$: Observable<DaffCartLoading>;
17
- /**
18
- * Whether there is any cart operation in progress.
19
- * This includes operations specifically for cart subfields.
20
- */
21
- featureLoading$: Observable<boolean>;
22
- /**
23
- * Whether there is any cart resolve operation in progress.
24
- * This includes operations for cart subfields.
25
- * This pertains only to requests that do not mutate data such as "load" or "list".
26
- */
27
- featureResolving$: Observable<boolean>;
28
- /**
29
- * Whether there is any cart mutate operation in progress.
30
- * This includes operations for cart subfields.
31
- * This pertains only to requests that mutate data such as "update".
32
- */
33
- featureMutating$: Observable<boolean>;
34
- /**
35
- * Whether there is a cart operation in progress.
36
- * This does not include operations specifically for cart subfields.
37
- */
38
- loading$: Observable<boolean>;
39
- /**
40
- * Whether there is a cart resolve operation in progress.
41
- * This does not include operations specifically for cart subfields.
42
- * This pertains only to requests that do not mutate data such as "load" or "list".
43
- */
44
- resolving$: Observable<boolean>;
45
- /**
46
- * Whether there is a cart mutate operation in progress.
47
- * This does not include operations specifically for cart subfields.
48
- * This pertains only to requests that mutate data such as "update".
49
- */
50
- mutating$: Observable<boolean>;
51
- /**
52
- * Whether there is a cart billing address operation in progress.
53
- */
54
- billingAddressLoading$: Observable<boolean>;
55
- /**
56
- * Whether there is a cart billing address resolve operation in progress.
57
- * This pertains only to requests that do not mutate data such as "load" or "list".
58
- */
59
- billingAddressResolving$: Observable<boolean>;
60
- /**
61
- * Whether there is a cart billing address mutate operation in progress.
62
- * This pertains only to requests that mutate data such as "update".
63
- */
64
- billingAddressMutating$: Observable<boolean>;
65
- /**
66
- * Whether there is a cart shipping address operation in progress.
67
- */
68
- shippingAddressLoading$: Observable<boolean>;
69
- /**
70
- * Whether there is a cart shipping address resolve operation in progress.
71
- * This pertains only to requests that do not mutate data such as "load" or "list".
72
- */
73
- shippingAddressResolving$: Observable<boolean>;
74
- /**
75
- * Whether there is a cart shipping address mutate operation in progress.
76
- * This pertains only to requests that mutate data such as "update".
77
- */
78
- shippingAddressMutating$: Observable<boolean>;
79
- /**
80
- * Whether there is a cart shipping information operation in progress.
81
- */
82
- shippingInformationLoading$: Observable<boolean>;
83
- /**
84
- * Whether there is a cart shipping information resolve operation in progress.
85
- * This pertains only to requests that do not mutate data such as "load" or "list".
86
- */
87
- shippingInformationResolving$: Observable<boolean>;
88
- /**
89
- * Whether there is a cart shipping information mutate operation in progress.
90
- * This pertains only to requests that mutate data such as "update".
91
- */
92
- shippingInformationMutating$: Observable<boolean>;
93
- /**
94
- * Whether there is a cart shipping methods operation in progress.
95
- */
96
- shippingMethodsLoading$: Observable<boolean>;
97
- /**
98
- * Whether there is a cart shipping methods resolve operation in progress.
99
- * This pertains only to requests that do not mutate data such as "load" or "list".
100
- */
101
- shippingMethodsResolving$: Observable<boolean>;
102
- /**
103
- * Whether there is a cart payment operation in progress.
104
- */
105
- paymentLoading$: Observable<boolean>;
106
- /**
107
- * Whether there is a cart payment resolve operation in progress.
108
- * This pertains only to requests that do not mutate data such as "load" or "list".
109
- */
110
- paymentResolving$: Observable<boolean>;
111
- /**
112
- * Whether there is a cart payment mutate operation in progress.
113
- * This pertains only to requests that mutate data such as "update".
114
- */
115
- paymentMutating$: Observable<boolean>;
116
- /**
117
- * Whether there is a cart payment methods operation in progress.
118
- */
119
- paymentMethodsLoading$: Observable<boolean>;
120
- /**
121
- * Whether there is a cart payment methods resolve operation in progress.
122
- * This pertains only to requests that do not mutate data such as "load" or "list".
123
- */
124
- paymentMethodsResolving$: Observable<boolean>;
125
- /**
126
- * Whether there is a cart coupon operation in progress.
127
- */
128
- couponLoading$: Observable<boolean>;
129
- /**
130
- * Whether there is a cart coupon resolve operation in progress.
131
- * This pertains only to requests that do not mutate data such as "load" or "list".
132
- */
133
- couponResolving$: Observable<boolean>;
134
- /**
135
- * Whether there is a cart coupon mutate operation in progress.
136
- * This pertains only to requests that mutate data such as "update".
137
- */
138
- couponMutating$: Observable<boolean>;
139
- /**
140
- * Whether there is a cart item operation in progress.
141
- */
142
- itemLoading$: Observable<boolean>;
143
- /**
144
- * Whether there is a cart item add operation in progress.
145
- */
146
- itemAdding$: Observable<boolean>;
147
- /**
148
- * Whether there is a cart item resolve operation in progress.
149
- * This pertains only to requests that do not mutate data such as "load" or "list".
150
- */
151
- itemResolving$: Observable<boolean>;
152
- /**
153
- * Whether there is a cart item mutate operation in progress.
154
- * This pertains only to requests that mutate data such as "update".
155
- */
156
- itemMutating$: Observable<boolean>;
157
- errors$: Observable<DaffCartErrors>;
158
- cartErrors$: Observable<DaffCartErrors[DaffCartOperationType.Cart]>;
159
- itemErrors$: Observable<DaffCartErrors[DaffCartOperationType.Item]>;
160
- billingAddressErrors$: Observable<DaffCartErrors[DaffCartOperationType.BillingAddress]>;
161
- shippingAddressErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingAddress]>;
162
- shippingInformationErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingInformation]>;
163
- shippingMethodsErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingMethods]>;
164
- paymentErrors$: Observable<DaffCartErrors[DaffCartOperationType.Payment]>;
165
- paymentMethodsErrors$: Observable<DaffCartErrors[DaffCartOperationType.PaymentMethods]>;
166
- couponErrors$: Observable<DaffCartErrors[DaffCartOperationType.Coupon]>;
167
- /**
168
- * A list of the cart items.
169
- */
170
- itemEntities$: Observable<DaffOperationEntity<T['items'][number]>[]>;
171
- /**
172
- * The total number of cart items, taking into account the quantity of each cart item.
173
- */
174
- totalItems$: Observable<number>;
175
- hasOutOfStockItems$: Observable<boolean>;
176
- /**
177
- * All cart items that are out of stock.
178
- */
179
- outOfStockItems$: Observable<DaffOperationEntity<T['items'][number]>[]>;
180
- /**
181
- * All cart items that are in stock.
182
- */
183
- inStockItems$: Observable<DaffOperationEntity<T['items'][number]>[]>;
184
- itemDictionary$: Observable<Dictionary<DaffOperationEntity<T['items'][number]>>>;
185
- /**
186
- * The user-defined platform-agnostic payment identifier that corresponds to the cart's current (platform-specific) payment method.
187
- * Define the mapping with the `DaffCartPaymentMethodIdMap` injection token.
188
- *
189
- * @see DaffCartPaymentMethodIdMap
190
- */
191
- paymentId$: Observable<any>;
192
- isCartEmpty$: Observable<boolean>;
193
- /**
194
- * Whether the cart's shipping address equals the billing address.
195
- * Returns false if either address is null or undefined.
196
- */
197
- isBillingSameAsShipping$: Observable<boolean>;
198
- hasBillingAddress$: Observable<boolean>;
199
- hasShippingAddress$: Observable<boolean>;
200
- hasShippingMethod$: Observable<boolean>;
201
- hasPaymentMethod$: Observable<boolean>;
202
- canPlaceOrder$: Observable<boolean>;
203
- orderResultLoading$: Observable<boolean>;
204
- orderResultErrors$: Observable<DaffStateError[]>;
205
- orderResult$: Observable<V>;
206
- orderResultId$: Observable<V['orderId']>;
207
- orderResultCartId$: Observable<V['cartId']>;
208
- hasOrderResult$: Observable<boolean>;
209
- getConfiguredCartItemAttributes(itemId: T['items'][number]['id']): Observable<DaffConfigurableCartItemAttribute[]>;
210
- getCompositeCartItemOptions(itemId: T['items'][number]['id']): Observable<DaffCompositeCartItemOption[]>;
211
- isCartItemOutOfStock(itemId: T['items'][number]['id']): Observable<boolean>;
212
- }
@@ -1,90 +0,0 @@
1
- import { Dictionary } from '@ngrx/entity';
2
- import { Action, Store } from '@ngrx/store';
3
- import { Observable } from 'rxjs';
4
- import { DaffCart, DaffCartOrderResult, DaffConfigurableCartItemAttribute, DaffCompositeCartItemOption } from '@daffodil/cart';
5
- import { DaffOperationEntity, DaffStateError } from '@daffodil/core/state';
6
- import { DaffCartFacadeInterface } from './cart-facade.interface';
7
- import { DaffCartOperationType } from '../../reducers/cart-operation-type.enum';
8
- import { DaffCartErrors } from '../../reducers/errors/cart-errors.type';
9
- import { DaffCartLoading } from '../../reducers/loading/cart-loading.type';
10
- import { DaffCartStateRootSlice, DaffCartResolveState } from '../../reducers/public_api';
11
- import * as i0 from "@angular/core";
12
- /**
13
- * @inheritdoc
14
- */
15
- export declare class DaffCartFacade<T extends DaffCart = DaffCart, V extends DaffCartOrderResult = DaffCartOrderResult> implements DaffCartFacadeInterface<T, V> {
16
- private store;
17
- private paymentMethodMap;
18
- cart$: Observable<T>;
19
- resolved$: Observable<DaffCartResolveState>;
20
- loadingObject$: Observable<DaffCartLoading>;
21
- featureLoading$: Observable<boolean>;
22
- featureResolving$: Observable<boolean>;
23
- featureMutating$: Observable<boolean>;
24
- loading$: Observable<boolean>;
25
- resolving$: Observable<boolean>;
26
- mutating$: Observable<boolean>;
27
- billingAddressLoading$: Observable<boolean>;
28
- billingAddressResolving$: Observable<boolean>;
29
- billingAddressMutating$: Observable<boolean>;
30
- shippingAddressLoading$: Observable<boolean>;
31
- shippingAddressResolving$: Observable<boolean>;
32
- shippingAddressMutating$: Observable<boolean>;
33
- shippingInformationLoading$: Observable<boolean>;
34
- shippingInformationResolving$: Observable<boolean>;
35
- shippingInformationMutating$: Observable<boolean>;
36
- shippingMethodsLoading$: Observable<boolean>;
37
- shippingMethodsResolving$: Observable<boolean>;
38
- paymentLoading$: Observable<boolean>;
39
- paymentResolving$: Observable<boolean>;
40
- paymentMutating$: Observable<boolean>;
41
- paymentMethodsLoading$: Observable<boolean>;
42
- paymentMethodsResolving$: Observable<boolean>;
43
- couponLoading$: Observable<boolean>;
44
- couponResolving$: Observable<boolean>;
45
- couponMutating$: Observable<boolean>;
46
- itemLoading$: Observable<boolean>;
47
- itemAdding$: Observable<boolean>;
48
- itemResolving$: Observable<boolean>;
49
- itemMutating$: Observable<boolean>;
50
- errors$: Observable<DaffCartErrors>;
51
- cartErrors$: Observable<DaffCartErrors[DaffCartOperationType.Cart]>;
52
- itemErrors$: Observable<DaffCartErrors[DaffCartOperationType.Item]>;
53
- billingAddressErrors$: Observable<DaffCartErrors[DaffCartOperationType.BillingAddress]>;
54
- shippingAddressErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingAddress]>;
55
- shippingInformationErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingInformation]>;
56
- shippingMethodsErrors$: Observable<DaffCartErrors[DaffCartOperationType.ShippingMethods]>;
57
- paymentErrors$: Observable<DaffCartErrors[DaffCartOperationType.Payment]>;
58
- paymentMethodsErrors$: Observable<DaffCartErrors[DaffCartOperationType.PaymentMethods]>;
59
- couponErrors$: Observable<DaffCartErrors[DaffCartOperationType.Coupon]>;
60
- itemEntities$: Observable<DaffOperationEntity<T['items'][number]>[]>;
61
- totalItems$: Observable<number>;
62
- hasOutOfStockItems$: Observable<boolean>;
63
- outOfStockItems$: Observable<DaffOperationEntity<T['items'][number]>[]>;
64
- inStockItems$: Observable<DaffOperationEntity<T['items'][number]>[]>;
65
- itemDictionary$: Observable<Dictionary<DaffOperationEntity<T['items'][number]>>>;
66
- paymentId$: Observable<any>;
67
- isCartEmpty$: Observable<boolean>;
68
- isBillingSameAsShipping$: Observable<boolean>;
69
- hasBillingAddress$: Observable<boolean>;
70
- hasShippingAddress$: Observable<boolean>;
71
- hasShippingMethod$: Observable<boolean>;
72
- hasPaymentMethod$: Observable<boolean>;
73
- canPlaceOrder$: Observable<boolean>;
74
- orderResultLoading$: Observable<boolean>;
75
- orderResultErrors$: Observable<DaffStateError[]>;
76
- orderResult$: Observable<V>;
77
- orderResultId$: Observable<V['orderId']>;
78
- orderResultCartId$: Observable<V['cartId']>;
79
- hasOrderResult$: Observable<boolean>;
80
- private _selectCartItemConfiguredAttributes;
81
- private _selectCartItemCompositeOptions;
82
- private _selectIsCartItemOutOfStock;
83
- constructor(store: Store<DaffCartStateRootSlice<T, V>>, paymentMethodMap: object);
84
- getConfiguredCartItemAttributes(itemId: T['items'][number]['id']): Observable<DaffConfigurableCartItemAttribute[]>;
85
- getCompositeCartItemOptions(itemId: T['items'][number]['id']): Observable<DaffCompositeCartItemOption[]>;
86
- isCartItemOutOfStock(itemId: T['items'][number]['id']): Observable<boolean>;
87
- dispatch(action: Action): void;
88
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartFacade<any, any>, never>;
89
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartFacade<any, any>>;
90
- }
@@ -1,12 +0,0 @@
1
- import { Dictionary } from '@ngrx/entity';
2
- import { DaffCartItem } from '@daffodil/cart';
3
- import { DaffOperationEntity } from '@daffodil/core/state';
4
- /**
5
- * Transforms a list of cart items to item entities.
6
- * Uses the list of previous cart items to infer the correct state of each entity.
7
- *
8
- * @param oldCartItems the dictionary of existing cart items.
9
- * @param newCartItems the list of incoming cart items
10
- * @returns a list of cart item operation entities
11
- */
12
- export declare function daffCartItemsEntityTransform<T extends DaffCartItem = DaffCartItem>(oldCartItems: Dictionary<T>, newCartItems: Array<T>): Array<DaffOperationEntity<T>>;
@@ -1 +0,0 @@
1
- export * from './cart-items-entity-transform';
@@ -1 +0,0 @@
1
- export declare const DaffCartItemStateDebounceTime: import("@angular/core").InjectionToken<number>, provideDaffCartItemStateDebounceTime: <R extends number = number>(value: R) => import("@angular/core").ValueProvider;
@@ -1,2 +0,0 @@
1
- import { daffTransformErrorToStateError } from '@daffodil/core/state';
2
- export declare const DAFF_CART_ERROR_MATCHER: import("@angular/core").InjectionToken<typeof daffTransformErrorToStateError>, provideDaffCartErrorMatcher: <R extends typeof daffTransformErrorToStateError = typeof daffTransformErrorToStateError>(value: R) => import("@angular/core").ValueProvider;
@@ -1,2 +0,0 @@
1
- export * from './cart-item-state-debounce-time';
2
- export * from './error-matcher.token';
@@ -1 +0,0 @@
1
- export * from './stateful-cart';
@@ -1,8 +0,0 @@
1
- import { DaffCart, DaffCartItem, DaffCompositeCartItem, DaffConfigurableCartItem } from '@daffodil/cart';
2
- import { DaffOperationEntity } from '@daffodil/core/state';
3
- /**
4
- * A cart with stateful cart items.
5
- */
6
- export interface DaffStatefulCart extends DaffCart {
7
- items: Array<DaffOperationEntity<DaffCartItem | DaffCompositeCartItem | DaffConfigurableCartItem>>;
8
- }
@@ -1,10 +0,0 @@
1
- export * from './actions/public_api';
2
- export * from './cart-retrieval/public_api';
3
- export * from './effects/public_api';
4
- export * from './selectors/public_api';
5
- export * from './reducers/public_api';
6
- export * from './injection-tokens/public_api';
7
- export * from './models/public_api';
8
- export { DaffCartStateModule } from './cart-state.module';
9
- export { DaffCartFacade } from './facades/cart/cart.facade';
10
- export { DaffCartFacadeInterface } from './facades/cart/cart-facade.interface';
@@ -1,3 +0,0 @@
1
- import { DaffCart, DaffCartItemInput, DaffCartOrderResult } from '@daffodil/cart';
2
- import { DaffCartActions, DaffCartItemActions, DaffCartBillingAddressActions, DaffCartShippingAddressActions, DaffCartShippingMethodsActions, DaffCartShippingInformationActions, DaffCartPaymentActions, DaffCartPaymentMethodsActions, DaffCartCouponActions, DaffCartAddressActions, DaffCartOrderActions } from '../actions/public_api';
3
- export type ActionTypes<T extends DaffCart = DaffCart, U extends DaffCartItemInput = DaffCartItemInput, TOrderResult extends DaffCartOrderResult = DaffCartOrderResult> = DaffCartActions<T> | DaffCartItemActions<T, U> | DaffCartBillingAddressActions<T> | DaffCartShippingAddressActions<T> | DaffCartAddressActions<T> | DaffCartShippingMethodsActions<T['available_shipping_methods'][number]> | DaffCartShippingInformationActions<T> | DaffCartPaymentActions<T> | DaffCartPaymentMethodsActions<T['available_payment_methods'][number]> | DaffCartOrderActions<TOrderResult> | DaffCartCouponActions<T>;
@@ -1,4 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { ActionTypes } from '../action-types.type';
3
- import { DaffCartReducerState } from '../cart-state.interface';
4
- export declare function cartReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
@@ -1,9 +0,0 @@
1
- import { ActionReducer } from '@ngrx/store';
2
- import { DaffCart } from '@daffodil/cart';
3
- import { DaffCartRetrievalActionInjection } from '../../cart-retrieval/public_api';
4
- import { DaffCartReducerState } from '../cart-state.interface';
5
- /**
6
- * Reducer function factory that updates cart state according to a list of passed cart retrieval actions.
7
- * See {@link DaffCartRetrievalActionInjection}.
8
- */
9
- export declare function daffCartRetrievalActionsReducerFactory<T extends DaffCart = DaffCart>(retrievalActions: DaffCartRetrievalActionInjection[]): ActionReducer<DaffCartReducerState<T>>;
@@ -1,4 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { ActionTypes } from '../action-types.type';
3
- import { DaffCartReducerState } from '../cart-state.interface';
4
- export declare function cartBillingAddressReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
@@ -1,4 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { ActionTypes } from '../action-types.type';
3
- import { DaffCartReducerState } from '../cart-state.interface';
4
- export declare function cartCouponReducer<T extends DaffCart = DaffCart>(state: DaffCartReducerState<any>, action: ActionTypes<T>): DaffCartReducerState<T>;
@@ -1,2 +0,0 @@
1
- import { DaffCartReducerState } from './cart-state.interface';
2
- export declare const daffCartReducerInitialState: DaffCartReducerState<any>;