@daffodil/cart 0.66.0 → 0.67.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 (535) hide show
  1. package/driver/in-memory/injection-tokens/extra-attributes-hook.token.d.ts +1 -1
  2. package/driver/magento/injection-tokens/transforms/cart/token.d.ts +1 -2
  3. package/driver/magento/injection-tokens/transforms/cart-item/token.d.ts +1 -2
  4. package/driver/magento/interfaces/cart-item-transform.type.d.ts +1 -1
  5. package/driver/magento/interfaces/cart-transform.type.d.ts +1 -1
  6. package/{esm2020 → esm2022}/driver/in-memory/backend/cart/cart.service.mjs +6 -6
  7. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-address/cart-address.service.mjs +6 -6
  8. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-billing-address/cart-billing-address.service.mjs +6 -6
  9. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-coupon/cart-coupon.service.mjs +6 -6
  10. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-items/cart-items.service.mjs +6 -6
  11. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-order/cart-order.service.mjs +4 -4
  12. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-payment/cart-payment.service.mjs +6 -6
  13. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-payment-methods/cart-payment-methods.service.mjs +4 -4
  14. package/esm2022/driver/in-memory/backend/cart-root.service.mjs +129 -0
  15. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-address/cart-shipping-address.service.mjs +6 -6
  16. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-information/cart-shipping-information.service.mjs +6 -6
  17. package/{esm2020 → esm2022}/driver/in-memory/backend/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
  18. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart/cart.service.mjs +5 -5
  19. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-address/cart-address.service.mjs +5 -5
  20. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-billing-address/cart-billing-address.service.mjs +5 -5
  21. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-coupon/cart-coupon.service.mjs +5 -5
  22. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-driver.module.mjs +5 -5
  23. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-item/cart-item.service.mjs +5 -5
  24. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-order/cart-order.service.mjs +5 -5
  25. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-payment/cart-payment.service.mjs +5 -5
  26. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-payment-methods/cart-payment-methods.service.mjs +5 -5
  27. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-address/cart-shipping-address.service.mjs +5 -5
  28. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-information/cart-shipping-information.service.mjs +5 -5
  29. package/{esm2020 → esm2022}/driver/in-memory/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
  30. package/{esm2020 → esm2022}/driver/in-memory/helpers/compute-cart-item-prices.mjs +1 -1
  31. package/{esm2020 → esm2022}/driver/in-memory/helpers/compute-cart-totals.mjs +2 -2
  32. package/{esm2020 → esm2022}/driver/magento/cart-address.service.mjs +6 -6
  33. package/{esm2020 → esm2022}/driver/magento/cart-billing-address.service.mjs +6 -6
  34. package/{esm2020 → esm2022}/driver/magento/cart-coupon.service.mjs +6 -6
  35. package/{esm2020 → esm2022}/driver/magento/cart-driver.module.mjs +5 -5
  36. package/{esm2020 → esm2022}/driver/magento/cart-item.service.mjs +6 -6
  37. package/{esm2020 → esm2022}/driver/magento/cart-order.service.mjs +6 -6
  38. package/{esm2020 → esm2022}/driver/magento/cart-payment-methods.service.mjs +6 -6
  39. package/{esm2020 → esm2022}/driver/magento/cart-payment.service.mjs +6 -6
  40. package/{esm2020 → esm2022}/driver/magento/cart-shipping-address.service.mjs +6 -6
  41. package/{esm2020 → esm2022}/driver/magento/cart-shipping-information.service.mjs +6 -6
  42. package/{esm2020 → esm2022}/driver/magento/cart-shipping-methods.service.mjs +6 -6
  43. package/{esm2020 → esm2022}/driver/magento/cart.service.mjs +6 -6
  44. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-address-input.factory.mjs +5 -5
  45. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-address.factory.mjs +5 -5
  46. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-coupon.factory.mjs +5 -5
  47. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/bundle-cart-item.factory.mjs +5 -5
  48. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/cart-item.factory.mjs +5 -5
  49. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-item/configurable-cart-item.factory.mjs +5 -5
  50. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-payment-method.factory.mjs +5 -5
  51. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart-shipping-method.factory.mjs +5 -5
  52. package/{esm2020 → esm2022}/driver/magento/testing/factories/cart.factory.mjs +5 -5
  53. package/{esm2020 → esm2022}/driver/magento/testing/factories/shipping-address.factory.mjs +5 -5
  54. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/billing-address.service.mjs +5 -5
  55. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-address.service.mjs +4 -4
  56. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-item-update.service.mjs +4 -4
  57. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/payment-method.service.mjs +4 -4
  58. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/shipping-address.service.mjs +5 -5
  59. package/{esm2020 → esm2022}/driver/magento/transforms/inputs/shipping-method.service.mjs +4 -4
  60. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/billing-address.service.mjs +5 -5
  61. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-address.service.mjs +4 -4
  62. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-coupon-response.service.mjs +6 -6
  63. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-payment.service.mjs +4 -4
  64. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-shipping-information.service.mjs +5 -5
  65. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-shipping-rate.service.mjs +4 -4
  66. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart.service.mjs +6 -6
  67. package/{esm2020 → esm2022}/driver/magento/transforms/outputs/shipping-address.service.mjs +5 -5
  68. package/{esm2020 → esm2022}/driver/services/resolve.service.mjs +6 -6
  69. package/{esm2020 → esm2022}/driver/testing/drivers/cart/cart.service.mjs +5 -5
  70. package/{esm2020 → esm2022}/driver/testing/drivers/cart-address/cart-address.service.mjs +5 -5
  71. package/{esm2020 → esm2022}/driver/testing/drivers/cart-billing-address/cart-billing-address.service.mjs +5 -5
  72. package/{esm2020 → esm2022}/driver/testing/drivers/cart-coupon/cart-coupon.service.mjs +5 -5
  73. package/{esm2020 → esm2022}/driver/testing/drivers/cart-driver.module.mjs +5 -5
  74. package/{esm2020 → esm2022}/driver/testing/drivers/cart-item/cart-item.service.mjs +5 -5
  75. package/{esm2020 → esm2022}/driver/testing/drivers/cart-order/cart-order.service.mjs +4 -4
  76. package/{esm2020 → esm2022}/driver/testing/drivers/cart-payment/cart-payment.service.mjs +5 -5
  77. package/{esm2020 → esm2022}/driver/testing/drivers/cart-payment-methods/cart-payment-methods.service.mjs +5 -5
  78. package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-address/cart-shipping-address.service.mjs +5 -5
  79. package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-information/cart-shipping-information.service.mjs +5 -5
  80. package/{esm2020 → esm2022}/driver/testing/drivers/cart-shipping-methods/cart-shipping-methods.service.mjs +5 -5
  81. package/{esm2020 → esm2022}/routing/cart-routing.module.mjs +15 -15
  82. package/esm2022/routing/guards/billing-address/billing-address.guard.mjs +40 -0
  83. package/esm2022/routing/guards/cart-items/cart-items.guard.mjs +41 -0
  84. package/{esm2020 → esm2022}/routing/guards/in-stock-items/in-stock-items.guard.mjs +6 -6
  85. package/{esm2020 → esm2022}/routing/guards/order-result/order-result.guard.mjs +7 -7
  86. package/esm2022/routing/guards/payment-method/payment-method.guard.mjs +40 -0
  87. package/{esm2020 → esm2022}/routing/guards/resolve-cart/resolve-cart.guard.mjs +6 -6
  88. package/{esm2020 → esm2022}/routing/guards/resolved-cart/resolved-cart.guard.mjs +6 -6
  89. package/{esm2020 → esm2022}/routing/guards/shipping-address/shipping-address.guard.mjs +7 -7
  90. package/esm2022/routing/guards/shipping-method/shipping-method.guard.mjs +40 -0
  91. package/{esm2020 → esm2022}/routing/resolvers/cart-resolver.service.mjs +7 -7
  92. package/esm2022/routing/resolvers/empty-cart-resolver.service.mjs +41 -0
  93. package/esm2022/state/cart-state.module.mjs +84 -0
  94. package/{esm2020 → esm2022}/state/effects/cart-address.effects.mjs +6 -6
  95. package/{esm2020 → esm2022}/state/effects/cart-billing-address.effects.mjs +6 -6
  96. package/{esm2020 → esm2022}/state/effects/cart-coupon.effects.mjs +6 -6
  97. package/{esm2020 → esm2022}/state/effects/cart-item.effects.mjs +6 -6
  98. package/{esm2020 → esm2022}/state/effects/cart-order.effects.mjs +6 -6
  99. package/{esm2020 → esm2022}/state/effects/cart-payment-methods.effects.mjs +6 -6
  100. package/{esm2020 → esm2022}/state/effects/cart-payment-processor.effects.mjs +6 -6
  101. package/{esm2020 → esm2022}/state/effects/cart-payment.effects.mjs +6 -6
  102. package/{esm2020 → esm2022}/state/effects/cart-resolver.effects.mjs +6 -6
  103. package/{esm2020 → esm2022}/state/effects/cart-shipping-address.effects.mjs +6 -6
  104. package/{esm2020 → esm2022}/state/effects/cart-shipping-information.effects.mjs +6 -6
  105. package/{esm2020 → esm2022}/state/effects/cart-shipping-methods.effects.mjs +6 -6
  106. package/{esm2020 → esm2022}/state/effects/cart.effects.mjs +6 -6
  107. package/{esm2020 → esm2022}/state/facades/cart/cart.facade.mjs +6 -6
  108. package/esm2022/state/reducers/cart-item-entities/set-state.meta-reducer.mjs +56 -0
  109. package/{esm2020 → esm2022}/state/testing/cart-testing.module.mjs +7 -7
  110. package/{esm2020 → esm2022}/state/testing/factories/stateful-cart-item.factory.mjs +5 -5
  111. package/{esm2020 → esm2022}/state/testing/factories/stateful-composite-cart-item.factory.mjs +5 -5
  112. package/{esm2020 → esm2022}/state/testing/factories/stateful-configurable-cart-item.factory.mjs +5 -5
  113. package/{esm2020 → esm2022}/state/testing/mock-cart-facade.mjs +4 -4
  114. package/{esm2020 → esm2022}/storage/cart-storage.service.mjs +5 -5
  115. package/{esm2020 → esm2022}/testing/factories/cart-address.factory.mjs +5 -5
  116. package/{esm2020 → esm2022}/testing/factories/cart-coupon.factory.mjs +5 -5
  117. package/{esm2020 → esm2022}/testing/factories/cart-item/cart-item.factory.mjs +5 -5
  118. package/{esm2020 → esm2022}/testing/factories/cart-item/composite-cart-item.factory.mjs +5 -5
  119. package/{esm2020 → esm2022}/testing/factories/cart-item/configurable-cart-item.factory.mjs +5 -5
  120. package/{esm2020 → esm2022}/testing/factories/cart-payment.factory.mjs +5 -5
  121. package/{esm2020 → esm2022}/testing/factories/cart-shipping-information.factory.mjs +5 -5
  122. package/{esm2020 → esm2022}/testing/factories/cart-shipping-rate.factory.mjs +5 -5
  123. package/{esm2020 → esm2022}/testing/factories/cart-total.factory.mjs +5 -5
  124. package/{esm2020 → esm2022}/testing/factories/cart.factory.mjs +5 -5
  125. package/{fesm2020 → fesm2022}/daffodil-cart-driver-in-memory.mjs +120 -120
  126. package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -0
  127. package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento-testing.mjs +40 -40
  128. package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento-testing.mjs.map +1 -1
  129. package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento.mjs +110 -110
  130. package/{fesm2020 → fesm2022}/daffodil-cart-driver-magento.mjs.map +1 -1
  131. package/{fesm2015 → fesm2022}/daffodil-cart-driver-testing.mjs +47 -47
  132. package/{fesm2020 → fesm2022}/daffodil-cart-driver-testing.mjs.map +1 -1
  133. package/{fesm2020 → fesm2022}/daffodil-cart-driver.mjs +5 -5
  134. package/{fesm2020 → fesm2022}/daffodil-cart-driver.mjs.map +1 -1
  135. package/{fesm2020 → fesm2022}/daffodil-cart-routing.mjs +69 -69
  136. package/fesm2022/daffodil-cart-routing.mjs.map +1 -0
  137. package/{fesm2015 → fesm2022}/daffodil-cart-state-testing.mjs +21 -21
  138. package/{fesm2020 → fesm2022}/daffodil-cart-state-testing.mjs.map +1 -1
  139. package/{fesm2020 → fesm2022}/daffodil-cart-state.mjs +118 -108
  140. package/{fesm2020 → fesm2022}/daffodil-cart-state.mjs.map +1 -1
  141. package/{fesm2015 → fesm2022}/daffodil-cart-testing.mjs +77 -77
  142. package/{fesm2020 → fesm2022}/daffodil-cart-testing.mjs.map +1 -1
  143. package/{fesm2020 → fesm2022}/daffodil-cart.mjs +4 -4
  144. package/{fesm2020 → fesm2022}/daffodil-cart.mjs.map +1 -1
  145. package/package.json +1 -1
  146. package/routing/guards/billing-address/billing-address.guard.d.ts +2 -2
  147. package/routing/guards/cart-items/cart-items.guard.d.ts +2 -2
  148. package/routing/guards/in-stock-items/in-stock-items.guard.d.ts +2 -2
  149. package/routing/guards/order-result/order-result.guard.d.ts +2 -2
  150. package/routing/guards/payment-method/payment-method.guard.d.ts +2 -2
  151. package/routing/guards/resolve-cart/resolve-cart.guard.d.ts +2 -2
  152. package/routing/guards/resolved-cart/resolved-cart.guard.d.ts +2 -2
  153. package/routing/guards/shipping-address/shipping-address.guard.d.ts +2 -2
  154. package/routing/guards/shipping-method/shipping-method.guard.d.ts +2 -2
  155. package/routing/resolvers/cart-resolver.service.d.ts +2 -2
  156. package/routing/resolvers/empty-cart-resolver.service.d.ts +2 -2
  157. package/state/actions/cart-address.actions.d.ts +1 -1
  158. package/state/actions/cart-billing-address.actions.d.ts +1 -1
  159. package/state/actions/cart-coupon.actions.d.ts +1 -1
  160. package/state/actions/cart-item.actions.d.ts +1 -1
  161. package/state/actions/cart-order.actions.d.ts +1 -1
  162. package/state/actions/cart-payment-methods.actions.d.ts +1 -1
  163. package/state/actions/cart-payment.actions.d.ts +1 -1
  164. package/state/actions/cart-shipping-address.actions.d.ts +1 -1
  165. package/state/actions/cart-shipping-information.actions.d.ts +1 -1
  166. package/state/actions/cart-shipping-methods.actions.d.ts +1 -1
  167. package/state/actions/cart.actions.d.ts +1 -1
  168. package/state/cart-retrieval/type.d.ts +1 -1
  169. package/state/reducers/action-types.type.d.ts +1 -1
  170. package/state/reducers/cart-item-entities/set-state.meta-reducer.d.ts +1 -1
  171. package/state/reducers/errors/cart-errors.type.d.ts +1 -1
  172. package/state/reducers/loading/cart-loading.type.d.ts +1 -1
  173. package/state/reducers/token/meta.token.d.ts +1 -1
  174. package/esm2020/driver/in-memory/backend/cart-root.service.mjs +0 -129
  175. package/esm2020/routing/guards/billing-address/billing-address.guard.mjs +0 -40
  176. package/esm2020/routing/guards/cart-items/cart-items.guard.mjs +0 -41
  177. package/esm2020/routing/guards/payment-method/payment-method.guard.mjs +0 -40
  178. package/esm2020/routing/guards/shipping-method/shipping-method.guard.mjs +0 -40
  179. package/esm2020/routing/resolvers/empty-cart-resolver.service.mjs +0 -41
  180. package/esm2020/state/cart-state.module.mjs +0 -84
  181. package/esm2020/state/reducers/cart-item-entities/set-state.meta-reducer.mjs +0 -46
  182. package/fesm2015/daffodil-cart-driver-in-memory.mjs +0 -1190
  183. package/fesm2015/daffodil-cart-driver-in-memory.mjs.map +0 -1
  184. package/fesm2015/daffodil-cart-driver-magento-testing.mjs +0 -332
  185. package/fesm2015/daffodil-cart-driver-magento-testing.mjs.map +0 -1
  186. package/fesm2015/daffodil-cart-driver-magento.mjs +0 -2306
  187. package/fesm2015/daffodil-cart-driver-magento.mjs.map +0 -1
  188. package/fesm2015/daffodil-cart-driver-testing.mjs.map +0 -1
  189. package/fesm2015/daffodil-cart-driver.mjs +0 -266
  190. package/fesm2015/daffodil-cart-driver.mjs.map +0 -1
  191. package/fesm2015/daffodil-cart-routing.mjs +0 -526
  192. package/fesm2015/daffodil-cart-routing.mjs.map +0 -1
  193. package/fesm2015/daffodil-cart-state-testing.mjs.map +0 -1
  194. package/fesm2015/daffodil-cart-state.mjs +0 -2777
  195. package/fesm2015/daffodil-cart-state.mjs.map +0 -1
  196. package/fesm2015/daffodil-cart-testing.mjs.map +0 -1
  197. package/fesm2015/daffodil-cart.mjs +0 -167
  198. package/fesm2015/daffodil-cart.mjs.map +0 -1
  199. package/fesm2020/daffodil-cart-driver-in-memory.mjs.map +0 -1
  200. package/fesm2020/daffodil-cart-driver-testing.mjs +0 -369
  201. package/fesm2020/daffodil-cart-routing.mjs.map +0 -1
  202. package/fesm2020/daffodil-cart-state-testing.mjs +0 -218
  203. package/fesm2020/daffodil-cart-testing.mjs +0 -365
  204. /package/{esm2020 → esm2022}/daffodil-cart.mjs +0 -0
  205. /package/{esm2020 → esm2022}/driver/daffodil-cart-driver.mjs +0 -0
  206. /package/{esm2020 → esm2022}/driver/errors/cart-not-found.mjs +0 -0
  207. /package/{esm2020 → esm2022}/driver/errors/codes.enum.mjs +0 -0
  208. /package/{esm2020 → esm2022}/driver/errors/expired-payment-token.mjs +0 -0
  209. /package/{esm2020 → esm2022}/driver/errors/invalid-api-response.mjs +0 -0
  210. /package/{esm2020 → esm2022}/driver/errors/invalid-country.mjs +0 -0
  211. /package/{esm2020 → esm2022}/driver/errors/invalid-coupon-code.mjs +0 -0
  212. /package/{esm2020 → esm2022}/driver/errors/invalid-email.mjs +0 -0
  213. /package/{esm2020 → esm2022}/driver/errors/invalid-region.mjs +0 -0
  214. /package/{esm2020 → esm2022}/driver/errors/item-exceeds-max-qty.mjs +0 -0
  215. /package/{esm2020 → esm2022}/driver/errors/map.mjs +0 -0
  216. /package/{esm2020 → esm2022}/driver/errors/product-not-found.mjs +0 -0
  217. /package/{esm2020 → esm2022}/driver/errors/product-out-of-stock.mjs +0 -0
  218. /package/{esm2020 → esm2022}/driver/errors/public_api.mjs +0 -0
  219. /package/{esm2020 → esm2022}/driver/errors/unauthorized-for-cart.mjs +0 -0
  220. /package/{esm2020 → esm2022}/driver/in-memory/backend/public_api.mjs +0 -0
  221. /package/{esm2020 → esm2022}/driver/in-memory/daffodil-cart-driver-in-memory.mjs +0 -0
  222. /package/{esm2020 → esm2022}/driver/in-memory/drivers/public_api.mjs +0 -0
  223. /package/{esm2020 → esm2022}/driver/in-memory/index.mjs +0 -0
  224. /package/{esm2020 → esm2022}/driver/in-memory/injection-tokens/extra-attributes-hook.token.mjs +0 -0
  225. /package/{esm2020 → esm2022}/driver/in-memory/injection-tokens/public_api.mjs +0 -0
  226. /package/{esm2020 → esm2022}/driver/in-memory/public_api.mjs +0 -0
  227. /package/{esm2020 → esm2022}/driver/index.mjs +0 -0
  228. /package/{esm2020 → esm2022}/driver/injection-tokens/free-payment-method.mjs +0 -0
  229. /package/{esm2020 → esm2022}/driver/injection-tokens/public_api.mjs +0 -0
  230. /package/{esm2020 → esm2022}/driver/interfaces/cart-address-service.interface.mjs +0 -0
  231. /package/{esm2020 → esm2022}/driver/interfaces/cart-billing-address-service.interface.mjs +0 -0
  232. /package/{esm2020 → esm2022}/driver/interfaces/cart-coupon-service.interface.mjs +0 -0
  233. /package/{esm2020 → esm2022}/driver/interfaces/cart-item-service.interface.mjs +0 -0
  234. /package/{esm2020 → esm2022}/driver/interfaces/cart-order-service.interface.mjs +0 -0
  235. /package/{esm2020 → esm2022}/driver/interfaces/cart-payment-methods-service.interface.mjs +0 -0
  236. /package/{esm2020 → esm2022}/driver/interfaces/cart-payment-service.interface.mjs +0 -0
  237. /package/{esm2020 → esm2022}/driver/interfaces/cart-service.interface.mjs +0 -0
  238. /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-address-service.interface.mjs +0 -0
  239. /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-information-service.interface.mjs +0 -0
  240. /package/{esm2020 → esm2022}/driver/interfaces/cart-shipping-methods-service.interface.mjs +0 -0
  241. /package/{esm2020 → esm2022}/driver/interfaces/public_api.mjs +0 -0
  242. /package/{esm2020 → esm2022}/driver/magento/daffodil-cart-driver-magento.mjs +0 -0
  243. /package/{esm2020 → esm2022}/driver/magento/errors/codes.mjs +0 -0
  244. /package/{esm2020 → esm2022}/driver/magento/errors/map.mjs +0 -0
  245. /package/{esm2020 → esm2022}/driver/magento/errors/transform.mjs +0 -0
  246. /package/{esm2020 → esm2022}/driver/magento/index.mjs +0 -0
  247. /package/{esm2020 → esm2022}/driver/magento/injection-tokens/cart-mutation-queue.token.mjs +0 -0
  248. /package/{esm2020 → esm2022}/driver/magento/injection-tokens/fragments/cart.mjs +0 -0
  249. /package/{esm2020 → esm2022}/driver/magento/injection-tokens/public_api.mjs +0 -0
  250. /package/{esm2020 → esm2022}/driver/magento/injection-tokens/transforms/cart/token.mjs +0 -0
  251. /package/{esm2020 → esm2022}/driver/magento/injection-tokens/transforms/cart-item/token.mjs +0 -0
  252. /package/{esm2020 → esm2022}/driver/magento/interfaces/cart-item-transform.type.mjs +0 -0
  253. /package/{esm2020 → esm2022}/driver/magento/interfaces/cart-transform.type.mjs +0 -0
  254. /package/{esm2020 → esm2022}/driver/magento/interfaces/public_api.mjs +0 -0
  255. /package/{esm2020 → esm2022}/driver/magento/models/public_api.mjs +0 -0
  256. /package/{esm2020 → esm2022}/driver/magento/models/requests/billing-address.mjs +0 -0
  257. /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-address-base.mjs +0 -0
  258. /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-address.mjs +0 -0
  259. /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-item-update.mjs +0 -0
  260. /package/{esm2020 → esm2022}/driver/magento/models/requests/cart-item.mjs +0 -0
  261. /package/{esm2020 → esm2022}/driver/magento/models/requests/payment-method.mjs +0 -0
  262. /package/{esm2020 → esm2022}/driver/magento/models/requests/public_api.mjs +0 -0
  263. /package/{esm2020 → esm2022}/driver/magento/models/requests/shipping-address.mjs +0 -0
  264. /package/{esm2020 → esm2022}/driver/magento/models/requests/shipping-method.mjs +0 -0
  265. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-address.mjs +0 -0
  266. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-coupon.mjs +0 -0
  267. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-item.mjs +0 -0
  268. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-payment-method.mjs +0 -0
  269. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart-shipping-method.mjs +0 -0
  270. /package/{esm2020 → esm2022}/driver/magento/models/responses/cart.mjs +0 -0
  271. /package/{esm2020 → esm2022}/driver/magento/models/responses/public_api.mjs +0 -0
  272. /package/{esm2020 → esm2022}/driver/magento/models/responses/shipping-address.mjs +0 -0
  273. /package/{esm2020 → esm2022}/driver/magento/models/responses/user-error.enum.mjs +0 -0
  274. /package/{esm2020 → esm2022}/driver/magento/models/responses/user-error.type.mjs +0 -0
  275. /package/{esm2020 → esm2022}/driver/magento/public_api.mjs +0 -0
  276. /package/{esm2020 → esm2022}/driver/magento/queries/add-item/public_api.mjs +0 -0
  277. /package/{esm2020 → esm2022}/driver/magento/queries/add-item/query.mjs +0 -0
  278. /package/{esm2020 → esm2022}/driver/magento/queries/add-item/response.type.mjs +0 -0
  279. /package/{esm2020 → esm2022}/driver/magento/queries/add-item/variables.type.mjs +0 -0
  280. /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/public_api.mjs +0 -0
  281. /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/query.mjs +0 -0
  282. /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/response.type.mjs +0 -0
  283. /package/{esm2020 → esm2022}/driver/magento/queries/apply-coupon/variables.type.mjs +0 -0
  284. /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/public_api.mjs +0 -0
  285. /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/query.mjs +0 -0
  286. /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/response.type.mjs +0 -0
  287. /package/{esm2020 → esm2022}/driver/magento/queries/create-cart/variables.type.mjs +0 -0
  288. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/available-payment-method.mjs +0 -0
  289. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/available-shipping-method.mjs +0 -0
  290. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-address.mjs +0 -0
  291. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-coupon.mjs +0 -0
  292. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart-item.mjs +0 -0
  293. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/cart.mjs +0 -0
  294. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/prices.mjs +0 -0
  295. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/public_api.mjs +0 -0
  296. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/selected-payment-method.mjs +0 -0
  297. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/selected-shipping-method.mjs +0 -0
  298. /package/{esm2020 → esm2022}/driver/magento/queries/fragments/user-error.mjs +0 -0
  299. /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/public_api.mjs +0 -0
  300. /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/query.mjs +0 -0
  301. /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/response.type.mjs +0 -0
  302. /package/{esm2020 → esm2022}/driver/magento/queries/get-billing-address/variables.type.mjs +0 -0
  303. /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/public_api.mjs +0 -0
  304. /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/query.mjs +0 -0
  305. /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/response.type.mjs +0 -0
  306. /package/{esm2020 → esm2022}/driver/magento/queries/get-cart/variables.type.mjs +0 -0
  307. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/public_api.mjs +0 -0
  308. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/query.mjs +0 -0
  309. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/response.type.mjs +0 -0
  310. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-payment-method/variables.type.mjs +0 -0
  311. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/public_api.mjs +0 -0
  312. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/query.mjs +0 -0
  313. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/response.type.mjs +0 -0
  314. /package/{esm2020 → esm2022}/driver/magento/queries/get-selected-shipping-method/variables.type.mjs +0 -0
  315. /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/public_api.mjs +0 -0
  316. /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/query.mjs +0 -0
  317. /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/response.type.mjs +0 -0
  318. /package/{esm2020 → esm2022}/driver/magento/queries/get-shipping-address/variables.type.mjs +0 -0
  319. /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/public_api.mjs +0 -0
  320. /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/query.mjs +0 -0
  321. /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/response.type.mjs +0 -0
  322. /package/{esm2020 → esm2022}/driver/magento/queries/list-coupons/variables.type.mjs +0 -0
  323. /package/{esm2020 → esm2022}/driver/magento/queries/list-items/public_api.mjs +0 -0
  324. /package/{esm2020 → esm2022}/driver/magento/queries/list-items/query.mjs +0 -0
  325. /package/{esm2020 → esm2022}/driver/magento/queries/list-items/response.type.mjs +0 -0
  326. /package/{esm2020 → esm2022}/driver/magento/queries/list-items/variables.type.mjs +0 -0
  327. /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/public_api.mjs +0 -0
  328. /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/query.mjs +0 -0
  329. /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/response.type.mjs +0 -0
  330. /package/{esm2020 → esm2022}/driver/magento/queries/list-payment-methods/variables.type.mjs +0 -0
  331. /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/public_api.mjs +0 -0
  332. /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/query.mjs +0 -0
  333. /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/response.type.mjs +0 -0
  334. /package/{esm2020 → esm2022}/driver/magento/queries/list-shipping-methods/variables.type.mjs +0 -0
  335. /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/public_api.mjs +0 -0
  336. /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/query.mjs +0 -0
  337. /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/response.type.mjs +0 -0
  338. /package/{esm2020 → esm2022}/driver/magento/queries/merge-carts/variables.type.mjs +0 -0
  339. /package/{esm2020 → esm2022}/driver/magento/queries/place-order/public_api.mjs +0 -0
  340. /package/{esm2020 → esm2022}/driver/magento/queries/place-order/query.mjs +0 -0
  341. /package/{esm2020 → esm2022}/driver/magento/queries/place-order/response.type.mjs +0 -0
  342. /package/{esm2020 → esm2022}/driver/magento/queries/place-order/variables.type.mjs +0 -0
  343. /package/{esm2020 → esm2022}/driver/magento/queries/public_api.mjs +0 -0
  344. /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/public_api.mjs +0 -0
  345. /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/query.mjs +0 -0
  346. /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/response.type.mjs +0 -0
  347. /package/{esm2020 → esm2022}/driver/magento/queries/remove-all-coupons/variables.type.mjs +0 -0
  348. /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/public_api.mjs +0 -0
  349. /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/query.mjs +0 -0
  350. /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/response.type.mjs +0 -0
  351. /package/{esm2020 → esm2022}/driver/magento/queries/remove-item/variables.type.mjs +0 -0
  352. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/public_api.mjs +0 -0
  353. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/query.mjs +0 -0
  354. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/response.type.mjs +0 -0
  355. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method/variables.type.mjs +0 -0
  356. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/public_api.mjs +0 -0
  357. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/query.mjs +0 -0
  358. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/response.type.mjs +0 -0
  359. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing/variables.type.mjs +0 -0
  360. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/public_api.mjs +0 -0
  361. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/query.mjs +0 -0
  362. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/response.type.mjs +0 -0
  363. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-payment-method-with-billing-and-email/variables.type.mjs +0 -0
  364. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/public_api.mjs +0 -0
  365. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/query.mjs +0 -0
  366. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/response.type.mjs +0 -0
  367. /package/{esm2020 → esm2022}/driver/magento/queries/set-selected-shipping-method/variables.type.mjs +0 -0
  368. /package/{esm2020 → esm2022}/driver/magento/queries/update-address/public_api.mjs +0 -0
  369. /package/{esm2020 → esm2022}/driver/magento/queries/update-address/query.mjs +0 -0
  370. /package/{esm2020 → esm2022}/driver/magento/queries/update-address/response.type.mjs +0 -0
  371. /package/{esm2020 → esm2022}/driver/magento/queries/update-address/variables.type.mjs +0 -0
  372. /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/public_api.mjs +0 -0
  373. /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/query.mjs +0 -0
  374. /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/response.type.mjs +0 -0
  375. /package/{esm2020 → esm2022}/driver/magento/queries/update-address-with-email/variables.type.mjs +0 -0
  376. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/public_api.mjs +0 -0
  377. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/query.mjs +0 -0
  378. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/response.type.mjs +0 -0
  379. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address/variables.type.mjs +0 -0
  380. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/public_api.mjs +0 -0
  381. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/query.mjs +0 -0
  382. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/response.type.mjs +0 -0
  383. /package/{esm2020 → esm2022}/driver/magento/queries/update-billing-address-with-email/variables.type.mjs +0 -0
  384. /package/{esm2020 → esm2022}/driver/magento/queries/update-item/public_api.mjs +0 -0
  385. /package/{esm2020 → esm2022}/driver/magento/queries/update-item/query.mjs +0 -0
  386. /package/{esm2020 → esm2022}/driver/magento/queries/update-item/response.type.mjs +0 -0
  387. /package/{esm2020 → esm2022}/driver/magento/queries/update-item/variables.type.mjs +0 -0
  388. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/public_api.mjs +0 -0
  389. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/query.mjs +0 -0
  390. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/response.type.mjs +0 -0
  391. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address/variables.type.mjs +0 -0
  392. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/public_api.mjs +0 -0
  393. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/query.mjs +0 -0
  394. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/response.type.mjs +0 -0
  395. /package/{esm2020 → esm2022}/driver/magento/queries/update-shipping-address-with-email/variables.type.mjs +0 -0
  396. /package/{esm2020 → esm2022}/driver/magento/testing/daffodil-cart-driver-magento-testing.mjs +0 -0
  397. /package/{esm2020 → esm2022}/driver/magento/testing/factories/public_api.mjs +0 -0
  398. /package/{esm2020 → esm2022}/driver/magento/testing/index.mjs +0 -0
  399. /package/{esm2020 → esm2022}/driver/magento/testing/public_api.mjs +0 -0
  400. /package/{esm2020 → esm2022}/driver/magento/transforms/inputs/cart-item-input-transformers.mjs +0 -0
  401. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-coupon.mjs +0 -0
  402. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/bundle-cart-item-transformer.mjs +0 -0
  403. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/cart-item-transformer.mjs +0 -0
  404. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/configurable-cart-item-transformer.mjs +0 -0
  405. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-item/simple-cart-item-transformer.mjs +0 -0
  406. /package/{esm2020 → esm2022}/driver/magento/transforms/outputs/cart-totals-transformer.mjs +0 -0
  407. /package/{esm2020 → esm2022}/driver/magento/transforms/public_api.mjs +0 -0
  408. /package/{esm2020 → esm2022}/driver/operators/handle-cart-not-found.mjs +0 -0
  409. /package/{esm2020 → esm2022}/driver/operators/public_api.mjs +0 -0
  410. /package/{esm2020 → esm2022}/driver/public_api.mjs +0 -0
  411. /package/{esm2020 → esm2022}/driver/services/public_api.mjs +0 -0
  412. /package/{esm2020 → esm2022}/driver/testing/daffodil-cart-driver-testing.mjs +0 -0
  413. /package/{esm2020 → esm2022}/driver/testing/drivers/public_api.mjs +0 -0
  414. /package/{esm2020 → esm2022}/driver/testing/index.mjs +0 -0
  415. /package/{esm2020 → esm2022}/driver/testing/public_api.mjs +0 -0
  416. /package/{esm2020 → esm2022}/errors/codes.enum.mjs +0 -0
  417. /package/{esm2020 → esm2022}/errors/map.mjs +0 -0
  418. /package/{esm2020 → esm2022}/errors/public_api.mjs +0 -0
  419. /package/{esm2020 → esm2022}/errors/resolution/cart-not-found-or-created-resolution.mjs +0 -0
  420. /package/{esm2020 → esm2022}/errors/resolution/cart-resolution.mjs +0 -0
  421. /package/{esm2020 → esm2022}/errors/resolution/cart-server-side-resolution.mjs +0 -0
  422. /package/{esm2020 → esm2022}/errors/resolution/cart-storage-resolution.mjs +0 -0
  423. /package/{esm2020 → esm2022}/errors/resolution/public_api.mjs +0 -0
  424. /package/{esm2020 → esm2022}/index.mjs +0 -0
  425. /package/{esm2020 → esm2022}/injection-tokens/payment-method-map.mjs +0 -0
  426. /package/{esm2020 → esm2022}/injection-tokens/public_api.mjs +0 -0
  427. /package/{esm2020 → esm2022}/models/cart-address.mjs +0 -0
  428. /package/{esm2020 → esm2022}/models/cart-coupon.mjs +0 -0
  429. /package/{esm2020 → esm2022}/models/cart-item-input.mjs +0 -0
  430. /package/{esm2020 → esm2022}/models/cart-item.mjs +0 -0
  431. /package/{esm2020 → esm2022}/models/cart-order-result.mjs +0 -0
  432. /package/{esm2020 → esm2022}/models/cart-payment.mjs +0 -0
  433. /package/{esm2020 → esm2022}/models/cart-shipping-info.mjs +0 -0
  434. /package/{esm2020 → esm2022}/models/cart-shipping-rate.mjs +0 -0
  435. /package/{esm2020 → esm2022}/models/cart-total.mjs +0 -0
  436. /package/{esm2020 → esm2022}/models/cart.mjs +0 -0
  437. /package/{esm2020 → esm2022}/models/composite-cart-item.mjs +0 -0
  438. /package/{esm2020 → esm2022}/models/configurable-cart-item.mjs +0 -0
  439. /package/{esm2020 → esm2022}/models/public_api.mjs +0 -0
  440. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  441. /package/{esm2020 → esm2022}/routing/config/config.mjs +0 -0
  442. /package/{esm2020 → esm2022}/routing/config/resolution/config.mjs +0 -0
  443. /package/{esm2020 → esm2022}/routing/daffodil-cart-routing.mjs +0 -0
  444. /package/{esm2020 → esm2022}/routing/guards/billing-address/billing-address-guard-redirect.token.mjs +0 -0
  445. /package/{esm2020 → esm2022}/routing/guards/cart-items/cart-items-guard-redirect.token.mjs +0 -0
  446. /package/{esm2020 → esm2022}/routing/guards/in-stock-items/in-stock-items-guard-redirect.token.mjs +0 -0
  447. /package/{esm2020 → esm2022}/routing/guards/order-result/order-result-guard-redirect.token.mjs +0 -0
  448. /package/{esm2020 → esm2022}/routing/guards/payment-method/payment-method-guard-redirect.token.mjs +0 -0
  449. /package/{esm2020 → esm2022}/routing/guards/public_api.mjs +0 -0
  450. /package/{esm2020 → esm2022}/routing/guards/resolve-cart/redirect.token.mjs +0 -0
  451. /package/{esm2020 → esm2022}/routing/guards/shipping-address/shipping-address-guard-redirect.token.mjs +0 -0
  452. /package/{esm2020 → esm2022}/routing/guards/shipping-method/shipping-method-guard-redirect.token.mjs +0 -0
  453. /package/{esm2020 → esm2022}/routing/index.mjs +0 -0
  454. /package/{esm2020 → esm2022}/routing/public_api.mjs +0 -0
  455. /package/{esm2020 → esm2022}/routing/resolvers/public_api.mjs +0 -0
  456. /package/{esm2020 → esm2022}/routing/resolvers/tokens/cart-resolver-redirect.token.mjs +0 -0
  457. /package/{esm2020 → esm2022}/routing/resolvers/tokens/empty-cart-resolver-redirect.token.mjs +0 -0
  458. /package/{esm2020 → esm2022}/state/actions/cart-address.actions.mjs +0 -0
  459. /package/{esm2020 → esm2022}/state/actions/cart-billing-address.actions.mjs +0 -0
  460. /package/{esm2020 → esm2022}/state/actions/cart-coupon.actions.mjs +0 -0
  461. /package/{esm2020 → esm2022}/state/actions/cart-item.actions.mjs +0 -0
  462. /package/{esm2020 → esm2022}/state/actions/cart-order.actions.mjs +0 -0
  463. /package/{esm2020 → esm2022}/state/actions/cart-payment-methods.actions.mjs +0 -0
  464. /package/{esm2020 → esm2022}/state/actions/cart-payment.actions.mjs +0 -0
  465. /package/{esm2020 → esm2022}/state/actions/cart-retrieval.mjs +0 -0
  466. /package/{esm2020 → esm2022}/state/actions/cart-shipping-address.actions.mjs +0 -0
  467. /package/{esm2020 → esm2022}/state/actions/cart-shipping-information.actions.mjs +0 -0
  468. /package/{esm2020 → esm2022}/state/actions/cart-shipping-methods.actions.mjs +0 -0
  469. /package/{esm2020 → esm2022}/state/actions/cart.actions.mjs +0 -0
  470. /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
  471. /package/{esm2020 → esm2022}/state/cart-retrieval/get-response.mjs +0 -0
  472. /package/{esm2020 → esm2022}/state/cart-retrieval/public_api.mjs +0 -0
  473. /package/{esm2020 → esm2022}/state/cart-retrieval/token.mjs +0 -0
  474. /package/{esm2020 → esm2022}/state/cart-retrieval/type.mjs +0 -0
  475. /package/{esm2020 → esm2022}/state/daffodil-cart-state.mjs +0 -0
  476. /package/{esm2020 → esm2022}/state/facades/cart/cart-facade.interface.mjs +0 -0
  477. /package/{esm2020 → esm2022}/state/index.mjs +0 -0
  478. /package/{esm2020 → esm2022}/state/injection-tokens/cart-item-state-debounce-time.mjs +0 -0
  479. /package/{esm2020 → esm2022}/state/injection-tokens/error-matcher.token.mjs +0 -0
  480. /package/{esm2020 → esm2022}/state/injection-tokens/public_api.mjs +0 -0
  481. /package/{esm2020 → esm2022}/state/models/public_api.mjs +0 -0
  482. /package/{esm2020 → esm2022}/state/models/stateful-cart-item.mjs +0 -0
  483. /package/{esm2020 → esm2022}/state/models/stateful-cart.mjs +0 -0
  484. /package/{esm2020 → esm2022}/state/models/stateful-composite-cart-item.mjs +0 -0
  485. /package/{esm2020 → esm2022}/state/models/stateful-configurable-cart-item.mjs +0 -0
  486. /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
  487. /package/{esm2020 → esm2022}/state/reducers/action-types.type.mjs +0 -0
  488. /package/{esm2020 → esm2022}/state/reducers/cart/cart.reducer.mjs +0 -0
  489. /package/{esm2020 → esm2022}/state/reducers/cart/retrieval-actions.reducer.mjs +0 -0
  490. /package/{esm2020 → esm2022}/state/reducers/cart-billing-address/cart-billing-address.reducer.mjs +0 -0
  491. /package/{esm2020 → esm2022}/state/reducers/cart-coupon/cart-coupon.reducer.mjs +0 -0
  492. /package/{esm2020 → esm2022}/state/reducers/cart-initial-state.mjs +0 -0
  493. /package/{esm2020 → esm2022}/state/reducers/cart-item/cart-item.reducer.mjs +0 -0
  494. /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/cart-item-entities-reducer-adapter.mjs +0 -0
  495. /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/cart-item-entities.reducer.mjs +0 -0
  496. /package/{esm2020 → esm2022}/state/reducers/cart-item-entities/retrieval-actions.reducer.mjs +0 -0
  497. /package/{esm2020 → esm2022}/state/reducers/cart-operation-type.enum.mjs +0 -0
  498. /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order-initial-state.mjs +0 -0
  499. /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order-state.interface.mjs +0 -0
  500. /package/{esm2020 → esm2022}/state/reducers/cart-order/cart-order.reducer.mjs +0 -0
  501. /package/{esm2020 → esm2022}/state/reducers/cart-payment/cart-payment.reducer.mjs +0 -0
  502. /package/{esm2020 → esm2022}/state/reducers/cart-payment/payment.reducer.mjs +0 -0
  503. /package/{esm2020 → esm2022}/state/reducers/cart-payment-methods/cart-payment-methods.reducer.mjs +0 -0
  504. /package/{esm2020 → esm2022}/state/reducers/cart-reducers-state.interface.mjs +0 -0
  505. /package/{esm2020 → esm2022}/state/reducers/cart-reducers.mjs +0 -0
  506. /package/{esm2020 → esm2022}/state/reducers/cart-resolve/cart-resolve-state.enum.mjs +0 -0
  507. /package/{esm2020 → esm2022}/state/reducers/cart-resolve/cart-resolve.reducer.mjs +0 -0
  508. /package/{esm2020 → esm2022}/state/reducers/cart-shipping-address/cart-shipping-address.reducer.mjs +0 -0
  509. /package/{esm2020 → esm2022}/state/reducers/cart-shipping-information/cart-shipping-information.reducer.mjs +0 -0
  510. /package/{esm2020 → esm2022}/state/reducers/cart-shipping-methods/cart-shipping-methods.reducer.mjs +0 -0
  511. /package/{esm2020 → esm2022}/state/reducers/cart-state.interface.mjs +0 -0
  512. /package/{esm2020 → esm2022}/state/reducers/cart-store-feature-key.mjs +0 -0
  513. /package/{esm2020 → esm2022}/state/reducers/cart.reducer.mjs +0 -0
  514. /package/{esm2020 → esm2022}/state/reducers/errors/cart-errors.type.mjs +0 -0
  515. /package/{esm2020 → esm2022}/state/reducers/errors/error-state-helpers.mjs +0 -0
  516. /package/{esm2020 → esm2022}/state/reducers/loading/cart-loading.type.mjs +0 -0
  517. /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
  518. /package/{esm2020 → esm2022}/state/reducers/token/config.token.mjs +0 -0
  519. /package/{esm2020 → esm2022}/state/reducers/token/extra.token.mjs +0 -0
  520. /package/{esm2020 → esm2022}/state/reducers/token/meta.token.mjs +0 -0
  521. /package/{esm2020 → esm2022}/state/reducers/token/public_api.mjs +0 -0
  522. /package/{esm2020 → esm2022}/state/reducers/token/reducers.token.mjs +0 -0
  523. /package/{esm2020 → esm2022}/state/selectors/cart/cart.selector.mjs +0 -0
  524. /package/{esm2020 → esm2022}/state/selectors/cart-feature.selector.mjs +0 -0
  525. /package/{esm2020 → esm2022}/state/selectors/cart-item-entities/cart-item-entities.selectors.mjs +0 -0
  526. /package/{esm2020 → esm2022}/state/selectors/cart-order/cart-order.selector.mjs +0 -0
  527. /package/{esm2020 → esm2022}/state/selectors/cart.selector.mjs +0 -0
  528. /package/{esm2020 → esm2022}/state/selectors/public_api.mjs +0 -0
  529. /package/{esm2020 → esm2022}/state/testing/daffodil-cart-state-testing.mjs +0 -0
  530. /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
  531. /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
  532. /package/{esm2020 → esm2022}/testing/daffodil-cart-testing.mjs +0 -0
  533. /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
  534. /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
  535. /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
@@ -1,4 +1,4 @@
1
- import { CanActivate, Router, UrlTree } from '@angular/router';
1
+ import { Router, UrlTree } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
3
  import { DaffCartFacade } from '@daffodil/cart/state';
4
4
  import { DaffCartRoutingConfiguration } from '../../config/config';
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  * Specify a redirect path with the {@link DaffResolvedCartGuardRedirectUrl} injection token.
11
11
  * The guard will wait until the cart has been resolved before performing the check and emitting.
12
12
  */
13
- export declare class DaffResolvedCartGuard implements CanActivate {
13
+ export declare class DaffResolvedCartGuard {
14
14
  private facade;
15
15
  private router;
16
16
  private config;
@@ -1,4 +1,4 @@
1
- import { CanActivate, Router } from '@angular/router';
1
+ import { Router } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
3
  import { DaffCartFacade } from '@daffodil/cart/state';
4
4
  import * as i0 from "@angular/core";
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  * The guard will not wait until the cart has been resolved before performing the check and emitting.
9
9
  * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
10
10
  */
11
- export declare class DaffShippingAddressGuard implements CanActivate {
11
+ export declare class DaffShippingAddressGuard {
12
12
  private facade;
13
13
  private router;
14
14
  private redirectUrl;
@@ -1,4 +1,4 @@
1
- import { CanActivate, Router } from '@angular/router';
1
+ import { Router } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
3
  import { DaffCartFacade } from '@daffodil/cart/state';
4
4
  import * as i0 from "@angular/core";
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  * The guard will not wait until the cart has been resolved before performing the check and emitting.
9
9
  * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
10
10
  */
11
- export declare class DaffShippingMethodGuard implements CanActivate {
11
+ export declare class DaffShippingMethodGuard {
12
12
  private facade;
13
13
  private router;
14
14
  private redirectUrl;
@@ -1,4 +1,4 @@
1
- import { Resolve, Router } from '@angular/router';
1
+ import { Router } from '@angular/router';
2
2
  import { Store, ActionsSubject } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
4
  import { DaffCart } from '@daffodil/cart';
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  * Resolves the cart before navigation. Redirects to a given url when a failure occurs during Cart Load.
9
9
  * This url is `/` by default but can be overridden with the DaffCartResolverRedirectUrl injection token.
10
10
  */
11
- export declare class DaffCartResolver implements Resolve<Observable<DaffCart>> {
11
+ export declare class DaffCartResolver {
12
12
  private store;
13
13
  private dispatcher;
14
14
  private router;
@@ -1,4 +1,4 @@
1
- import { Resolve, Router } from '@angular/router';
1
+ import { Router } from '@angular/router';
2
2
  import { Observable } from 'rxjs';
3
3
  import { DaffCart } from '@daffodil/cart';
4
4
  import { DaffCartResolver } from './cart-resolver.service';
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  * This resolver also redirects to a different url when the cart is empty after successfully loading.
10
10
  * This url is also `/` by default, but can be overridden with the DaffEmptyCartResolverRedirectUrl
11
11
  */
12
- export declare class DaffEmptyCartResolver implements Resolve<Observable<DaffCart>> {
12
+ export declare class DaffEmptyCartResolver {
13
13
  private cartResolver;
14
14
  private router;
15
15
  private redirectUrl;
@@ -37,4 +37,4 @@ export declare class DaffCartAddressUpdateFailure implements DaffFailureAction {
37
37
  /**
38
38
  * A union of all the cart address action classes.
39
39
  */
40
- export declare type DaffCartAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartAddressUpdate<T> | DaffCartAddressUpdateSuccess<V> | DaffCartAddressUpdateFailure;
40
+ export type DaffCartAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartAddressUpdate<T> | DaffCartAddressUpdateSuccess<V> | DaffCartAddressUpdateFailure;
@@ -62,4 +62,4 @@ export declare class DaffCartBillingAddressUpdateFailure implements DaffFailureA
62
62
  /**
63
63
  * A union of all the cart billing address action classes.
64
64
  */
65
- export declare type DaffCartBillingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartBillingAddressLoad | DaffCartBillingAddressLoadSuccess<T> | DaffCartBillingAddressLoadFailure | DaffCartBillingAddressUpdate<T> | DaffCartBillingAddressUpdateSuccess<V> | DaffCartBillingAddressUpdateFailure;
65
+ export type DaffCartBillingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartBillingAddressLoad | DaffCartBillingAddressLoadSuccess<T> | DaffCartBillingAddressLoadFailure | DaffCartBillingAddressUpdate<T> | DaffCartBillingAddressUpdateSuccess<V> | DaffCartBillingAddressUpdateFailure;
@@ -121,4 +121,4 @@ export declare class DaffCartCouponClearErrors implements Action {
121
121
  /**
122
122
  * A union of all the cart coupon action classes.
123
123
  */
124
- export declare type DaffCartCouponActions<T extends DaffCart = DaffCart, V extends DaffCartCoupon = DaffCartCoupon> = DaffCartCouponApply<V> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<V> | DaffCartCouponListFailure | DaffCartCouponRemove<V> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure | DaffCartCouponClearErrors;
124
+ export type DaffCartCouponActions<T extends DaffCart = DaffCart, V extends DaffCartCoupon = DaffCartCoupon> = DaffCartCouponApply<V> | DaffCartCouponApplySuccess<T> | DaffCartCouponApplyFailure | DaffCartCouponList | DaffCartCouponListSuccess<V> | DaffCartCouponListFailure | DaffCartCouponRemove<V> | DaffCartCouponRemoveSuccess<T> | DaffCartCouponRemoveFailure | DaffCartCouponRemoveAll | DaffCartCouponRemoveAllSuccess<T> | DaffCartCouponRemoveAllFailure | DaffCartCouponClearErrors;
@@ -181,4 +181,4 @@ export declare class DaffCartItemStateReset implements Action {
181
181
  /**
182
182
  * A union of all the cart item action classes.
183
183
  */
184
- export declare type DaffCartItemActions<T extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, V extends DaffCart = DaffCart> = DaffCartItemList | DaffCartItemListSuccess<T> | DaffCartItemListFailure | DaffCartItemLoad<T> | DaffCartItemLoadSuccess<T> | DaffCartItemLoadFailure<T> | DaffCartItemUpdate<T> | DaffCartItemUpdateSuccess<V, T> | DaffCartItemUpdateFailure<T> | DaffCartItemAdd<U> | DaffCartItemAddSuccess<V> | DaffCartItemAddFailure | DaffCartItemDelete<T> | DaffCartItemDeleteSuccess<V> | DaffCartItemDeleteFailure<T> | DaffCartItemDeleteOutOfStock | DaffCartItemDeleteOutOfStockSuccess<V> | DaffCartItemDeleteOutOfStockFailure | DaffCartItemStateReset;
184
+ export type DaffCartItemActions<T extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, V extends DaffCart = DaffCart> = DaffCartItemList | DaffCartItemListSuccess<T> | DaffCartItemListFailure | DaffCartItemLoad<T> | DaffCartItemLoadSuccess<T> | DaffCartItemLoadFailure<T> | DaffCartItemUpdate<T> | DaffCartItemUpdateSuccess<V, T> | DaffCartItemUpdateFailure<T> | DaffCartItemAdd<U> | DaffCartItemAddSuccess<V> | DaffCartItemAddFailure | DaffCartItemDelete<T> | DaffCartItemDeleteSuccess<V> | DaffCartItemDeleteFailure<T> | DaffCartItemDeleteOutOfStock | DaffCartItemDeleteOutOfStockSuccess<V> | DaffCartItemDeleteOutOfStockFailure | DaffCartItemStateReset;
@@ -36,4 +36,4 @@ export declare class DaffCartPlaceOrderFailure implements DaffFailureAction {
36
36
  /**
37
37
  * A union of all the cart order action classes.
38
38
  */
39
- export declare type DaffCartOrderActions<T extends DaffCartOrderResult = DaffCartOrderResult, V extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPlaceOrder<V> | DaffCartPlaceOrderSuccess<T> | DaffCartPlaceOrderFailure;
39
+ export type DaffCartOrderActions<T extends DaffCartOrderResult = DaffCartOrderResult, V extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPlaceOrder<V> | DaffCartPlaceOrderSuccess<T> | DaffCartPlaceOrderFailure;
@@ -35,4 +35,4 @@ export declare class DaffCartPaymentMethodsLoadFailure implements DaffFailureAct
35
35
  /**
36
36
  * A union of all the cart payment methods action classes.
37
37
  */
38
- export declare type DaffCartPaymentMethodsActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPaymentMethodsLoad | DaffCartPaymentMethodsLoadSuccess<T> | DaffCartPaymentMethodsLoadFailure;
38
+ export type DaffCartPaymentMethodsActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod> = DaffCartPaymentMethodsLoad | DaffCartPaymentMethodsLoadSuccess<T> | DaffCartPaymentMethodsLoadFailure;
@@ -132,4 +132,4 @@ export declare class DaffCartPaymentMethodAdd<T extends DaffCartPaymentMethod =
132
132
  /**
133
133
  * A union of all the cart payment action classes.
134
134
  */
135
- export declare type DaffCartPaymentActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod, V extends DaffCart = DaffCart, R extends DaffCartAddress = DaffCartAddress> = DaffCartPaymentLoad | DaffCartPaymentLoadSuccess<T> | DaffCartPaymentLoadFailure | DaffCartPaymentUpdate<T> | DaffCartPaymentUpdateSuccess<V> | DaffCartPaymentUpdateFailure | DaffCartPaymentUpdateWithBilling<T, R> | DaffCartPaymentUpdateWithBillingSuccess<V> | DaffCartPaymentUpdateWithBillingFailure | DaffCartPaymentRemove | DaffCartPaymentRemoveSuccess | DaffCartPaymentRemoveFailure | DaffCartPaymentMethodAdd<T>;
135
+ export type DaffCartPaymentActions<T extends DaffCartPaymentMethod = DaffCartPaymentMethod, V extends DaffCart = DaffCart, R extends DaffCartAddress = DaffCartAddress> = DaffCartPaymentLoad | DaffCartPaymentLoadSuccess<T> | DaffCartPaymentLoadFailure | DaffCartPaymentUpdate<T> | DaffCartPaymentUpdateSuccess<V> | DaffCartPaymentUpdateFailure | DaffCartPaymentUpdateWithBilling<T, R> | DaffCartPaymentUpdateWithBillingSuccess<V> | DaffCartPaymentUpdateWithBillingFailure | DaffCartPaymentRemove | DaffCartPaymentRemoveSuccess | DaffCartPaymentRemoveFailure | DaffCartPaymentMethodAdd<T>;
@@ -62,4 +62,4 @@ export declare class DaffCartShippingAddressUpdateFailure implements DaffFailure
62
62
  /**
63
63
  * A union of all the cart shipping address action classes.
64
64
  */
65
- export declare type DaffCartShippingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartShippingAddressLoad | DaffCartShippingAddressLoadSuccess<T> | DaffCartShippingAddressLoadFailure | DaffCartShippingAddressUpdate<T> | DaffCartShippingAddressUpdateSuccess<V> | DaffCartShippingAddressUpdateFailure;
65
+ export type DaffCartShippingAddressActions<T extends DaffCartAddress = DaffCartAddress, V extends DaffCart = DaffCart> = DaffCartShippingAddressLoad | DaffCartShippingAddressLoadSuccess<T> | DaffCartShippingAddressLoadFailure | DaffCartShippingAddressUpdate<T> | DaffCartShippingAddressUpdateSuccess<V> | DaffCartShippingAddressUpdateFailure;
@@ -83,4 +83,4 @@ export declare class DaffCartShippingInformationDeleteFailure implements DaffFai
83
83
  /**
84
84
  * A union of all the cart shipping information action classes.
85
85
  */
86
- export declare type DaffCartShippingInformationActions<T extends DaffCartShippingRate = DaffCartShippingRate, V extends DaffCart = DaffCart> = DaffCartShippingInformationLoad | DaffCartShippingInformationLoadSuccess<T> | DaffCartShippingInformationLoadFailure | DaffCartShippingInformationUpdate<T> | DaffCartShippingInformationUpdateSuccess<V> | DaffCartShippingInformationUpdateFailure | DaffCartShippingInformationDelete<T> | DaffCartShippingInformationDeleteSuccess<V> | DaffCartShippingInformationDeleteFailure;
86
+ export type DaffCartShippingInformationActions<T extends DaffCartShippingRate = DaffCartShippingRate, V extends DaffCart = DaffCart> = DaffCartShippingInformationLoad | DaffCartShippingInformationLoadSuccess<T> | DaffCartShippingInformationLoadFailure | DaffCartShippingInformationUpdate<T> | DaffCartShippingInformationUpdateSuccess<V> | DaffCartShippingInformationUpdateFailure | DaffCartShippingInformationDelete<T> | DaffCartShippingInformationDeleteSuccess<V> | DaffCartShippingInformationDeleteFailure;
@@ -29,4 +29,4 @@ export declare class DaffCartShippingMethodsLoadFailure implements DaffFailureAc
29
29
  /**
30
30
  * A union of all the cart shipping methods action classes.
31
31
  */
32
- export declare type DaffCartShippingMethodsActions<T extends DaffCartShippingRate = DaffCartShippingRate> = DaffCartShippingMethodsLoad | DaffCartShippingMethodsLoadSuccess<T> | DaffCartShippingMethodsLoadFailure;
32
+ export type DaffCartShippingMethodsActions<T extends DaffCartShippingRate = DaffCartShippingRate> = DaffCartShippingMethodsLoad | DaffCartShippingMethodsLoadSuccess<T> | DaffCartShippingMethodsLoadFailure;
@@ -181,4 +181,4 @@ export declare class DaffResolveCartServerSide implements Action {
181
181
  /**
182
182
  * A union of all the cart action classes.
183
183
  */
184
- export declare type DaffCartActions<T extends DaffCart = DaffCart> = DaffCartStorageFailure | DaffCartLoad | DaffCartLoadSuccess<T> | DaffCartLoadPartialSuccess<T> | DaffCartLoadFailure | DaffCartCreate | DaffCartCreateSuccess<T> | DaffCartCreateFailure | DaffAddToCart | DaffAddToCartSuccess | DaffAddToCartFailure | DaffCartClear | DaffCartClearSuccess<T> | DaffCartClearFailure | DaffResolveCart | DaffResolveCartSuccess<T> | DaffResolveCartPartialSuccess<T> | DaffResolveCartServerSide | DaffResolveCartFailure;
184
+ export type DaffCartActions<T extends DaffCart = DaffCart> = DaffCartStorageFailure | DaffCartLoad | DaffCartLoadSuccess<T> | DaffCartLoadPartialSuccess<T> | DaffCartLoadFailure | DaffCartCreate | DaffCartCreateSuccess<T> | DaffCartCreateFailure | DaffAddToCart | DaffAddToCartSuccess | DaffAddToCartFailure | DaffCartClear | DaffCartClearSuccess<T> | DaffCartClearFailure | DaffResolveCart | DaffResolveCartSuccess<T> | DaffResolveCartPartialSuccess<T> | DaffResolveCartServerSide | DaffResolveCartFailure;
@@ -37,4 +37,4 @@ export interface DaffCartRetrievalActionTransformedInjection<T extends Action =
37
37
  * Actions provided to {@link DAFF_CART_RETRIEVAL_ACTIONS} are natively understood by Daffodil reducers and will automatically
38
38
  * populate the appropriate pieces of state when they are dispatched.
39
39
  */
40
- export declare type DaffCartRetrievalActionInjection = DaffCartRetrievalActionDirectInjection | DaffCartRetrievalActionTransformedInjection;
40
+ export type DaffCartRetrievalActionInjection = DaffCartRetrievalActionDirectInjection | DaffCartRetrievalActionTransformedInjection;
@@ -1,4 +1,4 @@
1
1
  import { DaffCart, DaffCartAddress, DaffCartCoupon, DaffCartItemInput, DaffCartOrderResult, DaffCartPaymentMethod, DaffCartShippingRate } from '@daffodil/cart';
2
2
  import { DaffCartActions, DaffCartItemActions, DaffCartBillingAddressActions, DaffCartShippingAddressActions, DaffCartShippingMethodsActions, DaffCartShippingInformationActions, DaffCartPaymentActions, DaffCartPaymentMethodsActions, DaffCartCouponActions, DaffCartAddressActions, DaffCartOrderActions } from '../actions/public_api';
3
3
  import { DaffStatefulCartItem } from '../models/public_api';
4
- export declare type ActionTypes<T extends DaffCart = DaffCart, V extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, W extends DaffCartAddress = DaffCartAddress, X extends DaffCartShippingRate = DaffCartShippingRate, Y extends DaffCartPaymentMethod = DaffCartPaymentMethod, Z extends DaffCartCoupon = DaffCartCoupon, TOrderResult extends DaffCartOrderResult = DaffCartOrderResult> = DaffCartActions<T> | DaffCartItemActions<V, U, T> | DaffCartBillingAddressActions<W, T> | DaffCartShippingAddressActions<W, T> | DaffCartAddressActions<W, T> | DaffCartShippingMethodsActions<X> | DaffCartShippingInformationActions<X, T> | DaffCartPaymentActions<Y, T, W> | DaffCartPaymentMethodsActions<Y> | DaffCartOrderActions<TOrderResult> | DaffCartCouponActions<T, Z>;
4
+ export type ActionTypes<T extends DaffCart = DaffCart, V extends DaffStatefulCartItem = DaffStatefulCartItem, U extends DaffCartItemInput = DaffCartItemInput, W extends DaffCartAddress = DaffCartAddress, X extends DaffCartShippingRate = DaffCartShippingRate, Y extends DaffCartPaymentMethod = DaffCartPaymentMethod, Z extends DaffCartCoupon = DaffCartCoupon, TOrderResult extends DaffCartOrderResult = DaffCartOrderResult> = DaffCartActions<T> | DaffCartItemActions<V, U, T> | DaffCartBillingAddressActions<W, T> | DaffCartShippingAddressActions<W, T> | DaffCartAddressActions<W, T> | DaffCartShippingMethodsActions<X> | DaffCartShippingInformationActions<X, T> | DaffCartPaymentActions<Y, T, W> | DaffCartPaymentMethodsActions<Y> | DaffCartOrderActions<TOrderResult> | DaffCartCouponActions<T, Z>;
@@ -3,7 +3,7 @@ import { DaffCart, DaffCartOrderResult } from '@daffodil/cart';
3
3
  import { DaffCartItemActions } from '../../actions/public_api';
4
4
  import { DaffStatefulCartItem } from '../../models/public_api';
5
5
  import { DaffCartReducersState } from '../cart-reducers-state.interface';
6
- declare type Reducer<T extends DaffStatefulCartItem = DaffStatefulCartItem> = ActionReducer<DaffCartReducersState<DaffCart, DaffCartOrderResult, T>, DaffCartItemActions<T>>;
6
+ type Reducer<T extends DaffStatefulCartItem = DaffStatefulCartItem> = ActionReducer<DaffCartReducersState<DaffCart, DaffCartOrderResult, T>, DaffCartItemActions<T>>;
7
7
  /**
8
8
  * A meta reducer for determining and setting the correct `daffState` values on cart items.
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import { DaffStateError } from '@daffodil/core/state';
2
2
  import { DaffCartOperationType } from '../cart-operation-type.enum';
3
- export declare type DaffCartErrors = {
3
+ export type DaffCartErrors = {
4
4
  [K in DaffCartOperationType]: DaffStateError[];
5
5
  };
@@ -11,7 +11,7 @@ export interface DaffCartLoading {
11
11
  [DaffCartOperationType.ShippingMethods]: DaffLoadingState;
12
12
  [DaffCartOperationType.Coupon]: DaffMutableLoadingState;
13
13
  }
14
- export declare type DaffCartItemLoadingState = DaffMutableLoadingState | DaffState.Adding;
14
+ export type DaffCartItemLoadingState = DaffMutableLoadingState | DaffState.Adding;
15
15
  export declare const initializeLoadingSetter: (loadingSpace: DaffCartOperationType) => (loadingObj: DaffCartLoading, loading: DaffLoadingState | DaffMutableLoadingState | DaffCartItemLoadingState) => {
16
16
  loading: {
17
17
  Cart: DaffMutableLoadingState;
@@ -7,7 +7,7 @@ import { DaffCartReducersState } from '../cart-reducers-state.interface';
7
7
  *
8
8
  * Prefer using {@link daffCartProvideMetaReducers}.
9
9
  */
10
- export declare const DAFF_CART_META_REDUCERS: InjectionToken<MetaReducer<DaffCartReducersState<DaffCart, import("@daffodil/cart").DaffCartOrderResult, import("@daffodil/cart/state").DaffStatefulCartItem>, import("@ngrx/store").Action>[]>;
10
+ export declare const DAFF_CART_META_REDUCERS: InjectionToken<MetaReducer<DaffCartReducersState<DaffCart, import("@daffodil/cart").DaffCartOrderResult, import("@daffodil/cart/state").DaffStatefulCartItem>>[]>;
11
11
  /**
12
12
  * Provides additional meta-reducers that run after the standard Daffodil cart meta-reducers.
13
13
  *
@@ -1,129 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import { STATUS, } from 'angular-in-memory-web-api';
3
- import { DaffInMemoryBackendCartService } from './cart/cart.service';
4
- import { DaffInMemoryBackendCartAddressService } from './cart-address/cart-address.service';
5
- import { DaffInMemoryBackendCartBillingAddressService } from './cart-billing-address/cart-billing-address.service';
6
- import { DaffInMemoryBackendCartCouponService } from './cart-coupon/cart-coupon.service';
7
- import { DaffInMemoryBackendCartItemsService } from './cart-items/cart-items.service';
8
- import { DaffInMemoryBackendCartOrderService } from './cart-order/cart-order.service';
9
- import { DaffInMemoryBackendCartPaymentService } from './cart-payment/cart-payment.service';
10
- import { DaffInMemoryBackendCartPaymentMethodsService } from './cart-payment-methods/cart-payment-methods.service';
11
- import { DaffInMemoryBackendCartShippingAddressService } from './cart-shipping-address/cart-shipping-address.service';
12
- import { DaffInMemoryBackendCartShippingInformationService } from './cart-shipping-information/cart-shipping-information.service';
13
- import { DaffInMemoryBackendCartShippingMethodsService } from './cart-shipping-methods/cart-shipping-methods.service';
14
- import * as i0 from "@angular/core";
15
- import * as i1 from "./cart/cart.service";
16
- import * as i2 from "./cart-items/cart-items.service";
17
- import * as i3 from "./cart-order/cart-order.service";
18
- import * as i4 from "./cart-coupon/cart-coupon.service";
19
- import * as i5 from "./cart-address/cart-address.service";
20
- import * as i6 from "./cart-shipping-address/cart-shipping-address.service";
21
- import * as i7 from "./cart-billing-address/cart-billing-address.service";
22
- import * as i8 from "./cart-payment-methods/cart-payment-methods.service";
23
- import * as i9 from "./cart-shipping-methods/cart-shipping-methods.service";
24
- import * as i10 from "./cart-payment/cart-payment.service";
25
- import * as i11 from "./cart-shipping-information/cart-shipping-information.service";
26
- /**
27
- * The root cart in-memory backend.
28
- * Creates the database and delegates requests to child backends.
29
- */
30
- export class DaffInMemoryBackendCartRootService {
31
- constructor(cartService, cartItemsService, cartOrderService, cartCouponService, cartAddressService, cartShippingAddressService, cartBillingAddressService, cartPaymentMethodsService, cartShippingMethodsService, cartPaymentService, cartShippingInformationService) {
32
- this.cartService = cartService;
33
- this.cartItemsService = cartItemsService;
34
- this.cartOrderService = cartOrderService;
35
- this.cartCouponService = cartCouponService;
36
- this.cartAddressService = cartAddressService;
37
- this.cartShippingAddressService = cartShippingAddressService;
38
- this.cartBillingAddressService = cartBillingAddressService;
39
- this.cartPaymentMethodsService = cartPaymentMethodsService;
40
- this.cartShippingMethodsService = cartShippingMethodsService;
41
- this.cartPaymentService = cartPaymentService;
42
- this.cartShippingInformationService = cartShippingInformationService;
43
- /**
44
- * The collection of carts in the backend.
45
- */
46
- this.carts = [];
47
- }
48
- createDb(reqInfo) {
49
- if (reqInfo) {
50
- const seedData = reqInfo.utils.getJsonBody(reqInfo.req).carts;
51
- if (seedData) {
52
- this.carts = seedData;
53
- }
54
- }
55
- return {
56
- cart: this.carts,
57
- };
58
- }
59
- get(reqInfo) {
60
- return this.delegateRequest(reqInfo);
61
- }
62
- post(reqInfo) {
63
- return this.delegateRequest(reqInfo);
64
- }
65
- put(reqInfo) {
66
- return this.delegateRequest(reqInfo);
67
- }
68
- delete(reqInfo) {
69
- return this.delegateRequest(reqInfo);
70
- }
71
- delegateRequest(reqInfo) {
72
- reqInfo.collection = this.carts;
73
- switch (reqInfo.collectionName) {
74
- case 'cart':
75
- return this.cartService[reqInfo.method](reqInfo);
76
- case 'cart-items':
77
- return this.cartItemsService[reqInfo.method](reqInfo);
78
- case 'cart-order':
79
- return this.cartOrderService[reqInfo.method](reqInfo);
80
- case 'cart-coupon':
81
- return this.cartCouponService[reqInfo.method](reqInfo);
82
- case 'cart-address':
83
- return this.cartAddressService[reqInfo.method](reqInfo);
84
- case 'cart-shipping-address':
85
- return this.cartShippingAddressService[reqInfo.method](reqInfo);
86
- case 'cart-billing-address':
87
- return this.cartBillingAddressService[reqInfo.method](reqInfo);
88
- case 'cart-payment-methods':
89
- return this.cartPaymentMethodsService[reqInfo.method](reqInfo);
90
- case 'cart-shipping-methods':
91
- return this.cartShippingMethodsService[reqInfo.method](reqInfo);
92
- case 'cart-payment':
93
- return this.cartPaymentService[reqInfo.method](reqInfo);
94
- case 'cart-shipping-information':
95
- return this.cartShippingInformationService[reqInfo.method](reqInfo);
96
- default:
97
- return reqInfo.utils.createResponse$(() => ({
98
- body: {},
99
- status: STATUS.OK,
100
- }));
101
- }
102
- }
103
- }
104
- /**
105
- * The collections that the root service manages.
106
- * Useful for a higher-level backend that delegates to this one based on collection name.
107
- */
108
- DaffInMemoryBackendCartRootService.COLLECTION_NAMES = [
109
- 'cart',
110
- 'cart-items',
111
- 'cart-order',
112
- 'cart-coupon',
113
- 'cart-address',
114
- 'cart-shipping-address',
115
- 'cart-billing-address',
116
- 'cart-payment-methods',
117
- 'cart-shipping-methods',
118
- 'cart-payment',
119
- 'cart-shipping-information',
120
- ];
121
- /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, deps: [{ token: i1.DaffInMemoryBackendCartService }, { token: i2.DaffInMemoryBackendCartItemsService }, { token: i3.DaffInMemoryBackendCartOrderService }, { token: i4.DaffInMemoryBackendCartCouponService }, { token: i5.DaffInMemoryBackendCartAddressService }, { token: i6.DaffInMemoryBackendCartShippingAddressService }, { token: i7.DaffInMemoryBackendCartBillingAddressService }, { token: i8.DaffInMemoryBackendCartPaymentMethodsService }, { token: i9.DaffInMemoryBackendCartShippingMethodsService }, { token: i10.DaffInMemoryBackendCartPaymentService }, { token: i11.DaffInMemoryBackendCartShippingInformationService }], target: i0.ɵɵFactoryTarget.Injectable });
122
- /** @nocollapse */ DaffInMemoryBackendCartRootService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, providedIn: 'root' });
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffInMemoryBackendCartRootService, decorators: [{
124
- type: Injectable,
125
- args: [{
126
- providedIn: 'root',
127
- }]
128
- }], ctorParameters: function () { return [{ type: i1.DaffInMemoryBackendCartService }, { type: i2.DaffInMemoryBackendCartItemsService }, { type: i3.DaffInMemoryBackendCartOrderService }, { type: i4.DaffInMemoryBackendCartCouponService }, { type: i5.DaffInMemoryBackendCartAddressService }, { type: i6.DaffInMemoryBackendCartShippingAddressService }, { type: i7.DaffInMemoryBackendCartBillingAddressService }, { type: i8.DaffInMemoryBackendCartPaymentMethodsService }, { type: i9.DaffInMemoryBackendCartShippingMethodsService }, { type: i10.DaffInMemoryBackendCartPaymentService }, { type: i11.DaffInMemoryBackendCartShippingInformationService }]; } });
129
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC1yb290LnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvZHJpdmVyL2luLW1lbW9yeS9zcmMvYmFja2VuZC9jYXJ0LXJvb3Quc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFHTCxNQUFNLEdBQ1AsTUFBTSwyQkFBMkIsQ0FBQztBQUtuQyxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNyRSxPQUFPLEVBQUUscUNBQXFDLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUM1RixPQUFPLEVBQUUsNENBQTRDLEVBQUUsTUFBTSxxREFBcUQsQ0FBQztBQUNuSCxPQUFPLEVBQUUsb0NBQW9DLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUN6RixPQUFPLEVBQUUsbUNBQW1DLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUN0RixPQUFPLEVBQUUsbUNBQW1DLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUN0RixPQUFPLEVBQUUscUNBQXFDLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUM1RixPQUFPLEVBQUUsNENBQTRDLEVBQUUsTUFBTSxxREFBcUQsQ0FBQztBQUNuSCxPQUFPLEVBQUUsNkNBQTZDLEVBQUUsTUFBTSx1REFBdUQsQ0FBQztBQUN0SCxPQUFPLEVBQUUsaURBQWlEL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J0LWJpbGxpbmctYWRkcmVzcyc6XG4gICAgICAgIHJldHVybiB0aGlzLmNhcnRCaWxsaW5nQWRkcmVzc1NlcnZpY2VbcmVxSW5mby5tZXRob2RdKHJlcUluZm8pO1xuXG4gICAgICBjYXNlICdjYXJ0LXBheW1lbnQtbWV0aG9kcyc6XG4gICAgICAgIHJldHVybiB0aGlzLmNhcnRQYXltZW50TWV0aG9kc1NlcnZpY2VbcmVxSW5mby5tZXRob2RdKHJlcUluZm8pO1xuXG4gICAgICBjYXNlICdjYXJ0LXNoaXBwaW5nLW1ldGhvZHMnOlxuICAgICAgICByZXR1cm4gdGhpcy5jYXJ0U2hpcHBpbmdNZXRob2RzU2VydmljZVtyZXFJbmZvLm1ldGhvZF0ocmVxSW5mbyk7XG5cbiAgICAgIGNhc2UgJ2NhcnQtcGF5bWVudCc6XG4gICAgICAgIHJldHVybiB0aGlzLmNhcnRQYXltZW50U2VydmljZVtyZXFJbmZvLm1ldGhvZF0ocmVxSW5mbyk7XG5cbiAgICAgIGNhc2UgJ2NhcnQtc2hpcHBpbmctaW5mb3JtYXRpb24nOlxuICAgICAgICByZXR1cm4gdGhpcy5jYXJ0U2hpcHBpbmdJbmZvcm1hdGlvblNlcnZpY2VbcmVxSW5mby5tZXRob2RdKHJlcUluZm8pO1xuXG4gICAgICBkZWZhdWx0OlxuICAgICAgICByZXR1cm4gcmVxSW5mby51dGlscy5jcmVhdGVSZXNwb25zZSQoKCkgPT4gKHtcbiAgICAgICAgICBib2R5OiB7fSxcbiAgICAgICAgICBzdGF0dXM6IFNUQVRVUy5PSyxcbiAgICAgICAgfSkpO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -1,40 +0,0 @@
1
- import { Injectable, Inject, } from '@angular/core';
2
- import { Router, } from '@angular/router';
3
- import { tap, take, } from 'rxjs/operators';
4
- import { DaffCartFacade } from '@daffodil/cart/state';
5
- import { DaffCartBillingAddressGuardRedirectUrl } from './billing-address-guard-redirect.token';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@daffodil/cart/state";
8
- import * as i2 from "@angular/router";
9
- /**
10
- * A routing guard that will redirect to a given url if the billing address on the cart is not defined.
11
- * The url is `/` by default, but can be overridden with the DaffCartBillingAddressGuardRedirectUrl injection token.
12
- * The guard will not wait until the cart has been resolved before performing the check and emitting.
13
- * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
14
- */
15
- export class DaffBillingAddressGuard {
16
- constructor(facade, router, redirectUrl) {
17
- this.facade = facade;
18
- this.router = router;
19
- this.redirectUrl = redirectUrl;
20
- }
21
- canActivate() {
22
- return this.facade.hasBillingAddress$.pipe(take(1), tap(hasBillingAddress => {
23
- if (!hasBillingAddress) {
24
- this.router.navigateByUrl(this.redirectUrl);
25
- }
26
- }));
27
- }
28
- }
29
- /** @nocollapse */ DaffBillingAddressGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartBillingAddressGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
30
- /** @nocollapse */ DaffBillingAddressGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, providedIn: 'root' });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffBillingAddressGuard, decorators: [{
32
- type: Injectable,
33
- args: [{
34
- providedIn: 'root',
35
- }]
36
- }], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
37
- type: Inject,
38
- args: [DaffCartBillingAddressGuardRedirectUrl]
39
- }] }]; } });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlsbGluZy1hZGRyZXNzLmd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZ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aGFzIGJlZW4gcmVzb2x2ZWQgYmVmb3JlIHBlcmZvcm1pbmcgdGhlIGNoZWNrIGFuZCBlbWl0dGluZy5cbiAqIEVuc3VyZSB0aGF0IHRoZSBjYXJ0IGlzIHJlc29sdmVkIHByaW9yIHRvIHJ1bm5pbmcgdGhpcyBndWFyZCB3aXRoIHRoZSB7QGxpbmsgRGFmZlJlc29sdmVkQ2FydEd1YXJkfS5cbiAqL1xuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCcsXG59KVxuZXhwb3J0IGNsYXNzIERhZmZCaWxsaW5nQWRkcmVzc0d1YXJkIGltcGxlbWVudHMgQ2FuQWN0aXZhdGUge1xuICBjb25zdHJ1Y3RvcihcbiAgICBwcml2YXRlIGZhY2FkZTogRGFmZkNhcnRGYWNhZGUsXG4gICAgcHJpdmF0ZSByb3V0ZXI6IFJvdXRlcixcbiAgICBASW5qZWN0KERhZmZDYXJ0QmlsbGluZ0FkZHJlc3NHdWFyZFJlZGlyZWN0VXJsKSBwcml2YXRlIHJlZGlyZWN0VXJsOiBzdHJpbmcsXG4gICkge31cblxuICBjYW5BY3RpdmF0ZSgpOiBPYnNlcnZhYmxlPGJvb2xlYW4+IHtcbiAgICByZXR1cm4gdGhpcy5mYWNhZGUuaGFzQmlsbGluZ0FkZHJlc3MkLnBpcGUoXG4gICAgICB0YWtlKDEpLFxuICAgICAgdGFwKGhhc0JpbGxpbmdBZGRyZXNzID0+IHtcbiAgICAgICAgaWYgKCFoYXNCaWxsaW5nQWRkcmVzcykge1xuICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlQnlVcmwodGhpcy5yZWRpcmVjdFVybCk7XG4gICAgICAgIH1cbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -1,41 +0,0 @@
1
- import { Injectable, Inject, } from '@angular/core';
2
- import { Router, } from '@angular/router';
3
- import { tap, take, map, } from 'rxjs/operators';
4
- import { DaffCartFacade } from '@daffodil/cart/state';
5
- import { DaffCartItemsGuardRedirectUrl } from './cart-items-guard-redirect.token';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@daffodil/cart/state";
8
- import * as i2 from "@angular/router";
9
- /**
10
- * A routing guard that will ensure that the cart is not empty before allowing activation of a route.
11
- * If the cart has items in it, then `canActivate` will emit true. If not, it will emit false and redirect to a specific path.
12
- * The url is `/` by default but can be overridden with the {@link DaffCartItemsGuardRedirectUrl} injection token.
13
- * The guard will not wait until the cart has been resolved before performing the check and emitting.
14
- * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
15
- */
16
- export class DaffCartItemsGuard {
17
- constructor(facade, router, redirectUrl) {
18
- this.facade = facade;
19
- this.router = router;
20
- this.redirectUrl = redirectUrl;
21
- }
22
- canActivate() {
23
- return this.facade.isCartEmpty$.pipe(map(isCartEmpty => !isCartEmpty), take(1), tap(hasNonEmptyCart => {
24
- if (!hasNonEmptyCart) {
25
- this.router.navigateByUrl(this.redirectUrl);
26
- }
27
- }));
28
- }
29
- }
30
- /** @nocollapse */ DaffCartItemsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartItemsGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
31
- /** @nocollapse */ DaffCartItemsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, providedIn: 'root' });
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCartItemsGuard, decorators: [{
33
- type: Injectable,
34
- args: [{
35
- providedIn: 'root',
36
- }]
37
- }], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
38
- type: Inject,
39
- args: [DaffCartItemsGuardRedirectUrl]
40
- }] }]; }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ICFpc0NhcnRFbXB0eSksXG4gICAgICB0YWtlKDEpLFxuICAgICAgdGFwKGhhc05vbkVtcHR5Q2FydCA9PiB7XG4gICAgICAgIGlmICghaGFzTm9uRW1wdHlDYXJ0KSB7XG4gICAgICAgICAgdGhpcy5yb3V0ZXIubmF2aWdhdGVCeVVybCh0aGlzLnJlZGlyZWN0VXJsKTtcbiAgICAgICAgfVxuICAgICAgfSksXG4gICAgKTtcbiAgfVxufVxuIl19
@@ -1,40 +0,0 @@
1
- import { Injectable, Inject, } from '@angular/core';
2
- import { Router, } from '@angular/router';
3
- import { tap, take, } from 'rxjs/operators';
4
- import { DaffCartFacade } from '@daffodil/cart/state';
5
- import { DaffCartPaymentMethodGuardRedirectUrl } from './payment-method-guard-redirect.token';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@daffodil/cart/state";
8
- import * as i2 from "@angular/router";
9
- /**
10
- * A routing guard that will redirect to a given url if the payment method on the cart is not defined.
11
- * The url is `/` by default, but can be overridden with the DaffCartPaymentMethodGuardRedirectUrl injection token.
12
- * The guard will not wait until the cart has been resolved before performing the check and emitting.
13
- * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
14
- */
15
- export class DaffPaymentMethodGuard {
16
- constructor(facade, router, redirectUrl) {
17
- this.facade = facade;
18
- this.router = router;
19
- this.redirectUrl = redirectUrl;
20
- }
21
- canActivate() {
22
- return this.facade.hasPaymentMethod$.pipe(take(1), tap(hasPaymentMethod => {
23
- if (!hasPaymentMethod) {
24
- this.router.navigateByUrl(this.redirectUrl);
25
- }
26
- }));
27
- }
28
- }
29
- /** @nocollapse */ DaffPaymentMethodGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartPaymentMethodGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
30
- /** @nocollapse */ DaffPaymentMethodGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, providedIn: 'root' });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPaymentMethodGuard, decorators: [{
32
- type: Injectable,
33
- args: [{
34
- providedIn: 'root',
35
- }]
36
- }], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
37
- type: Inject,
38
- args: [DaffCartPaymentMethodGuardRedirectUrl]
39
- }] }]; } });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC1tZXRob2QuZ3VhcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NhcnQvcm91dGluZy9zcmMvZ3VhcmRzL3BheW1lbnQtbWV0aG9kL3BheW1lbnQtbWV0aG9kLmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxNQUFNLEdBQ1AsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQ0wsR0FBRyxFQUNILElBQUksR0FDTCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV0RCxPQUFPLEVBQUUscUNBQXFDLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQzs7OztBQUU5Rjs7Ozs7R0FLRztBQUlILE1BQU0sT0FBTyxzQkFBc0I7SUFDakMsWUFDVSxNQUFzQixFQUN0QixNQUFjLEVBQ2lDLFdBQW1CO1FBRmxFLFdBQU0sR0FBTixNQUFNLENBQWdCO1FBQ3R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gdGhpcy5mYWNhZGUuaGFzUGF5bWVudE1ldGhvZCQucGlwZShcbiAgICAgIHRha2UoMSksXG4gICAgICB0YXAoaGFzUGF5bWVudE1ldGhvZCA9PiB7XG4gICAgICAgIGlmICghaGFzUGF5bWVudE1ldGhvZCkge1xuICAgICAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlQnlVcmwodGhpcy5yZWRpcmVjdFVybCk7XG4gICAgICAgIH1cbiAgICAgIH0pLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -1,40 +0,0 @@
1
- import { Injectable, Inject, } from '@angular/core';
2
- import { Router, } from '@angular/router';
3
- import { tap, take, } from 'rxjs/operators';
4
- import { DaffCartFacade } from '@daffodil/cart/state';
5
- import { DaffCartShippingMethodGuardRedirectUrl } from './shipping-method-guard-redirect.token';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@daffodil/cart/state";
8
- import * as i2 from "@angular/router";
9
- /**
10
- * A routing guard that will redirect to a given url if the shipping method on the cart is not defined.
11
- * The url is `/` by default, but can be overridden with the DaffCartShippingMethodGuardRedirectUrl injection token.
12
- * The guard will not wait until the cart has been resolved before performing the check and emitting.
13
- * Ensure that the cart is resolved prior to running this guard with the {@link DaffResolvedCartGuard}.
14
- */
15
- export class DaffShippingMethodGuard {
16
- constructor(facade, router, redirectUrl) {
17
- this.facade = facade;
18
- this.router = router;
19
- this.redirectUrl = redirectUrl;
20
- }
21
- canActivate() {
22
- return this.facade.hasShippingMethod$.pipe(take(1), tap(hasShippingMethod => {
23
- if (!hasShippingMethod) {
24
- this.router.navigateByUrl(this.redirectUrl);
25
- }
26
- }));
27
- }
28
- }
29
- /** @nocollapse */ DaffShippingMethodGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, deps: [{ token: i1.DaffCartFacade }, { token: i2.Router }, { token: DaffCartShippingMethodGuardRedirectUrl }], target: i0.ɵɵFactoryTarget.Injectable });
30
- /** @nocollapse */ DaffShippingMethodGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, providedIn: 'root' });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffShippingMethodGuard, decorators: [{
32
- type: Injectable,
33
- args: [{
34
- providedIn: 'root',
35
- }]
36
- }], ctorParameters: function () { return [{ type: i1.DaffCartFacade }, { type: i2.Router }, { type: undefined, decorators: [{
37
- type: Inject,
38
- args: [DaffCartShippingMethodGuardRedirectUrl]
39
- }] }]; } });
40
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hpcHBpbmctbWV0aG9kLmd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jYXJ0L3JvdXRpbmcvc3JjL2d1YXJkcy9zaGlwcGluZy1tZXRob2Qvc2hpcHBpbmctbWV0aG9kLmd1YXJkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxVQUFVLEVBQ1YsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFFTCxNQUFNLEdBQ1AsTUFBTSxpQkFBaUIsQ0FBQztBQUV6QixPQUFPLEVBQ0wsR0FBRyxFQUNILElBQUksR0FDTCxNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV0RCxPQUFPLEVBQUUsc0NBQXNDLEVBQUUsTUFBTSx3Q0FBd0MsQ0FBQzs7OztBQUVoRzs7Ozs7R0FLRztBQUlILE1BQU0sT0FBTyx1QkFBdUI7SUFDbEMsWUFDVSxNQUFzQixFQUN0QixNQUFjLEVBQ2tDLFdBQW1CO1FBRm5FLFdBQU0sR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