@daffodil/cart 0.88.1 → 0.90.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 +73 -73
  7. package/fesm2022/daffodil-cart-driver-in-memory.mjs.map +1 -1
  8. package/fesm2022/daffodil-cart-driver-magento-testing.mjs +30 -30
  9. package/fesm2022/daffodil-cart-driver-magento-testing.mjs.map +1 -1
  10. package/fesm2022/daffodil-cart-driver-magento.mjs +76 -76
  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 +46 -46
  21. package/fesm2022/daffodil-cart-state.mjs.map +1 -1
  22. package/fesm2022/daffodil-cart-testing.mjs +27 -28
  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 -35
  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 -51
  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 -18
  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,8 +0,0 @@
1
- import { DaffCartShippingRate } from '@daffodil/cart';
2
- import { MagentoShippingMethodInput } from '../../models/requests/shipping-method';
3
- import * as i0 from "@angular/core";
4
- export declare class DaffMagentoShippingMethodInputTransformer {
5
- transform(method: Partial<DaffCartShippingRate>): MagentoShippingMethodInput;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoShippingMethodInputTransformer, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoShippingMethodInputTransformer>;
8
- }
@@ -1,19 +0,0 @@
1
- import { DaffCartAddress } from '@daffodil/cart';
2
- import { DaffMagentoCartAddressTransformer } from './cart-address.service';
3
- import { MagentoCartAddress } from '../../models/responses/cart-address';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Transforms magento addresses into an object usable by daffodil.
7
- */
8
- export declare class DaffMagentoBillingAddressTransformer {
9
- private addressTransformer;
10
- constructor(addressTransformer: DaffMagentoCartAddressTransformer);
11
- /**
12
- * Transforms the magento MagentoCart from the magento cart query into a DaffCartAddress.
13
- *
14
- * @param address the address from a magento cart query.
15
- */
16
- transform(address: MagentoCartAddress): DaffCartAddress;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoBillingAddressTransformer, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoBillingAddressTransformer>;
19
- }
@@ -1,16 +0,0 @@
1
- import { DaffCartAddress } from '@daffodil/cart';
2
- import { MagentoCartAddress } from '../../models/responses/cart-address';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Transforms magento addresses into an object usable by daffodil.
6
- */
7
- export declare class DaffMagentoCartAddressTransformer {
8
- /**
9
- * Transforms the magento MagentoCart from the magento cart query into a DaffCartAddress.
10
- *
11
- * @param address the address from a magento cart query.
12
- */
13
- transform(address: MagentoCartAddress): DaffCartAddress;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartAddressTransformer, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartAddressTransformer>;
16
- }
@@ -1,21 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { DaffCartMagentoCartItemTransform } from '../../interfaces/public_api';
3
- import { MagentoCart } from '../../models/responses/cart';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Transforms magento carts into an object usable by daffodil.
7
- */
8
- export declare class DaffMagentoCartCouponResponseTransformer {
9
- private cartItemTransforms;
10
- constructor(cartItemTransforms: DaffCartMagentoCartItemTransform[]);
11
- private transformCartItems;
12
- private transformCoupons;
13
- /**
14
- * Transforms the MagentoCart from the cart coupon operations into a DaffCart partial.
15
- *
16
- * @param cart the cart from a magento cart query.
17
- */
18
- transform(cart: Partial<MagentoCart>): Partial<DaffCart>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartCouponResponseTransformer, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartCouponResponseTransformer>;
21
- }
@@ -1,3 +0,0 @@
1
- import { DaffCartCoupon } from '@daffodil/cart';
2
- import { MagentoCartCoupon } from '../../models/responses/public_api';
3
- export declare function daffMagentoCouponTransform(coupon: MagentoCartCoupon): DaffCartCoupon;
@@ -1,8 +0,0 @@
1
- import { DaffCompositeCartItem } from '@daffodil/cart';
2
- import { MagentoBundleCartItem } from '../../../models/responses/cart-item';
3
- /**
4
- * Transforms a MagentoBundleCartItem into a DaffCartItem.
5
- *
6
- * @param response the response from a magento cart query.
7
- */
8
- export declare function transformMagentoBundleCartItem(bundleCartItem: MagentoBundleCartItem): DaffCompositeCartItem;
@@ -1,11 +0,0 @@
1
- import { DaffCartItem } from '@daffodil/cart';
2
- import { DaffCartMagentoCartItemTransform } from '../../../interfaces/public_api';
3
- import { MagentoCartItem } from '../../../models/responses/cart-item';
4
- /**
5
- * The standard transform for a magento cart item.
6
- */
7
- export declare const daffTransformMagentoCartItem: (cartItem: MagentoCartItem) => DaffCartItem;
8
- /**
9
- * Transforms the MagentoCartItem into a DaffCartItem using the provided transforms.
10
- */
11
- export declare const transformMagentoCartItem: (daffCartItem: DaffCartItem, cartItem: MagentoCartItem, transforms?: DaffCartMagentoCartItemTransform[]) => DaffCartItem;
@@ -1,8 +0,0 @@
1
- import { DaffConfigurableCartItem } from '@daffodil/cart';
2
- import { MagentoConfigurableCartItem } from '../../../models/responses/cart-item';
3
- /**
4
- * Transforms a MagentoConfigurableCartItem into a DaffCartItem.
5
- *
6
- * @param response the response from a magento cart query.
7
- */
8
- export declare function transformMagentoConfigurableCartItem(configurableCartItem: MagentoConfigurableCartItem): DaffConfigurableCartItem;
@@ -1,8 +0,0 @@
1
- import { DaffCartItem } from '@daffodil/cart';
2
- import { MagentoCartItem } from '../../../models/public_api';
3
- /**
4
- * Transforms the magento MagentoCartItem from the magento cart query into a DaffCartItem.
5
- *
6
- * @param response the response from a magento cart query.
7
- */
8
- export declare function transformMagentoSimpleCartItem(cartItem: MagentoCartItem): DaffCartItem;
@@ -1,16 +0,0 @@
1
- import { DaffCartPaymentMethod } from '@daffodil/cart';
2
- import { MagentoCartPaymentMethod } from '../../models/responses/cart-payment-method';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Transforms magento carts into an object usable by daffodil.
6
- */
7
- export declare class DaffMagentoCartPaymentTransformer {
8
- /**
9
- * Transforms the magento CartPayment from the magento cart query into a DaffCartPaymentMethod.
10
- *
11
- * @param responsePayment - the response from a magento cart query.
12
- */
13
- transform(responsePayment: MagentoCartPaymentMethod): DaffCartPaymentMethod;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartPaymentTransformer, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartPaymentTransformer>;
16
- }
@@ -1,16 +0,0 @@
1
- import { DaffCartShippingRate } from '@daffodil/cart';
2
- import { MagentoCartShippingMethod } from '../../models/responses/cart-shipping-method';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Transforms magento cart shipping methods into an object usable by daffodil.
6
- */
7
- export declare class DaffMagentoCartShippingRateTransformer {
8
- /**
9
- * Transforms the magento shipping method from the magento cart query into a DaffCartShippingRate.
10
- *
11
- * @param shippingMethod the shippingMethod from a magento cart query.
12
- */
13
- transform(shippingMethod: MagentoCartShippingMethod): DaffCartShippingRate;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartShippingRateTransformer, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartShippingRateTransformer>;
16
- }
@@ -1,5 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { MagentoCart } from '../../models/responses/cart';
3
- export declare function transformCartTotals(cart: Partial<MagentoCart>): {
4
- totals: DaffCart['totals'];
5
- };
@@ -1,36 +0,0 @@
1
- import { DaffCart } from '@daffodil/cart';
2
- import { DaffMagentoBillingAddressTransformer } from './billing-address.service';
3
- import { DaffMagentoCartPaymentTransformer } from './cart-payment.service';
4
- import { DaffMagentoCartShippingRateTransformer } from './cart-shipping-rate.service';
5
- import { DaffMagentoShippingAddressTransformer } from './shipping-address.service';
6
- import { DaffCartMagentoCartItemTransform, DaffCartMagentoCartTransform } from '../../interfaces/public_api';
7
- import { MagentoCart } from '../../models/responses/cart';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Transforms magento carts into an object usable by daffodil.
11
- */
12
- export declare class DaffMagentoCartTransformer<T extends MagentoCart = MagentoCart, V extends DaffCart = DaffCart> {
13
- private shippingAddressTransformer;
14
- private billingAddressTransformer;
15
- private paymentTransformer;
16
- private shippingRateTransformer;
17
- private cartItemTransforms;
18
- private cartTransforms;
19
- constructor(shippingAddressTransformer: DaffMagentoShippingAddressTransformer, billingAddressTransformer: DaffMagentoBillingAddressTransformer, paymentTransformer: DaffMagentoCartPaymentTransformer, shippingRateTransformer: DaffMagentoCartShippingRateTransformer, cartItemTransforms: DaffCartMagentoCartItemTransform[], cartTransforms: DaffCartMagentoCartTransform<T, V>[]);
20
- private transformShippingAddress;
21
- private transformBillingAddress;
22
- private transformCartItems;
23
- private transformCoupons;
24
- private transformPayment;
25
- private transformShippingInformation;
26
- private transformShippingMethods;
27
- private transformPaymentMethods;
28
- /**
29
- * Transforms the magento MagentoCart from the magento cart query into a DaffCart.
30
- *
31
- * @param cart the cart from a magento cart query.
32
- */
33
- transform(cart: T): V;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoCartTransformer<any, any>, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoCartTransformer<any, any>>;
36
- }
@@ -1,19 +0,0 @@
1
- import { DaffCartAddress } from '@daffodil/cart';
2
- import { DaffMagentoCartAddressTransformer } from './cart-address.service';
3
- import { MagentoShippingAddress } from '../../models/responses/shipping-address';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Transforms magento addresses into an object usable by daffodil.
7
- */
8
- export declare class DaffMagentoShippingAddressTransformer {
9
- private addressTransformer;
10
- constructor(addressTransformer: DaffMagentoCartAddressTransformer);
11
- /**
12
- * Transforms the magento MagentoCart from the magento cart query into a DaffCartAddress.
13
- *
14
- * @param address the address from a magento cart query.
15
- */
16
- transform(address: MagentoShippingAddress): DaffCartAddress;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffMagentoShippingAddressTransformer, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffMagentoShippingAddressTransformer>;
19
- }
@@ -1,12 +0,0 @@
1
- export { DaffMagentoCartTransformer } from './outputs/cart.service';
2
- export { DaffMagentoBillingAddressTransformer } from './outputs/billing-address.service';
3
- export { DaffMagentoShippingAddressTransformer } from './outputs/shipping-address.service';
4
- export { DaffMagentoCartAddressTransformer } from './outputs/cart-address.service';
5
- export { DaffMagentoCartPaymentTransformer } from './outputs/cart-payment.service';
6
- export { DaffMagentoCartShippingRateTransformer } from './outputs/cart-shipping-rate.service';
7
- export { DaffMagentoCartAddressInputTransformer } from './inputs/cart-address.service';
8
- export { DaffMagentoShippingAddressInputTransformer } from './inputs/shipping-address.service';
9
- export { DaffMagentoBillingAddressInputTransformer } from './inputs/billing-address.service';
10
- export { DaffMagentoCartItemUpdateInputTransformer } from './inputs/cart-item-update.service';
11
- export { DaffMagentoPaymentMethodInputTransformer } from './inputs/payment-method.service';
12
- export { DaffMagentoShippingMethodInputTransformer } from './inputs/shipping-method.service';
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCartStorageService } from '@daffodil/cart';
3
- /**
4
- * If a {@link DaffCartNotFoundError} is thrown into the stream,
5
- * the cart ID is removed from storage.
6
- * All errors are thrown back into the stream.
7
- */
8
- export declare const daffCartDriverHandleCartNotFound: <T>(storage: DaffCartStorageService) => import("rxjs").UnaryFunction<Observable<T>, Observable<T>>;
@@ -1 +0,0 @@
1
- export { daffCartDriverHandleCartNotFound } from './handle-cart-not-found';
@@ -1,5 +0,0 @@
1
- export * from './interfaces/public_api';
2
- export * from './injection-tokens/public_api';
3
- export * from './errors/public_api';
4
- export * from './services/public_api';
5
- export * from './operators/public_api';
@@ -1 +0,0 @@
1
- export { DaffCartDriverResolveService } from './resolve.service';
@@ -1,25 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartStorageService } from '@daffodil/cart';
3
- import { DaffDriverResponse } from '@daffodil/driver';
4
- import { DaffCartServiceInterface } from '../interfaces/public_api';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * A service for resolving the cart in a way that is tolerant of errors and invalid or missing cart IDs in storage.
8
- */
9
- export declare class DaffCartDriverResolveService<T extends DaffCart = DaffCart> {
10
- private driver;
11
- private storage;
12
- constructor(driver: DaffCartServiceInterface<T>, storage: DaffCartStorageService);
13
- /**
14
- * Resolves the cart, creating if no ID is in storage.
15
- * If the cart cannot be found, removes the ID from storage.
16
- * If the cart cannot be resolved, throws an error.
17
- */
18
- getCartOrFail(): Observable<DaffDriverResponse<T>>;
19
- /**
20
- * Retrieves the cart ID, creating if no ID is in storage.
21
- */
22
- getCartIdOrFail(): Observable<DaffCart['id']>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffCartDriverResolveService<any>, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffCartDriverResolveService<any>>;
25
- }
@@ -1,22 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart } from '@daffodil/cart';
3
- import { DaffCartServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartFactory } from '@daffodil/cart/testing';
5
- import { DaffDriverResponse } from '@daffodil/driver';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * @inheritdoc
9
- */
10
- export declare class DaffTestingCartService implements DaffCartServiceInterface {
11
- private cartFactory;
12
- constructor(cartFactory: DaffCartFactory);
13
- get(id: DaffCart['id']): Observable<DaffDriverResponse<DaffCart>>;
14
- addToCart(productId: string, qty: number): Observable<DaffCart>;
15
- clear(id: DaffCart['id']): Observable<DaffCart>;
16
- create(): Observable<{
17
- id: string;
18
- }>;
19
- merge(guestCart: DaffCart['id'], customerCart?: DaffCart['id']): Observable<DaffDriverResponse<DaffCart>>;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartService>;
22
- }
@@ -1,16 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartAddress } from '@daffodil/cart';
3
- import { DaffCartAddressServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartAddressFactory, DaffCartFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartAddressService implements DaffCartAddressServiceInterface {
10
- private addressFactory;
11
- private cartFactory;
12
- constructor(addressFactory: DaffCartAddressFactory, cartFactory: DaffCartFactory);
13
- update(cartId: DaffCart['id'], address: DaffCartAddress): Observable<Partial<DaffCart>>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartAddressService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartAddressService>;
16
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartAddress } from '@daffodil/cart';
3
- import { DaffCartBillingAddressServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartAddressFactory, DaffCartFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartBillingAddressService implements DaffCartBillingAddressServiceInterface {
10
- private addressFactory;
11
- private cartFactory;
12
- constructor(addressFactory: DaffCartAddressFactory, cartFactory: DaffCartFactory);
13
- get(cartId: DaffCart['id']): Observable<DaffCartAddress>;
14
- update(cartId: DaffCart['id'], address: DaffCartAddress): Observable<Partial<DaffCart>>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartBillingAddressService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartBillingAddressService>;
17
- }
@@ -1,19 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartCoupon } from '@daffodil/cart';
3
- import { DaffCartCouponServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartFactory, DaffCartCouponFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartCouponService implements DaffCartCouponServiceInterface {
10
- private couponFactory;
11
- private cartFactory;
12
- constructor(couponFactory: DaffCartCouponFactory, cartFactory: DaffCartFactory);
13
- list(cartId: DaffCart['id']): Observable<DaffCartCoupon[]>;
14
- apply(cartId: DaffCart['id'], coupon: DaffCartCoupon): Observable<Partial<DaffCart>>;
15
- remove(cartId: DaffCart['id'], coupon: DaffCartCoupon): Observable<Partial<DaffCart>>;
16
- removeAll(cartId: DaffCart['id']): Observable<Partial<DaffCart>>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartCouponService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartCouponService>;
19
- }
@@ -1,9 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export declare class DaffTestingCartDriverModule {
5
- static forRoot(): ModuleWithProviders<DaffTestingCartDriverModule>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartDriverModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DaffTestingCartDriverModule, never, [typeof i1.CommonModule], never>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DaffTestingCartDriverModule>;
9
- }
@@ -1,20 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartItem, DaffCartItemInput } from '@daffodil/cart';
3
- import { DaffCartItemServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartFactory, DaffCartItemFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartItemService implements DaffCartItemServiceInterface {
10
- private cartItemFactory;
11
- private cartFactory;
12
- constructor(cartItemFactory: DaffCartItemFactory, cartFactory: DaffCartFactory);
13
- list(cartId: DaffCart['id']): Observable<DaffCartItem[]>;
14
- get(cartId: DaffCart['id'], itemId: DaffCartItem['id']): Observable<DaffCartItem>;
15
- add(cartId: DaffCart['id'], input: DaffCartItemInput): Observable<Partial<DaffCart>>;
16
- update(cartId: DaffCart['id'], itemId: DaffCartItem['id'], item: Partial<DaffCartItem>): Observable<Partial<DaffCart>>;
17
- delete(cartId: DaffCart['id'], itemId: DaffCartItem['id']): Observable<Partial<DaffCart>>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartItemService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartItemService>;
20
- }
@@ -1,12 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartPaymentMethod, DaffCartOrderResult } from '@daffodil/cart';
3
- import { DaffCartOrderServiceInterface } from '@daffodil/cart/driver';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @inheritdoc
7
- */
8
- export declare class DaffTestingCartOrderService implements DaffCartOrderServiceInterface {
9
- placeOrder(cartId: DaffCart['id'], payment?: DaffCartPaymentMethod): Observable<DaffCartOrderResult>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartOrderService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartOrderService>;
12
- }
@@ -1,19 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartPaymentMethod, DaffCartAddress } from '@daffodil/cart';
3
- import { DaffCartPaymentServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartFactory, DaffCartPaymentFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartPaymentService implements DaffCartPaymentServiceInterface {
10
- private paymentFactory;
11
- private cartFactory;
12
- constructor(paymentFactory: DaffCartPaymentFactory, cartFactory: DaffCartFactory);
13
- get(cartId: DaffCart['id']): Observable<DaffCartPaymentMethod>;
14
- update(cartId: DaffCart['id'], payment: Partial<DaffCartPaymentMethod>): Observable<Partial<DaffCart>>;
15
- updateWithBilling(cartId: DaffCart['id'], payment: Partial<DaffCartPaymentMethod>, address: Partial<DaffCartAddress>): Observable<Partial<DaffCart>>;
16
- remove(cartId: DaffCart['id']): Observable<void>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartPaymentService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartPaymentService>;
19
- }
@@ -1,15 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartPaymentMethod } from '@daffodil/cart';
3
- import { DaffCartPaymentMethodsServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartPaymentFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartPaymentMethodsService implements DaffCartPaymentMethodsServiceInterface {
10
- private paymentFactory;
11
- constructor(paymentFactory: DaffCartPaymentFactory);
12
- list(cartId: DaffCart['id']): Observable<DaffCartPaymentMethod[]>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartPaymentMethodsService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartPaymentMethodsService>;
15
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartAddress } from '@daffodil/cart';
3
- import { DaffCartShippingAddressServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartAddressFactory, DaffCartFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartShippingAddressService implements DaffCartShippingAddressServiceInterface {
10
- private addressFactory;
11
- private cartFactory;
12
- constructor(addressFactory: DaffCartAddressFactory, cartFactory: DaffCartFactory);
13
- get(cartId: DaffCart['id']): Observable<DaffCartAddress>;
14
- update(cartId: DaffCart['id'], address: DaffCartAddress): Observable<Partial<DaffCart>>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartShippingAddressService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartShippingAddressService>;
17
- }
@@ -1,18 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartShippingRate } from '@daffodil/cart';
3
- import { DaffCartShippingInformationServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartFactory, DaffCartShippingRateFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartShippingInformationService implements DaffCartShippingInformationServiceInterface {
10
- private shippingInfoFactory;
11
- private cartFactory;
12
- constructor(shippingInfoFactory: DaffCartShippingRateFactory, cartFactory: DaffCartFactory);
13
- get(cartId: DaffCart['id']): Observable<DaffCartShippingRate>;
14
- update(cartId: DaffCart['id'], info: Partial<DaffCartShippingRate>): Observable<Partial<DaffCart>>;
15
- delete(cartId: DaffCart['id']): Observable<Partial<DaffCart>>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartShippingInformationService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartShippingInformationService>;
18
- }
@@ -1,15 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DaffCart, DaffCartShippingRate } from '@daffodil/cart';
3
- import { DaffCartShippingMethodsServiceInterface } from '@daffodil/cart/driver';
4
- import { DaffCartShippingRateFactory } from '@daffodil/cart/testing';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * @inheritdoc
8
- */
9
- export declare class DaffTestingCartShippingMethodsService implements DaffCartShippingMethodsServiceInterface {
10
- private shippingInfoFactory;
11
- constructor(shippingInfoFactory: DaffCartShippingRateFactory);
12
- list(cartId: DaffCart['id']): Observable<DaffCartShippingRate[]>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCartShippingMethodsService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCartShippingMethodsService>;
15
- }
@@ -1,12 +0,0 @@
1
- export { DaffTestingCartService } from './cart/cart.service';
2
- export { DaffTestingCartItemService } from './cart-item/cart-item.service';
3
- export { DaffTestingCartAddressService } from './cart-address/cart-address.service';
4
- export { DaffTestingCartBillingAddressService } from './cart-billing-address/cart-billing-address.service';
5
- export { DaffTestingCartPaymentService } from './cart-payment/cart-payment.service';
6
- export { DaffTestingCartPaymentMethodsService } from './cart-payment-methods/cart-payment-methods.service';
7
- export { DaffTestingCartShippingAddressService } from './cart-shipping-address/cart-shipping-address.service';
8
- export { DaffTestingCartShippingInformationService } from './cart-shipping-information/cart-shipping-information.service';
9
- export { DaffTestingCartShippingMethodsService } from './cart-shipping-methods/cart-shipping-methods.service';
10
- export { DaffTestingCartOrderService } from './cart-order/cart-order.service';
11
- export { DaffTestingCartCouponService } from './cart-coupon/cart-coupon.service';
12
- export { DaffTestingCartDriverModule } from './cart-driver.module';
@@ -1 +0,0 @@
1
- export * from './drivers/public_api';
@@ -1,10 +0,0 @@
1
- /**
2
- * An enum for the cart error codes.
3
- * Each error code is unique to an error class.
4
- */
5
- export declare enum DaffCartErrorCodes {
6
- CART_RESOLUTION = "DAFF_CART_RESOLUTION",
7
- CART_STORAGE_RESOLUTION = "DAFF_CART_STORAGE_RESOLUTION",
8
- CART_SERVER_SIDE_RESOLUTION = "DAFF_CART_SERVER_SIDE_RESOLUTION",
9
- CART_NOT_FOUND_OR_CREATED_RESOLUTION = "DAFF_CART_NOT_FOUND_OR_CREATED_RESOLUTION"
10
- }
package/errors/map.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { DaffCartResolutionError, DaffCartStorageResolutionError, DaffCartServerSideResolutionError, DaffCartNotFoundOrCreatedResolutionError } from './resolution/public_api';
2
- /**
3
- * A mapping from error codes to error class constructors.
4
- */
5
- export declare const DaffCartErrorMap: {
6
- DAFF_CART_RESOLUTION: typeof DaffCartResolutionError;
7
- DAFF_CART_STORAGE_RESOLUTION: typeof DaffCartStorageResolutionError;
8
- DAFF_CART_SERVER_SIDE_RESOLUTION: typeof DaffCartServerSideResolutionError;
9
- DAFF_CART_NOT_FOUND_OR_CREATED_RESOLUTION: typeof DaffCartNotFoundOrCreatedResolutionError;
10
- };
@@ -1,3 +0,0 @@
1
- export { DaffCartErrorCodes } from './codes.enum';
2
- export { DaffCartErrorMap } from './map';
3
- export * from './resolution/public_api';
@@ -1,11 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the cart fails to resolve.
4
- * This happens when the cart cannot be found and a new cart cannot be created.
5
- *
6
- * @inheritdoc
7
- */
8
- export declare class DaffCartNotFoundOrCreatedResolutionError extends DaffInheritableError implements DaffError {
9
- readonly code: string;
10
- constructor(message?: string);
11
- }
@@ -1,10 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the cart fails to resolve.
4
- *
5
- * @inheritdoc
6
- */
7
- export declare class DaffCartResolutionError extends DaffInheritableError implements DaffError {
8
- readonly code: string;
9
- constructor(message?: string);
10
- }
@@ -1,12 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the cart fails to resolve.
4
- * This happens when the app is running in a server environment.
5
- * This is normal and expected in SSR.
6
- *
7
- * @inheritdoc
8
- */
9
- export declare class DaffCartServerSideResolutionError extends DaffInheritableError implements DaffError {
10
- readonly code: string;
11
- constructor(message?: string);
12
- }
@@ -1,11 +0,0 @@
1
- import { DaffError, DaffInheritableError } from '@daffodil/core';
2
- /**
3
- * An error thrown when the cart fails to resolve.
4
- * This happens when loading the cart ID from storage throws an exception.
5
- *
6
- * @inheritdoc
7
- */
8
- export declare class DaffCartStorageResolutionError extends DaffInheritableError implements DaffError {
9
- readonly code: string;
10
- constructor(message?: string);
11
- }
@@ -1,4 +0,0 @@
1
- export { DaffCartResolutionError } from './cart-resolution';
2
- export { DaffCartNotFoundOrCreatedResolutionError } from './cart-not-found-or-created-resolution';
3
- export { DaffCartServerSideResolutionError } from './cart-server-side-resolution';
4
- export { DaffCartStorageResolutionError } from './cart-storage-resolution';
@@ -1,5 +0,0 @@
1
- import { DaffCartItem } from '../models/public_api';
2
- /**
3
- * Finds the IDs of any affected cart items between two carts.
4
- */
5
- export declare function daffCartGetAffectedItems<T extends DaffCartItem = DaffCartItem>(oldItems: Array<T>, newItems: Array<T>): Array<T['id']>;
@@ -1,5 +0,0 @@
1
- import { DaffCartItem } from '../models/public_api';
2
- /**
3
- * Sums the discount amounts of the cart item.
4
- */
5
- export declare function daffCartGetItemTotalDiscount(item: DaffCartItem): number;