@daffodil/order 0.39.11 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (394) hide show
  1. package/daffodil-order.d.ts +1 -0
  2. package/driver/daffodil-order-driver.d.ts +1 -0
  3. package/driver/in-memory/backend/order.service.d.ts +3 -0
  4. package/driver/in-memory/daffodil-order-driver-in-memory.d.ts +1 -0
  5. package/driver/in-memory/drivers/order-driver.module.d.ts +5 -0
  6. package/driver/in-memory/drivers/order.service.d.ts +3 -0
  7. package/driver/in-memory/package.json +5 -6
  8. package/driver/magento/2.4.0/README.md +5 -0
  9. package/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.d.ts +1 -0
  10. package/driver/magento/2.4.0/errors/transform.d.ts +1 -1
  11. package/driver/magento/2.4.0/order-driver.module.d.ts +5 -0
  12. package/driver/magento/2.4.0/order.service.d.ts +4 -1
  13. package/driver/magento/2.4.0/package.json +5 -6
  14. package/driver/magento/2.4.0/queries/fragments/order-address.d.ts +1 -1
  15. package/driver/magento/2.4.0/queries/fragments/order-invoice.d.ts +1 -1
  16. package/driver/magento/2.4.0/queries/fragments/order-item.d.ts +1 -1
  17. package/driver/magento/2.4.0/queries/fragments/order-payment.d.ts +1 -1
  18. package/driver/magento/2.4.0/queries/fragments/order-shipment-item.d.ts +1 -1
  19. package/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.d.ts +1 -1
  20. package/driver/magento/2.4.0/queries/fragments/order-shipment.d.ts +1 -1
  21. package/driver/magento/2.4.0/queries/fragments/order.d.ts +1 -1
  22. package/driver/magento/2.4.0/queries/get-guest-orders.d.ts +1 -1
  23. package/driver/magento/2.4.1/README.md +5 -0
  24. package/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.d.ts +1 -0
  25. package/driver/magento/2.4.1/errors/transform.d.ts +1 -1
  26. package/driver/magento/2.4.1/models/responses/order-address.d.ts +1 -1
  27. package/driver/magento/2.4.1/order-driver.module.d.ts +5 -0
  28. package/driver/magento/2.4.1/order.service.d.ts +4 -1
  29. package/driver/magento/2.4.1/package.json +5 -6
  30. package/driver/magento/2.4.1/queries/fragments/order-address.d.ts +1 -1
  31. package/driver/magento/2.4.1/queries/fragments/order-credit-item.d.ts +1 -1
  32. package/driver/magento/2.4.1/queries/fragments/order-credit-total.d.ts +1 -1
  33. package/driver/magento/2.4.1/queries/fragments/order-credit.d.ts +1 -1
  34. package/driver/magento/2.4.1/queries/fragments/order-invoice-item.d.ts +1 -1
  35. package/driver/magento/2.4.1/queries/fragments/order-invoice-total.d.ts +1 -1
  36. package/driver/magento/2.4.1/queries/fragments/order-invoice.d.ts +1 -1
  37. package/driver/magento/2.4.1/queries/fragments/order-item.d.ts +2 -2
  38. package/driver/magento/2.4.1/queries/fragments/order-payment.d.ts +1 -1
  39. package/driver/magento/2.4.1/queries/fragments/order-shipment-item.d.ts +1 -1
  40. package/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.d.ts +1 -1
  41. package/driver/magento/2.4.1/queries/fragments/order-shipment.d.ts +1 -1
  42. package/driver/magento/2.4.1/queries/fragments/order-total.d.ts +1 -1
  43. package/driver/magento/2.4.1/queries/fragments/order.d.ts +1 -1
  44. package/driver/magento/2.4.1/queries/get-guest-orders.d.ts +1 -1
  45. package/driver/package.json +5 -6
  46. package/driver/testing/daffodil-order-driver-testing.d.ts +1 -0
  47. package/driver/testing/drivers/order-driver.module.d.ts +5 -0
  48. package/driver/testing/drivers/order.service.d.ts +3 -0
  49. package/driver/testing/package.json +5 -6
  50. package/{esm2015/daffodil-order.js → esm2020/daffodil-order.mjs} +0 -0
  51. package/{esm2015/driver/daffodil-order-driver.js → esm2020/driver/daffodil-order-driver.mjs} +0 -0
  52. package/{esm2015/driver/errors/invalid-api-response.js → esm2020/driver/errors/invalid-api-response.mjs} +0 -0
  53. package/{esm2015/driver/errors/order-not-found.js → esm2020/driver/errors/order-not-found.mjs} +0 -0
  54. package/{esm2015/driver/errors/public_api.js → esm2020/driver/errors/public_api.mjs} +0 -0
  55. package/esm2020/driver/in-memory/backend/order.service.mjs +57 -0
  56. package/{esm2015/driver/in-memory/daffodil-order-driver-in-memory.js → esm2020/driver/in-memory/daffodil-order-driver-in-memory.mjs} +0 -0
  57. package/esm2020/driver/in-memory/drivers/order-driver.module.mjs +32 -0
  58. package/esm2020/driver/in-memory/drivers/order.service.mjs +28 -0
  59. package/{esm2015/driver/in-memory/drivers/public_api.js → esm2020/driver/in-memory/drivers/public_api.mjs} +0 -0
  60. package/{esm2015/driver/in-memory/index.js → esm2020/driver/in-memory/index.mjs} +0 -0
  61. package/{esm2015/driver/in-memory/public_api.js → esm2020/driver/in-memory/public_api.mjs} +0 -0
  62. package/{esm2015/driver/index.js → esm2020/driver/index.mjs} +0 -0
  63. package/{esm2015/driver/interfaces/order-service.interface.js → esm2020/driver/interfaces/order-service.interface.mjs} +0 -0
  64. package/{esm2015/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.js → esm2020/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.mjs} +0 -0
  65. package/{esm2015/driver/magento/2.4.0/errors/codes.js → esm2020/driver/magento/2.4.0/errors/codes.mjs} +0 -0
  66. package/{esm2015/driver/magento/2.4.0/errors/map.js → esm2020/driver/magento/2.4.0/errors/map.mjs} +0 -0
  67. package/{esm2015/driver/magento/2.4.0/errors/transform.js → esm2020/driver/magento/2.4.0/errors/transform.mjs} +0 -0
  68. package/{esm2015/driver/magento/2.4.0/index.js → esm2020/driver/magento/2.4.0/index.mjs} +0 -0
  69. package/{esm2015/driver/magento/2.4.0/injection-tokens/fragments/order.js → esm2020/driver/magento/2.4.0/injection-tokens/fragments/order.mjs} +0 -0
  70. package/{esm2015/driver/magento/2.4.0/injection-tokens/public_api.js → esm2020/driver/magento/2.4.0/injection-tokens/public_api.mjs} +0 -0
  71. package/{esm2015/driver/magento/2.4.0/models/responses/order-address.js → esm2020/driver/magento/2.4.0/models/responses/order-address.mjs} +0 -0
  72. package/{esm2015/driver/magento/2.4.0/models/responses/order-invoice.js → esm2020/driver/magento/2.4.0/models/responses/order-invoice.mjs} +0 -0
  73. package/{esm2015/driver/magento/2.4.0/models/responses/order-item.js → esm2020/driver/magento/2.4.0/models/responses/order-item.mjs} +0 -0
  74. package/{esm2015/driver/magento/2.4.0/models/responses/order-payment.js → esm2020/driver/magento/2.4.0/models/responses/order-payment.mjs} +0 -0
  75. package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment-item.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment-item.mjs} +0 -0
  76. package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment-tracking.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment-tracking.mjs} +0 -0
  77. package/{esm2015/driver/magento/2.4.0/models/responses/order-shipment.js → esm2020/driver/magento/2.4.0/models/responses/order-shipment.mjs} +0 -0
  78. package/{esm2015/driver/magento/2.4.0/models/responses/order.js → esm2020/driver/magento/2.4.0/models/responses/order.mjs} +0 -0
  79. package/{esm2015/driver/magento/2.4.0/models/responses/public_api.js → esm2020/driver/magento/2.4.0/models/responses/public_api.mjs} +0 -0
  80. package/esm2020/driver/magento/2.4.0/order-driver.module.mjs +32 -0
  81. package/esm2020/driver/magento/2.4.0/order.service.mjs +54 -0
  82. package/{esm2015/driver/magento/2.4.0/public_api.js → esm2020/driver/magento/2.4.0/public_api.mjs} +0 -0
  83. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-address.js → esm2020/driver/magento/2.4.0/queries/fragments/order-address.mjs} +2 -2
  84. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-invoice.js → esm2020/driver/magento/2.4.0/queries/fragments/order-invoice.mjs} +2 -2
  85. package/esm2020/driver/magento/2.4.0/queries/fragments/order-item.mjs +27 -0
  86. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-payment.js → esm2020/driver/magento/2.4.0/queries/fragments/order-payment.mjs} +2 -2
  87. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment-item.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment-item.mjs} +2 -2
  88. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment-tracking.mjs} +2 -2
  89. package/{esm2015/driver/magento/2.4.0/queries/fragments/order-shipment.js → esm2020/driver/magento/2.4.0/queries/fragments/order-shipment.mjs} +2 -2
  90. package/{esm2015/driver/magento/2.4.0/queries/fragments/order.js → esm2020/driver/magento/2.4.0/queries/fragments/order.mjs} +2 -2
  91. package/{esm2015/driver/magento/2.4.0/queries/fragments/public_api.js → esm2020/driver/magento/2.4.0/queries/fragments/public_api.mjs} +0 -0
  92. package/{esm2015/driver/magento/2.4.0/queries/get-guest-orders.js → esm2020/driver/magento/2.4.0/queries/get-guest-orders.mjs} +2 -2
  93. package/{esm2015/driver/magento/2.4.0/queries/public_api.js → esm2020/driver/magento/2.4.0/queries/public_api.mjs} +0 -0
  94. package/{esm2015/driver/magento/2.4.0/queries/responses/get-guest-orders.js → esm2020/driver/magento/2.4.0/queries/responses/get-guest-orders.mjs} +0 -0
  95. package/{esm2015/driver/magento/2.4.0/queries/responses/public_api.js → esm2020/driver/magento/2.4.0/queries/responses/public_api.mjs} +0 -0
  96. package/{esm2015/driver/magento/2.4.0/transforms/responses/order.js → esm2020/driver/magento/2.4.0/transforms/responses/order.mjs} +0 -0
  97. package/esm2020/driver/magento/2.4.0/validators/get-orders.mjs +17 -0
  98. package/{esm2015/driver/magento/2.4.0/validators/public_api.js → esm2020/driver/magento/2.4.0/validators/public_api.mjs} +0 -0
  99. package/{esm2015/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.js → esm2020/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.mjs} +0 -0
  100. package/{esm2015/driver/magento/2.4.1/errors/codes.js → esm2020/driver/magento/2.4.1/errors/codes.mjs} +0 -0
  101. package/{esm2015/driver/magento/2.4.1/errors/map.js → esm2020/driver/magento/2.4.1/errors/map.mjs} +0 -0
  102. package/{esm2015/driver/magento/2.4.1/errors/transform.js → esm2020/driver/magento/2.4.1/errors/transform.mjs} +0 -0
  103. package/{esm2015/driver/magento/2.4.1/index.js → esm2020/driver/magento/2.4.1/index.mjs} +0 -0
  104. package/{esm2015/driver/magento/2.4.1/injection-tokens/fragments/order.js → esm2020/driver/magento/2.4.1/injection-tokens/fragments/order.mjs} +0 -0
  105. package/{esm2015/driver/magento/2.4.1/injection-tokens/public_api.js → esm2020/driver/magento/2.4.1/injection-tokens/public_api.mjs} +0 -0
  106. package/{esm2015/driver/magento/2.4.1/models/responses/discount.js → esm2020/driver/magento/2.4.1/models/responses/discount.mjs} +0 -0
  107. package/{esm2015/driver/magento/2.4.1/models/responses/order-address.js → esm2020/driver/magento/2.4.1/models/responses/order-address.mjs} +1 -1
  108. package/{esm2015/driver/magento/2.4.1/models/responses/order-credit-item.js → esm2020/driver/magento/2.4.1/models/responses/order-credit-item.mjs} +0 -0
  109. package/{esm2015/driver/magento/2.4.1/models/responses/order-credit.js → esm2020/driver/magento/2.4.1/models/responses/order-credit.mjs} +0 -0
  110. package/{esm2015/driver/magento/2.4.1/models/responses/order-invoice-item.js → esm2020/driver/magento/2.4.1/models/responses/order-invoice-item.mjs} +0 -0
  111. package/{esm2015/driver/magento/2.4.1/models/responses/order-invoice.js → esm2020/driver/magento/2.4.1/models/responses/order-invoice.mjs} +0 -0
  112. package/{esm2015/driver/magento/2.4.1/models/responses/order-item.js → esm2020/driver/magento/2.4.1/models/responses/order-item.mjs} +0 -0
  113. package/{esm2015/driver/magento/2.4.1/models/responses/order-payment.js → esm2020/driver/magento/2.4.1/models/responses/order-payment.mjs} +0 -0
  114. package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment-item.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment-item.mjs} +0 -0
  115. package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment-tracking.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment-tracking.mjs} +0 -0
  116. package/{esm2015/driver/magento/2.4.1/models/responses/order-shipment.js → esm2020/driver/magento/2.4.1/models/responses/order-shipment.mjs} +0 -0
  117. package/{esm2015/driver/magento/2.4.1/models/responses/order-total.js → esm2020/driver/magento/2.4.1/models/responses/order-total.mjs} +0 -0
  118. package/{esm2015/driver/magento/2.4.1/models/responses/order.js → esm2020/driver/magento/2.4.1/models/responses/order.mjs} +0 -0
  119. package/{esm2015/driver/magento/2.4.1/models/responses/public_api.js → esm2020/driver/magento/2.4.1/models/responses/public_api.mjs} +0 -0
  120. package/esm2020/driver/magento/2.4.1/order-driver.module.mjs +32 -0
  121. package/esm2020/driver/magento/2.4.1/order.service.mjs +54 -0
  122. package/{esm2015/driver/magento/2.4.1/public_api.js → esm2020/driver/magento/2.4.1/public_api.mjs} +0 -0
  123. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-address.js → esm2020/driver/magento/2.4.1/queries/fragments/order-address.mjs} +3 -3
  124. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit-item.mjs} +2 -2
  125. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit-total.mjs} +2 -2
  126. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-credit.js → esm2020/driver/magento/2.4.1/queries/fragments/order-credit.mjs} +2 -2
  127. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice-item.mjs} +2 -2
  128. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice-total.mjs} +2 -2
  129. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-invoice.js → esm2020/driver/magento/2.4.1/queries/fragments/order-invoice.mjs} +2 -2
  130. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-item.mjs} +2 -2
  131. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-payment.js → esm2020/driver/magento/2.4.1/queries/fragments/order-payment.mjs} +2 -2
  132. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment-item.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment-item.mjs} +2 -2
  133. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.mjs} +2 -2
  134. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-shipment.js → esm2020/driver/magento/2.4.1/queries/fragments/order-shipment.mjs} +2 -2
  135. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-total.js → esm2020/driver/magento/2.4.1/queries/fragments/order-total.mjs} +2 -2
  136. package/{esm2015/driver/magento/2.4.1/queries/fragments/order.js → esm2020/driver/magento/2.4.1/queries/fragments/order.mjs} +2 -2
  137. package/{esm2015/driver/magento/2.4.1/queries/fragments/public_api.js → esm2020/driver/magento/2.4.1/queries/fragments/public_api.mjs} +0 -0
  138. package/{esm2015/driver/magento/2.4.1/queries/get-guest-orders.js → esm2020/driver/magento/2.4.1/queries/get-guest-orders.mjs} +2 -2
  139. package/{esm2015/driver/magento/2.4.1/queries/public_api.js → esm2020/driver/magento/2.4.1/queries/public_api.mjs} +0 -0
  140. package/{esm2015/driver/magento/2.4.1/queries/responses/get-guest-orders.js → esm2020/driver/magento/2.4.1/queries/responses/get-guest-orders.mjs} +0 -0
  141. package/{esm2015/driver/magento/2.4.1/queries/responses/public_api.js → esm2020/driver/magento/2.4.1/queries/responses/public_api.mjs} +0 -0
  142. package/esm2020/driver/magento/2.4.1/transforms/responses/order.mjs +234 -0
  143. package/esm2020/driver/magento/2.4.1/validators/get-orders.mjs +17 -0
  144. package/{esm2015/driver/magento/2.4.1/validators/public_api.js → esm2020/driver/magento/2.4.1/validators/public_api.mjs} +0 -0
  145. package/{esm2015/driver/testing/daffodil-order-driver-testing.js → esm2020/driver/testing/daffodil-order-driver-testing.mjs} +0 -0
  146. package/esm2020/driver/testing/drivers/order-driver.module.mjs +32 -0
  147. package/esm2020/driver/testing/drivers/order.service.mjs +28 -0
  148. package/{esm2015/driver/testing/drivers/public_api.js → esm2020/driver/testing/drivers/public_api.mjs} +0 -0
  149. package/{esm2015/driver/testing/index.js → esm2020/driver/testing/index.mjs} +0 -0
  150. package/{esm2015/driver/testing/public_api.js → esm2020/driver/testing/public_api.mjs} +0 -0
  151. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  152. package/{esm2015/injection-tokens/error-matcher.token.js → esm2020/injection-tokens/error-matcher.token.mjs} +0 -0
  153. package/{esm2015/injection-tokens/public_api.js → esm2020/injection-tokens/public_api.mjs} +0 -0
  154. package/{esm2015/models/composite-order-item.js → esm2020/models/composite-order-item.mjs} +0 -0
  155. package/{esm2015/models/configurable-order-item.js → esm2020/models/configurable-order-item.mjs} +0 -0
  156. package/{esm2015/models/order-address.js → esm2020/models/order-address.mjs} +0 -0
  157. package/{esm2015/models/order-coupon.js → esm2020/models/order-coupon.mjs} +0 -0
  158. package/{esm2015/models/order-credit.js → esm2020/models/order-credit.mjs} +0 -0
  159. package/{esm2015/models/order-invoice.js → esm2020/models/order-invoice.mjs} +0 -0
  160. package/{esm2015/models/order-item.js → esm2020/models/order-item.mjs} +0 -0
  161. package/{esm2015/models/order-payment.js → esm2020/models/order-payment.mjs} +0 -0
  162. package/{esm2015/models/order-shipment-item.js → esm2020/models/order-shipment-item.mjs} +0 -0
  163. package/{esm2015/models/order-shipment-tracking.js → esm2020/models/order-shipment-tracking.mjs} +0 -0
  164. package/{esm2015/models/order-shipment.js → esm2020/models/order-shipment.mjs} +0 -0
  165. package/{esm2015/models/order-shipping-method.js → esm2020/models/order-shipping-method.mjs} +0 -0
  166. package/{esm2015/models/order-total.js → esm2020/models/order-total.mjs} +0 -0
  167. package/{esm2015/models/order.js → esm2020/models/order.mjs} +0 -0
  168. package/{esm2015/models/public_api.js → esm2020/models/public_api.mjs} +0 -0
  169. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  170. package/{esm2015/routing/daffodil-order-routing.js → esm2020/routing/daffodil-order-routing.mjs} +0 -0
  171. package/{esm2015/routing/guards/placed-order/placed-order-guard-redirect.token.js → esm2020/routing/guards/placed-order/placed-order-guard-redirect.token.mjs} +0 -0
  172. package/esm2020/routing/guards/placed-order/placed-order.guard.mjs +38 -0
  173. package/{esm2015/routing/guards/public_api.js → esm2020/routing/guards/public_api.mjs} +0 -0
  174. package/{esm2015/routing/index.js → esm2020/routing/index.mjs} +0 -0
  175. package/esm2020/routing/order-routing.module.mjs +19 -0
  176. package/{esm2015/routing/public_api.js → esm2020/routing/public_api.mjs} +0 -0
  177. package/{esm2015/state/actions/order.actions.js → esm2020/state/actions/order.actions.mjs} +0 -0
  178. package/esm2020/state/daffodil-order-state.mjs +5 -0
  179. package/esm2020/state/effects/order.effects.mjs +36 -0
  180. package/{esm2015/state/facades/order/order-facade.interface.js → esm2020/state/facades/order/order-facade.interface.mjs} +0 -0
  181. package/{esm2015/state/facades/order/order.facade.js → esm2020/state/facades/order/order.facade.mjs} +9 -11
  182. package/{esm2015/state/facades/public_api.js → esm2020/state/facades/public_api.mjs} +0 -0
  183. package/{esm2015/state/index.js → esm2020/state/index.mjs} +0 -0
  184. package/esm2020/state/order-state.module.mjs +33 -0
  185. package/{esm2015/state/public_api.js → esm2020/state/public_api.mjs} +0 -0
  186. package/{esm2015/state/reducers/order/order-initial-state.js → esm2020/state/reducers/order/order-initial-state.mjs} +0 -0
  187. package/{esm2015/state/reducers/order/order-reducer.interface.js → esm2020/state/reducers/order/order-reducer.interface.mjs} +0 -0
  188. package/esm2020/state/reducers/order/order.reducer.mjs +32 -0
  189. package/{esm2015/state/reducers/order/public_api.js → esm2020/state/reducers/order/public_api.mjs} +0 -0
  190. package/{esm2015/state/reducers/order-entities/order-entities-adapter.js → esm2020/state/reducers/order-entities/order-entities-adapter.mjs} +5 -7
  191. package/{esm2015/state/reducers/order-entities/order-entities-initial-state.js → esm2020/state/reducers/order-entities/order-entities-initial-state.mjs} +0 -0
  192. package/{esm2015/state/reducers/order-entities/order-entities-state.interface.js → esm2020/state/reducers/order-entities/order-entities-state.interface.mjs} +0 -0
  193. package/{esm2015/state/reducers/order-entities/order-entities.reducer.js → esm2020/state/reducers/order-entities/order-entities.reducer.mjs} +0 -0
  194. package/{esm2015/state/reducers/order-entities/public_api.js → esm2020/state/reducers/order-entities/public_api.mjs} +0 -0
  195. package/{esm2015/state/reducers/order-reducers.interface.js → esm2020/state/reducers/order-reducers.interface.mjs} +0 -0
  196. package/{esm2015/state/reducers/order-reducers.js → esm2020/state/reducers/order-reducers.mjs} +0 -0
  197. package/{esm2015/state/reducers/order-store-feature-key.js → esm2020/state/reducers/order-store-feature-key.mjs} +0 -0
  198. package/{esm2015/state/reducers/public_api.js → esm2020/state/reducers/public_api.mjs} +0 -0
  199. package/esm2020/state/selectors/order-all.selector.mjs +12 -0
  200. package/esm2020/state/selectors/order-entities.selector.mjs +76 -0
  201. package/esm2020/state/selectors/order-feature.selector.mjs +9 -0
  202. package/esm2020/state/selectors/order.selector.mjs +18 -0
  203. package/{esm2015/state/selectors/public_api.js → esm2020/state/selectors/public_api.mjs} +0 -0
  204. package/{esm2015/state/testing/daffodil-order-state-testing.js → esm2020/state/testing/daffodil-order-state-testing.mjs} +0 -0
  205. package/{esm2015/state/testing/index.js → esm2020/state/testing/index.mjs} +0 -0
  206. package/esm2020/state/testing/mock-order-facade.mjs +81 -0
  207. package/esm2020/state/testing/order-testing.module.mjs +20 -0
  208. package/{esm2015/state/testing/public_api.js → esm2020/state/testing/public_api.mjs} +0 -0
  209. package/{esm2015/testing/daffodil-order-testing.js → esm2020/testing/daffodil-order-testing.mjs} +0 -0
  210. package/esm2020/testing/factories/composite-order-item.factory.mjs +36 -0
  211. package/esm2020/testing/factories/configurable-order-item.factory.mjs +35 -0
  212. package/esm2020/testing/factories/order-address.factory.mjs +25 -0
  213. package/esm2020/testing/factories/order-coupon.factory.mjs +24 -0
  214. package/esm2020/testing/factories/order-invoice.factory.mjs +28 -0
  215. package/{esm2015/testing/factories/order-item.factory.js → esm2020/testing/factories/order-item.factory.mjs} +9 -9
  216. package/{esm2015/testing/factories/order-payment.factory.js → esm2020/testing/factories/order-payment.factory.mjs} +9 -9
  217. package/esm2020/testing/factories/order-shipment-item.factory.mjs +25 -0
  218. package/esm2020/testing/factories/order-shipment-tracking.factory.mjs +28 -0
  219. package/esm2020/testing/factories/order-shipment.factory.mjs +30 -0
  220. package/{esm2015/testing/factories/order-shipping-rate.factory.js → esm2020/testing/factories/order-shipping-rate.factory.mjs} +9 -9
  221. package/esm2020/testing/factories/order-total.factory.mjs +28 -0
  222. package/{esm2015/testing/factories/order.factory.js → esm2020/testing/factories/order.factory.mjs} +9 -9
  223. package/{esm2015/testing/factories/public_api.js → esm2020/testing/factories/public_api.mjs} +0 -0
  224. package/{esm2015/testing/helpers/order-helper.js → esm2020/testing/helpers/order-helper.mjs} +0 -0
  225. package/{esm2015/testing/helpers/public_api.js → esm2020/testing/helpers/public_api.mjs} +0 -0
  226. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  227. package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
  228. package/fesm2015/daffodil-order-driver-in-memory.mjs +117 -0
  229. package/fesm2015/daffodil-order-driver-in-memory.mjs.map +1 -0
  230. package/fesm2015/{daffodil-order-driver-magento-2.4.0.js → daffodil-order-driver-magento-2.4.0.mjs} +31 -21
  231. package/fesm2015/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
  232. package/fesm2015/{daffodil-order-driver-magento-2.4.1.js → daffodil-order-driver-magento-2.4.1.mjs} +33 -23
  233. package/fesm2015/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
  234. package/fesm2015/daffodil-order-driver-testing.mjs +63 -0
  235. package/fesm2015/daffodil-order-driver-testing.mjs.map +1 -0
  236. package/fesm2015/{daffodil-order-driver.js → daffodil-order-driver.mjs} +1 -1
  237. package/fesm2015/daffodil-order-driver.mjs.map +1 -0
  238. package/fesm2015/daffodil-order-routing.mjs +62 -0
  239. package/fesm2015/daffodil-order-routing.mjs.map +1 -0
  240. package/fesm2015/{daffodil-order-state-testing.js → daffodil-order-state-testing.mjs} +22 -13
  241. package/fesm2015/daffodil-order-state-testing.mjs.map +1 -0
  242. package/fesm2015/{daffodil-order-state.js → daffodil-order-state.mjs} +64 -73
  243. package/fesm2015/daffodil-order-state.mjs.map +1 -0
  244. package/fesm2015/daffodil-order-testing.mjs +387 -0
  245. package/fesm2015/daffodil-order-testing.mjs.map +1 -0
  246. package/fesm2015/{daffodil-order.js → daffodil-order.mjs} +1 -1
  247. package/fesm2015/daffodil-order.mjs.map +1 -0
  248. package/fesm2020/daffodil-order-driver-in-memory.mjs +117 -0
  249. package/fesm2020/daffodil-order-driver-in-memory.mjs.map +1 -0
  250. package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs +459 -0
  251. package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
  252. package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs +646 -0
  253. package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
  254. package/fesm2020/daffodil-order-driver-testing.mjs +63 -0
  255. package/fesm2020/daffodil-order-driver-testing.mjs.map +1 -0
  256. package/fesm2020/daffodil-order-driver.mjs +27 -0
  257. package/fesm2020/daffodil-order-driver.mjs.map +1 -0
  258. package/fesm2020/daffodil-order-routing.mjs +60 -0
  259. package/fesm2020/daffodil-order-routing.mjs.map +1 -0
  260. package/fesm2020/daffodil-order-state-testing.mjs +105 -0
  261. package/fesm2020/daffodil-order-state-testing.mjs.map +1 -0
  262. package/fesm2020/daffodil-order-state.mjs +400 -0
  263. package/fesm2020/daffodil-order-state.mjs.map +1 -0
  264. package/fesm2020/daffodil-order-testing.mjs +387 -0
  265. package/fesm2020/daffodil-order-testing.mjs.map +1 -0
  266. package/fesm2020/daffodil-order.mjs +31 -0
  267. package/fesm2020/daffodil-order.mjs.map +1 -0
  268. package/package.json +98 -14
  269. package/routing/daffodil-order-routing.d.ts +1 -0
  270. package/routing/guards/placed-order/placed-order.guard.d.ts +3 -0
  271. package/routing/order-routing.module.d.ts +4 -0
  272. package/routing/package.json +5 -6
  273. package/state/daffodil-order-state.d.ts +1 -1
  274. package/state/effects/order.effects.d.ts +5 -2
  275. package/state/facades/order/order.facade.d.ts +3 -0
  276. package/state/order-state.module.d.ts +7 -0
  277. package/state/package.json +5 -6
  278. package/state/testing/daffodil-order-state-testing.d.ts +1 -0
  279. package/state/testing/mock-order-facade.d.ts +3 -0
  280. package/state/testing/order-testing.module.d.ts +4 -0
  281. package/state/testing/package.json +5 -6
  282. package/testing/daffodil-order-testing.d.ts +1 -0
  283. package/testing/factories/composite-order-item.factory.d.ts +3 -0
  284. package/testing/factories/configurable-order-item.factory.d.ts +3 -0
  285. package/testing/factories/order-address.factory.d.ts +3 -0
  286. package/testing/factories/order-coupon.factory.d.ts +3 -0
  287. package/testing/factories/order-invoice.factory.d.ts +3 -0
  288. package/testing/factories/order-item.factory.d.ts +3 -0
  289. package/testing/factories/order-payment.factory.d.ts +3 -0
  290. package/testing/factories/order-shipment-item.factory.d.ts +3 -0
  291. package/testing/factories/order-shipment-tracking.factory.d.ts +3 -0
  292. package/testing/factories/order-shipment.factory.d.ts +3 -0
  293. package/testing/factories/order-shipping-rate.factory.d.ts +3 -0
  294. package/testing/factories/order-total.factory.d.ts +3 -0
  295. package/testing/factories/order.factory.d.ts +3 -0
  296. package/testing/package.json +5 -6
  297. package/bundles/daffodil-order-driver-in-memory.umd.js +0 -125
  298. package/bundles/daffodil-order-driver-in-memory.umd.js.map +0 -1
  299. package/bundles/daffodil-order-driver-in-memory.umd.min.js +0 -2
  300. package/bundles/daffodil-order-driver-in-memory.umd.min.js.map +0 -1
  301. package/bundles/daffodil-order-driver-magento-2.4.0.umd.js +0 -657
  302. package/bundles/daffodil-order-driver-magento-2.4.0.umd.js.map +0 -1
  303. package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js +0 -16
  304. package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js.map +0 -1
  305. package/bundles/daffodil-order-driver-magento-2.4.1.umd.js +0 -737
  306. package/bundles/daffodil-order-driver-magento-2.4.1.umd.js.map +0 -1
  307. package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js +0 -2
  308. package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js.map +0 -1
  309. package/bundles/daffodil-order-driver-testing.umd.js +0 -67
  310. package/bundles/daffodil-order-driver-testing.umd.js.map +0 -1
  311. package/bundles/daffodil-order-driver-testing.umd.min.js +0 -2
  312. package/bundles/daffodil-order-driver-testing.umd.min.js.map +0 -1
  313. package/bundles/daffodil-order-driver.umd.js +0 -360
  314. package/bundles/daffodil-order-driver.umd.js.map +0 -1
  315. package/bundles/daffodil-order-driver.umd.min.js +0 -16
  316. package/bundles/daffodil-order-driver.umd.min.js.map +0 -1
  317. package/bundles/daffodil-order-routing.umd.js +0 -66
  318. package/bundles/daffodil-order-routing.umd.js.map +0 -1
  319. package/bundles/daffodil-order-routing.umd.min.js +0 -2
  320. package/bundles/daffodil-order-routing.umd.min.js.map +0 -1
  321. package/bundles/daffodil-order-state-testing.umd.js +0 -107
  322. package/bundles/daffodil-order-state-testing.umd.js.map +0 -1
  323. package/bundles/daffodil-order-state-testing.umd.min.js +0 -2
  324. package/bundles/daffodil-order-state-testing.umd.min.js.map +0 -1
  325. package/bundles/daffodil-order-state.umd.js +0 -748
  326. package/bundles/daffodil-order-state.umd.js.map +0 -1
  327. package/bundles/daffodil-order-state.umd.min.js +0 -16
  328. package/bundles/daffodil-order-state.umd.min.js.map +0 -1
  329. package/bundles/daffodil-order-testing.umd.js +0 -766
  330. package/bundles/daffodil-order-testing.umd.js.map +0 -1
  331. package/bundles/daffodil-order-testing.umd.min.js +0 -16
  332. package/bundles/daffodil-order-testing.umd.min.js.map +0 -1
  333. package/bundles/daffodil-order.umd.js +0 -36
  334. package/bundles/daffodil-order.umd.js.map +0 -1
  335. package/bundles/daffodil-order.umd.min.js +0 -2
  336. package/bundles/daffodil-order.umd.min.js.map +0 -1
  337. package/daffodil-order.metadata.json +0 -1
  338. package/driver/daffodil-order-driver.metadata.json +0 -1
  339. package/driver/in-memory/daffodil-order-driver-in-memory.metadata.json +0 -1
  340. package/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.metadata.json +0 -1
  341. package/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.metadata.json +0 -1
  342. package/driver/testing/daffodil-order-driver-testing.metadata.json +0 -1
  343. package/esm2015/driver/in-memory/backend/order.service.js +0 -59
  344. package/esm2015/driver/in-memory/drivers/order-driver.module.js +0 -25
  345. package/esm2015/driver/in-memory/drivers/order.service.js +0 -30
  346. package/esm2015/driver/magento/2.4.0/order-driver.module.js +0 -25
  347. package/esm2015/driver/magento/2.4.0/order.service.js +0 -55
  348. package/esm2015/driver/magento/2.4.0/queries/fragments/order-item.js +0 -27
  349. package/esm2015/driver/magento/2.4.0/validators/get-orders.js +0 -18
  350. package/esm2015/driver/magento/2.4.1/order-driver.module.js +0 -25
  351. package/esm2015/driver/magento/2.4.1/order.service.js +0 -55
  352. package/esm2015/driver/magento/2.4.1/transforms/responses/order.js +0 -207
  353. package/esm2015/driver/magento/2.4.1/validators/get-orders.js +0 -18
  354. package/esm2015/driver/testing/drivers/order-driver.module.js +0 -25
  355. package/esm2015/driver/testing/drivers/order.service.js +0 -30
  356. package/esm2015/routing/guards/placed-order/placed-order.guard.js +0 -40
  357. package/esm2015/routing/order-routing.module.js +0 -12
  358. package/esm2015/state/daffodil-order-state.js +0 -6
  359. package/esm2015/state/effects/order.effects.js +0 -49
  360. package/esm2015/state/order-state.module.js +0 -20
  361. package/esm2015/state/reducers/order/order.reducer.js +0 -21
  362. package/esm2015/state/selectors/order-all.selector.js +0 -10
  363. package/esm2015/state/selectors/order-entities.selector.js +0 -79
  364. package/esm2015/state/selectors/order-feature.selector.js +0 -11
  365. package/esm2015/state/selectors/order.selector.js +0 -21
  366. package/esm2015/state/testing/mock-order-facade.js +0 -79
  367. package/esm2015/state/testing/order-testing.module.js +0 -13
  368. package/esm2015/testing/factories/composite-order-item.factory.js +0 -36
  369. package/esm2015/testing/factories/configurable-order-item.factory.js +0 -35
  370. package/esm2015/testing/factories/order-address.factory.js +0 -25
  371. package/esm2015/testing/factories/order-coupon.factory.js +0 -24
  372. package/esm2015/testing/factories/order-invoice.factory.js +0 -28
  373. package/esm2015/testing/factories/order-shipment-item.factory.js +0 -25
  374. package/esm2015/testing/factories/order-shipment-tracking.factory.js +0 -28
  375. package/esm2015/testing/factories/order-shipment.factory.js +0 -30
  376. package/esm2015/testing/factories/order-total.factory.js +0 -28
  377. package/fesm2015/daffodil-order-driver-in-memory.js +0 -114
  378. package/fesm2015/daffodil-order-driver-in-memory.js.map +0 -1
  379. package/fesm2015/daffodil-order-driver-magento-2.4.0.js.map +0 -1
  380. package/fesm2015/daffodil-order-driver-magento-2.4.1.js.map +0 -1
  381. package/fesm2015/daffodil-order-driver-testing.js +0 -58
  382. package/fesm2015/daffodil-order-driver-testing.js.map +0 -1
  383. package/fesm2015/daffodil-order-driver.js.map +0 -1
  384. package/fesm2015/daffodil-order-routing.js +0 -54
  385. package/fesm2015/daffodil-order-routing.js.map +0 -1
  386. package/fesm2015/daffodil-order-state-testing.js.map +0 -1
  387. package/fesm2015/daffodil-order-state.js.map +0 -1
  388. package/fesm2015/daffodil-order-testing.js +0 -386
  389. package/fesm2015/daffodil-order-testing.js.map +0 -1
  390. package/fesm2015/daffodil-order.js.map +0 -1
  391. package/routing/daffodil-order-routing.metadata.json +0 -1
  392. package/state/daffodil-order-state.metadata.json +0 -1
  393. package/state/testing/daffodil-order-state-testing.metadata.json +0 -1
  394. package/testing/daffodil-order-testing.metadata.json +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-order-state.js","sources":["../../../libs/order/state/src/actions/order.actions.ts","../../../libs/order/state/src/reducers/order-entities/order-entities-adapter.ts","../../../libs/order/state/src/reducers/order-entities/order-entities-initial-state.ts","../../../libs/order/state/src/reducers/order-entities/order-entities.reducer.ts","../../../libs/order/state/src/reducers/order/order-initial-state.ts","../../../libs/order/state/src/reducers/order/order.reducer.ts","../../../libs/order/state/src/reducers/order-reducers.ts","../../../libs/order/state/src/reducers/order-store-feature-key.ts","../../../libs/order/state/src/selectors/order-feature.selector.ts","../../../libs/order/state/src/selectors/order-entities.selector.ts","../../../libs/order/state/src/selectors/order.selector.ts","../../../libs/order/state/src/selectors/order-all.selector.ts","../../../libs/order/state/src/facades/order/order.facade.ts","../../../libs/order/state/src/effects/order.effects.ts","../../../libs/order/state/src/order-state.module.ts","../../../libs/order/state/src/daffodil-order-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffOrder } from '@daffodil/order';\n\nexport enum DaffOrderActionTypes {\n OrderLoadAction = '[Order] Order Load Action',\n OrderLoadSuccessAction = '[Order] Order Load Success Action',\n OrderLoadFailureAction = '[Order] Order Load Failure Action',\n OrderListAction = '[Order] Order List Action',\n OrderListSuccessAction = '[Order] Order List Success Action',\n OrderListFailureAction = '[Order] Order List Failure Action'\n}\n\n/**\n * Triggers the loading of the specified order.\n *\n * @param orderId The order ID.\n * @param cartId The optional guest cart ID.\n */\nexport class DaffOrderLoad<\n T extends DaffOrder = DaffOrder,\n V extends DaffCart = DaffCart\n> implements Action {\n readonly type = DaffOrderActionTypes.OrderLoadAction;\n\n constructor(public orderId: T['id'], public cartId?: V['id']) {}\n}\n\nexport class DaffOrderLoadSuccess<T extends DaffOrder = DaffOrder> implements Action {\n readonly type = DaffOrderActionTypes.OrderLoadSuccessAction;\n\n constructor(public payload: T) {}\n}\n\nexport class DaffOrderLoadFailure implements Action {\n readonly type = DaffOrderActionTypes.OrderLoadFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\n/**\n * Triggers the loading of the orders for either the currently logged-in user or the specified guest cart.\n *\n * @param payload The guest cart ID.\n */\nexport class DaffOrderList<T extends DaffCart = DaffCart> implements Action {\n readonly type = DaffOrderActionTypes.OrderListAction;\n\n constructor(public payload?: T['id']) {}\n}\n\nexport class DaffOrderListSuccess<T extends DaffOrder = DaffOrder> implements Action {\n readonly type = DaffOrderActionTypes.OrderListSuccessAction;\n\n constructor(public payload: T[]) {}\n}\n\nexport class DaffOrderListFailure implements Action {\n readonly type = DaffOrderActionTypes.OrderListFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\nexport type DaffOrderActions<\n T extends DaffOrder = DaffOrder,\n V extends DaffCart = DaffCart\n> =\n | DaffOrderLoad<T, V>\n | DaffOrderLoadSuccess<T>\n | DaffOrderLoadFailure\n | DaffOrderList\n | DaffOrderListSuccess<T>\n | DaffOrderListFailure;\n","import {\n EntityAdapter,\n createEntityAdapter,\n} from '@ngrx/entity';\n\nimport { DaffOrder } from '@daffodil/order';\n\n/**\n * Order Adapter for changing/overwriting entity state.\n */\nexport const daffGetOrderAdapter = (() => {\n let cache;\n return <T extends DaffOrder = DaffOrder>(): EntityAdapter<T> =>\n cache = cache || createEntityAdapter<T>();\n})();\n","import { daffGetOrderAdapter } from './order-entities-adapter';\nimport { DaffOrderEntityState } from './order-entities-state.interface';\n\n/**\n * Initial state for order entity state.\n */\nexport const daffOrderEntitiesInitialState: DaffOrderEntityState<any> = daffGetOrderAdapter().getInitialState();\n","import { DaffOrder } from '@daffodil/order';\n\nimport {\n DaffOrderActions,\n DaffOrderActionTypes,\n} from '../../actions/order.actions';\nimport { daffGetOrderAdapter } from './order-entities-adapter';\nimport { daffOrderEntitiesInitialState } from './order-entities-initial-state';\nimport { DaffOrderEntityState } from './order-entities-state.interface';\n\n/**\n * Reducer function that catches actions and changes/overwrites order entities state.\n */\nexport function daffOrderEntitiesReducer<T extends DaffOrder = DaffOrder>(\n state = daffOrderEntitiesInitialState,\n action: DaffOrderActions<T>,\n): DaffOrderEntityState<T> {\n const adapter = daffGetOrderAdapter<T>();\n\n switch (action.type) {\n case DaffOrderActionTypes.OrderLoadSuccessAction:\n return adapter.upsertOne(action.payload, state);\n\n case DaffOrderActionTypes.OrderListSuccessAction:\n return adapter.upsertMany(action.payload, state);\n\n default:\n return state;\n }\n}\n","import { DaffOrderReducerState } from './order-reducer.interface';\n\nexport const daffOrderInitialState: DaffOrderReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffOrder } from '@daffodil/order';\n\nimport {\n DaffOrderActions,\n DaffOrderActionTypes,\n} from '../../actions/order.actions';\nimport { daffOrderInitialState } from './order-initial-state';\nimport { DaffOrderReducerState } from './order-reducer.interface';\n\nexport function daffOrderReducer<T extends DaffOrder = DaffOrder>(\n state = daffOrderInitialState,\n action: DaffOrderActions<T>,\n): DaffOrderReducerState {\n switch (action.type) {\n case DaffOrderActionTypes.OrderListAction:\n case DaffOrderActionTypes.OrderLoadAction:\n return {\n ...state,\n loading: true,\n };\n\n case DaffOrderActionTypes.OrderListSuccessAction:\n case DaffOrderActionTypes.OrderLoadSuccessAction:\n return {\n ...state,\n loading: false,\n errors: [],\n };\n\n case DaffOrderActionTypes.OrderListFailureAction:\n case DaffOrderActionTypes.OrderLoadFailureAction:\n return {\n ...state,\n errors: [\n ...state.errors,\n action.payload,\n ],\n loading: false,\n };\n\n default:\n return state;\n }\n}\n","import { ActionReducerMap } from '@ngrx/store';\n\nimport { daffOrderEntitiesReducer } from './order-entities/public_api';\nimport { DaffOrderReducersState } from './order-reducers.interface';\nimport { daffOrderReducer } from './order/order.reducer';\n\nexport const daffOrderReducers: ActionReducerMap<DaffOrderReducersState> = {\n order: daffOrderReducer,\n orders: daffOrderEntitiesReducer,\n};\n","export const DAFF_ORDER_STORE_FEATURE_KEY = 'daffOrder';\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffOrder } from '@daffodil/order';\n\nimport {\n DaffOrderStateRootSlice,\n DaffOrderReducersState,\n DAFF_ORDER_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\nexport interface DaffOrderFeatureSelector<T extends DaffOrder = DaffOrder> {\n selectOrderFeatureState: MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderReducersState<T>>;\n}\n\nexport const getDaffOrderReducersStateSelector = (() => {\n let cache;\n return <T extends DaffOrder = DaffOrder>(): DaffOrderFeatureSelector<T> =>\n cache = cache || {\n selectOrderFeatureState: createFeatureSelector<DaffOrderReducersState<T>>(DAFF_ORDER_STORE_FEATURE_KEY),\n };\n})();\n","import { Dictionary } from '@ngrx/entity';\nimport {\n createSelector,\n defaultMemoize,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport {\n getDaffCartSelectors,\n DaffCartStateRootSlice,\n} from '@daffodil/cart/state';\nimport {\n DaffOrder,\n DaffOrderItem,\n DaffOrderTotal,\n DaffOrderTotalTypeEnum,\n} from '@daffodil/order';\n\nimport {\n DaffOrderStateRootSlice,\n daffGetOrderAdapter,\n DaffOrderEntityState,\n} from '../reducers/public_api';\nimport { getDaffOrderReducersStateSelector } from './order-feature.selector';\n\nexport interface DaffOrderEntitySelectors<T extends DaffOrder = DaffOrder> {\n selectOrderEntitiesState: MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderEntityState<T>>;\n /**\n * Selector for order IDs.\n */\n selectOrderIds: MemoizedSelector<DaffOrderStateRootSlice<T>, T['id'][]>;\n /**\n * Selector for order entities.\n */\n selectOrderEntities: MemoizedSelector<DaffOrderStateRootSlice<T>, Dictionary<T>>;\n /**\n * Selector for all orders.\n */\n selectAllOrders: MemoizedSelector<DaffOrderStateRootSlice<T>, T[]>;\n /**\n * Selector for total number of orders.\n */\n selectOrderTotal: MemoizedSelector<DaffOrderStateRootSlice<T>, number>;\n selectOrder: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T>;\n\n /**\n * Selector for the most recently placed order (if any).\n */\n selectPlacedOrder: MemoizedSelector<DaffOrderStateRootSlice<T>, T>;\n /**\n * Selector for the existence of the most recently placed order.\n */\n selectHasPlacedOrder: MemoizedSelector<DaffOrderStateRootSlice<T>, boolean>;\n\n /**\n * Selects the specified order's totals.\n */\n selectOrderTotals: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['totals']>;\n /**\n * Selects the specified order's applied coupon codes.\n */\n selectOrderAppliedCodes: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['applied_codes']>;\n /**\n * Selects the specified order's items.\n */\n selectOrderItems: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['items']>;\n /**\n * Selects the specified order's billing addresses.\n */\n selectOrderBillingAddresses: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['billing_addresses']>;\n /**\n * Selects the specified order's shipping addresses.\n */\n selectOrderShippingTotalAddresses: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['shipping_addresses']>;\n /**\n * Selects the specified order's shipments.\n */\n selectOrderShipments: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['shipments']>;\n /**\n * Selects the specified order's payment.\n */\n selectOrderPayment: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['payment']>;\n /**\n * Selects the specified order's invoices.\n */\n selectOrderInvoices: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['invoices']>;\n /**\n * Selects the specified order's credits.\n */\n selectOrderCredits: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['credits']>;\n\n /**\n * Selects the specified order's specified item.\n */\n selectOrderItem: (orderId: T['id'], itemId: T['items'][0]['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderItem>;\n\n /**\n * Selects the specified order's grand total.\n */\n selectOrderGrandTotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal>;\n /**\n * Selects the specified order's subtotal.\n */\n selectOrderSubtotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal>;\n /**\n * Selects the specified order's shipping total.\n */\n selectOrderShippingTotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal>;\n /**\n * Selects the specified order's discount total.\n */\n\tselectOrderDiscountTotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal>;\n\t/**\n\t * Selects whether the specified order has a discount.\n\t */\n\tselectOrderHasDiscount: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, boolean>;\n /**\n * Selects the specified order's tax total.\n */\n selectOrderTaxTotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal>;\n}\n\nconst createOrderEntitySelectors = <T extends DaffOrder = DaffOrder>() => {\n const { selectOrderFeatureState } = getDaffOrderReducersStateSelector<T>();\n const selectOrderEntitiesState = createSelector(\n selectOrderFeatureState,\n state => state.orders,\n );\n const { selectIds, selectEntities, selectAll, selectTotal } = daffGetOrderAdapter<T>().getSelectors(selectOrderEntitiesState);\n const { selectCartOrderId } = getDaffCartSelectors();\n\n const selectOrder: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T> =\n defaultMemoize((orderId: T['id']) => createSelector(\n selectEntities,\n (orders: Dictionary<T>) => orders[orderId] || null,\n )).memoized;\n\n const selectPlacedOrder = createSelector(\n selectEntities,\n selectCartOrderId,\n (orders, orderId) => orderId ? selectOrder(orderId).projector(orders) : null,\n );\n\n const selectHasPlacedOrder = createSelector(\n selectPlacedOrder,\n placedOrder => !!placedOrder,\n );\n\n const selectOrderTotals: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['totals']> =\n defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.totals) || [],\n )).memoized;\n\n const selectOrderAppliedCodes = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.applied_codes) || [],\n )).memoized;\n\n const selectOrderItems: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, T['items']> =\n defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.items) || [],\n )).memoized;\n\n const selectOrderBillingAddresses = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.billing_addresses) || [],\n )).memoized;\n\n const selectOrderShippingTotalAddresses = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.shipping_addresses) || [],\n )).memoized;\n\n const selectOrderShipments = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.shipments) || [],\n )).memoized;\n\n const selectOrderPayment = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.payment) || null,\n )).memoized;\n\n const selectOrderInvoices = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.invoices) || [],\n )).memoized;\n\n const selectOrderCredits = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrder(orderId),\n (order) => (order && order.credits) || [],\n )).memoized;\n\n const selectOrderGrandTotal = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderTotals(orderId),\n totals => {\n const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.GrandTotal);\n\n return index > -1 ? totals[index] : null;\n },\n )).memoized;\n\n const selectOrderSubtotal = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderTotals(orderId),\n totals => {\n const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Subtotal);\n\n return index > -1 ? totals[index] : null;\n },\n )).memoized;\n\n const selectOrderShippingTotal = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderTotals(orderId),\n totals => {\n const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Shipping);\n\n return index > -1 ? totals[index] : null;\n },\n )).memoized;\n\n const selectOrderDiscountTotal: (orderId: T['id']) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal> =\n defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderTotals(orderId),\n totals => {\n const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Discount);\n\n return index > -1 ? totals[index] : null;\n },\n )).memoized;\n\n const selectOrderHasDiscount = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderDiscountTotal(orderId),\n discountTotal => discountTotal?.value > 0,\n )).memoized;\n\n const selectOrderTaxTotal = defaultMemoize((orderId: T['id']) => createSelector(\n selectOrderTotals(orderId),\n totals => {\n const index = totals.findIndex(total => total.type === DaffOrderTotalTypeEnum.Tax);\n\n return index > -1 ? totals[index] : null;\n },\n )).memoized;\n\n const selectOrderItem = defaultMemoize((orderId: T['id'], itemId: T['items'][0]['id']) => createSelector(\n selectOrderItems(orderId),\n items => items.find(item => item.id === itemId) || null,\n )).memoized;\n\n return {\n selectOrderEntitiesState,\n selectOrderIds: selectIds,\n selectOrderEntities: selectEntities,\n selectAllOrders: selectAll,\n selectOrderTotal: selectTotal,\n\n selectPlacedOrder,\n selectHasPlacedOrder,\n\n selectOrder,\n selectOrderTotals,\n selectOrderAppliedCodes,\n selectOrderItems,\n selectOrderBillingAddresses,\n selectOrderShippingTotalAddresses,\n selectOrderShipments,\n selectOrderPayment,\n selectOrderInvoices,\n selectOrderCredits,\n selectOrderItem,\n\n selectOrderGrandTotal,\n selectOrderSubtotal,\n selectOrderShippingTotal,\n selectOrderDiscountTotal,\n selectOrderHasDiscount,\n selectOrderTaxTotal,\n };\n};\n\nexport const getDaffOrderEntitySelectors = (() => {\n let cache;\n return <T extends DaffOrder = DaffOrder>(): DaffOrderEntitySelectors<T> =>\n cache = cache || createOrderEntitySelectors<T>();\n})();\n\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffOrder } from '@daffodil/order';\n\nimport {\n DaffOrderStateRootSlice,\n DaffOrderReducerState,\n} from '../reducers/public_api';\nimport { getDaffOrderReducersStateSelector } from './order-feature.selector';\n\nexport interface DaffOrderSelectors {\n selectOrderState: MemoizedSelector<DaffOrderStateRootSlice, DaffOrderReducerState>;\n selectOrderLoading: MemoizedSelector<DaffOrderStateRootSlice, boolean>;\n selectOrderErrors: MemoizedSelector<DaffOrderStateRootSlice, DaffStateError[]>;\n}\n\nconst createOrderSelectors = <T extends DaffOrder = DaffOrder>() => {\n const { selectOrderFeatureState } = getDaffOrderReducersStateSelector<T>();\n const selectOrderState = createSelector(\n selectOrderFeatureState,\n state => state.order,\n );\n\n const selectOrderLoading = createSelector(\n selectOrderState,\n state => state.loading,\n );\n\n const selectOrderErrors = createSelector(\n selectOrderState,\n state => state.errors,\n );\n\n return {\n selectOrderState,\n selectOrderLoading,\n selectOrderErrors,\n };\n};\n\nexport const getOrderSelectors = (() => {\n let cache;\n return <T extends DaffOrder = DaffOrder>(): DaffOrderSelectors =>\n cache = cache || createOrderSelectors<T>();\n})();\n","import { DaffOrder } from '@daffodil/order';\n\nimport {\n DaffOrderEntitySelectors,\n getDaffOrderEntitySelectors,\n} from './order-entities.selector';\nimport {\n DaffOrderFeatureSelector,\n getDaffOrderReducersStateSelector,\n} from './order-feature.selector';\nimport {\n DaffOrderSelectors,\n getOrderSelectors,\n} from './order.selector';\n\nexport interface DaffOrderAllSelectors<T extends DaffOrder = DaffOrder> extends\n DaffOrderEntitySelectors<T>,\n DaffOrderSelectors,\n DaffOrderFeatureSelector<T> {}\n\nexport const getDaffOrderSelectors = (() => {\n let cache;\n return <T extends DaffOrder = DaffOrder>(): DaffOrderAllSelectors<T> =>\n cache = cache || {\n ...getOrderSelectors<T>(),\n ...getDaffOrderEntitySelectors<T>(),\n ...getDaffOrderReducersStateSelector<T>(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport { Dictionary } from '@ngrx/entity';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport {\n DaffOrder,\n DaffOrderTotal,\n} from '@daffodil/order';\n\nimport { DaffOrderStateRootSlice } from '../../reducers/public_api';\nimport { DaffOrderEntitySelectors } from '../../selectors/order-entities.selector';\nimport { getDaffOrderSelectors } from '../../selectors/public_api';\nimport { DaffOrderFacadeInterface } from './order-facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderFacade<T extends DaffOrder = DaffOrder> implements DaffOrderFacadeInterface<T> {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n orders$: Observable<T[]>;\n orderIds$: Observable<T['id'][]>;\n orderCount$: Observable<number>;\n orderEntities$: Observable<Dictionary<T>>;\n\n placedOrder$: Observable<T>;\n hasPlacedOrder$: Observable<boolean>;\n\n _order: DaffOrderEntitySelectors<T>['selectOrder'];\n _totals: DaffOrderEntitySelectors<T>['selectOrderTotals'];\n _appliedCodes: DaffOrderEntitySelectors<T>['selectOrderAppliedCodes'];\n _items: DaffOrderEntitySelectors<T>['selectOrderItems'];\n _billingAddresses: DaffOrderEntitySelectors<T>['selectOrderBillingAddresses'];\n _shippingAddresses: DaffOrderEntitySelectors<T>['selectOrderShippingTotalAddresses'];\n _shipments: DaffOrderEntitySelectors<T>['selectOrderShipments'];\n _payment: DaffOrderEntitySelectors<T>['selectOrderPayment'];\n _invoices: DaffOrderEntitySelectors<T>['selectOrderInvoices'];\n _credits: DaffOrderEntitySelectors<T>['selectOrderCredits'];\n _grandTotal: DaffOrderEntitySelectors<T>['selectOrderGrandTotal'];\n _subtotal: DaffOrderEntitySelectors<T>['selectOrderSubtotal'];\n _shipping: DaffOrderEntitySelectors<T>['selectOrderShippingTotal'];\n _discount: DaffOrderEntitySelectors<T>['selectOrderDiscountTotal'];\n _hasDiscount: DaffOrderEntitySelectors<T>['selectOrderHasDiscount'];\n _tax: DaffOrderEntitySelectors<T>['selectOrderTaxTotal'];\n\n constructor(private store: Store<DaffOrderStateRootSlice<T>>) {\n const {\n selectOrderIds,\n selectOrderEntities,\n selectAllOrders,\n selectOrderTotal,\n selectOrderLoading,\n selectOrderErrors,\n\n selectPlacedOrder,\n selectHasPlacedOrder,\n\n selectOrder,\n selectOrderTotals,\n selectOrderAppliedCodes,\n selectOrderItems,\n selectOrderBillingAddresses,\n selectOrderShippingTotalAddresses,\n selectOrderShipments,\n selectOrderPayment,\n selectOrderInvoices,\n selectOrderCredits,\n\n selectOrderGrandTotal,\n selectOrderSubtotal,\n selectOrderShippingTotal,\n selectOrderDiscountTotal,\n selectOrderHasDiscount,\n selectOrderTaxTotal,\n } = getDaffOrderSelectors<T>();\n\n this.loading$ = this.store.pipe(select(selectOrderLoading));\n this.errors$ = this.store.pipe(select(selectOrderErrors));\n\n this.orders$ = this.store.pipe(select(selectAllOrders));\n this.orderIds$ = this.store.pipe(select(selectOrderIds));\n this.orderCount$ = this.store.pipe(select(selectOrderTotal));\n this.orderEntities$ = this.store.pipe(select(selectOrderEntities));\n\n this.placedOrder$ = this.store.pipe(select(selectPlacedOrder));\n this.hasPlacedOrder$ = this.store.pipe(select(selectHasPlacedOrder));\n\n this._order = selectOrder;\n this._totals = selectOrderTotals;\n this._appliedCodes = selectOrderAppliedCodes;\n this._items = selectOrderItems;\n this._billingAddresses = selectOrderBillingAddresses;\n this._shippingAddresses = selectOrderShippingTotalAddresses;\n this._shipments = selectOrderShipments;\n this._payment = selectOrderPayment;\n this._invoices = selectOrderInvoices;\n this._credits = selectOrderCredits;\n this._grandTotal = selectOrderGrandTotal;\n this._subtotal = selectOrderSubtotal;\n this._shipping = selectOrderShippingTotal;\n this._discount = selectOrderDiscountTotal;\n this._hasDiscount = selectOrderHasDiscount;\n this._tax = selectOrderTaxTotal;\n }\n\n getOrder$(orderId: T['id']): Observable<T> {\n return this.store.pipe(select(this._order(orderId)));\n }\n\n getTotals$(orderId: T['id']): Observable<T['totals']> {\n return this.store.pipe(select(this._totals(orderId)));\n }\n\n getAppliedCodes$(orderId: T['id']): Observable<T['applied_codes']> {\n return this.store.pipe(select(this._appliedCodes(orderId)));\n }\n\n getItems$(orderId: T['id']): Observable<T['items']> {\n return this.store.pipe(select(this._items(orderId)));\n }\n\n getBillingAddresses$(orderId: T['id']): Observable<T['billing_addresses']> {\n return this.store.pipe(select(this._billingAddresses(orderId)));\n }\n\n getShippingAddresses$(orderId: T['id']): Observable<T['shipping_addresses']> {\n return this.store.pipe(select(this._shippingAddresses(orderId)));\n }\n\n getShipments$(orderId: T['id']): Observable<T['shipments']> {\n return this.store.pipe(select(this._shipments(orderId)));\n }\n\n getPayment$(orderId: T['id']): Observable<T['payment']> {\n return this.store.pipe(select(this._payment(orderId)));\n }\n\n getInvoices$(orderId: T['id']): Observable<T['invoices']> {\n return this.store.pipe(select(this._invoices(orderId)));\n }\n\n getCredits$(orderId: T['id']): Observable<T['credits']> {\n return this.store.pipe(select(this._credits(orderId)));\n }\n\n getGrandTotal$(orderId: T['id']): Observable<DaffOrderTotal> {\n return this.store.pipe(select(this._grandTotal(orderId)));\n };\n getSubtotal$(orderId: T['id']): Observable<DaffOrderTotal> {\n return this.store.pipe(select(this._subtotal(orderId)));\n };\n getShippingTotal$(orderId: T['id']): Observable<DaffOrderTotal> {\n return this.store.pipe(select(this._shipping(orderId)));\n };\n getDiscountTotal$(orderId: T['id']): Observable<DaffOrderTotal> {\n return this.store.pipe(select(this._discount(orderId)));\n };\n hasDiscount$(orderId: T['id']): Observable<boolean> {\n return this.store.pipe(select(this._hasDiscount(orderId)));\n };\n getTaxTotal$(orderId: T['id']): Observable<DaffOrderTotal> {\n return this.store.pipe(select(this._tax(orderId)));\n };\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n Effect,\n ofType,\n} from '@ngrx/effects';\nimport { of } from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCart } from '@daffodil/cart';\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DaffOrder,\n DAFF_ORDER_ERROR_MATCHER,\n} from '@daffodil/order';\nimport {\n DaffOrderServiceInterface,\n DaffOrderDriver,\n} from '@daffodil/order/driver';\n\nimport {\n DaffOrderActionTypes,\n DaffOrderLoad,\n DaffOrderLoadSuccess,\n DaffOrderLoadFailure,\n DaffOrderList,\n DaffOrderListSuccess,\n DaffOrderListFailure,\n} from '../actions/order.actions';\n\n@Injectable()\nexport class DaffOrderEffects<\n T extends DaffOrder = DaffOrder,\n V extends DaffCart = DaffCart\n> {\n constructor(\n private actions$: Actions,\n @Inject(DaffOrderDriver) private driver: DaffOrderServiceInterface<T>,\n\t\t@Inject(DAFF_ORDER_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n ) {}\n\n /**\n * An effect for the loading of an order.\n */\n @Effect()\n get$ = this.actions$.pipe(\n ofType(DaffOrderActionTypes.OrderLoadAction),\n switchMap((action: DaffOrderLoad<T, V>) =>\n this.driver.get(action.orderId, action.cartId).pipe(\n map(resp => new DaffOrderLoadSuccess<T>(resp)),\n catchError((error: DaffError) => of(new DaffOrderLoadFailure(this.errorMatcher(error)))),\n ),\n ),\n );\n\n /**\n * An effect for the listing of orders.\n */\n @Effect()\n list$ = this.actions$.pipe(\n ofType(DaffOrderActionTypes.OrderListAction),\n switchMap((action: DaffOrderList) =>\n this.driver.list(action.payload).pipe(\n map(resp => new DaffOrderListSuccess<T>(resp)),\n catchError((error: DaffError) => of(new DaffOrderListFailure(this.errorMatcher(error)))),\n ),\n ),\n );\n}\n","import { NgModule } from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport { DaffCartStateModule } from '@daffodil/cart/state';\n\nimport { DaffOrderEffects } from './effects/order.effects';\nimport {\n DAFF_ORDER_STORE_FEATURE_KEY,\n daffOrderReducers,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n DaffCartStateModule,\n EffectsModule.forFeature([\n DaffOrderEffects,\n ]),\n StoreModule.forFeature(DAFF_ORDER_STORE_FEATURE_KEY, daffOrderReducers),\n ],\n})\nexport class DaffOrderStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {DaffOrderEffects as ɵa} from './effects/order.effects';"],"names":[],"mappings":";;;;;;;;;;IAMY;AAAZ,WAAY,oBAAoB;IAC9B,qEAA6C,CAAA;IAC7C,oFAA4D,CAAA;IAC5D,oFAA4D,CAAA;IAC5D,qEAA6C,CAAA;IAC7C,oFAA4D,CAAA;IAC5D,oFAA4D,CAAA;AAC9D,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAED;;;;;;MAMa,aAAa;IAMxB,YAAmB,OAAgB,EAAS,MAAgB;QAAzC,YAAO,GAAP,OAAO,CAAS;QAAS,WAAM,GAAN,MAAM,CAAU;QAFnD,SAAI,GAAG,oBAAoB,CAAC,eAAe,CAAC;KAEW;CACjE;MAEY,oBAAoB;IAG/B,YAAmB,OAAU;QAAV,YAAO,GAAP,OAAO,CAAG;QAFpB,SAAI,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;KAE3B;CAClC;MAEY,oBAAoB;IAG/B,YAAmB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;QAFjC,SAAI,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;KAEd;CAC/C;AAED;;;;;MAKa,aAAa;IAGxB,YAAmB,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;QAF3B,SAAI,GAAG,oBAAoB,CAAC,eAAe,CAAC;KAEb;CACzC;MAEY,oBAAoB;IAG/B,YAAmB,OAAY;QAAZ,YAAO,GAAP,OAAO,CAAK;QAFtB,SAAI,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;KAEzB;CACpC;MAEY,oBAAoB;IAG/B,YAAmB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;QAFjC,SAAI,GAAG,oBAAoB,CAAC,sBAAsB,CAAC;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,aAAa,CAAC,UAAU,CAAC;wBACvB,gBAAgB;qBACjB,CAAC;oBACF,WAAW,CAAC,UAAU,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;iBACxE;aACF;;;ACpBD;;;;;;"}
@@ -1,386 +0,0 @@
1
- import { ɵɵdefineInjectable, Injectable } from '@angular/core';
2
- import { datatype, random, date, image, internet } from '@faker-js/faker/locale/en_US';
3
- import { DaffModelFactory } from '@daffodil/core/testing';
4
- import { MockDaffPersonalAddress } from '@daffodil/geography/testing';
5
- import { DaffOrderItemType, DaffOrderTotalTypeEnum } from '@daffodil/order';
6
-
7
- class MockOrderAddress extends MockDaffPersonalAddress {
8
- constructor() {
9
- super(...arguments);
10
- this.order_id = datatype.uuid();
11
- }
12
- }
13
- class DaffOrderAddressFactory extends DaffModelFactory {
14
- constructor() {
15
- super(MockOrderAddress);
16
- }
17
- }
18
- /** @nocollapse */ DaffOrderAddressFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderAddressFactory_Factory() { return new DaffOrderAddressFactory(); }, token: DaffOrderAddressFactory, providedIn: "root" });
19
- DaffOrderAddressFactory.decorators = [
20
- { type: Injectable, args: [{
21
- providedIn: 'root',
22
- },] }
23
- ];
24
- /** @nocollapse */
25
- DaffOrderAddressFactory.ctorParameters = () => [];
26
-
27
- class MockOrderCoupon {
28
- constructor() {
29
- this.code = random.alphaNumeric(10);
30
- }
31
- }
32
- ;
33
- class DaffOrderCouponFactory extends DaffModelFactory {
34
- constructor() {
35
- super(MockOrderCoupon);
36
- }
37
- }
38
- /** @nocollapse */ DaffOrderCouponFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderCouponFactory_Factory() { return new DaffOrderCouponFactory(); }, token: DaffOrderCouponFactory, providedIn: "root" });
39
- DaffOrderCouponFactory.decorators = [
40
- { type: Injectable, args: [{
41
- providedIn: 'root',
42
- },] }
43
- ];
44
- /** @nocollapse */
45
- DaffOrderCouponFactory.ctorParameters = () => [];
46
-
47
- class MockOrderInvoice {
48
- constructor() {
49
- this.items = [];
50
- this.totals = [];
51
- this.billing_address = null;
52
- this.shipping_address = null;
53
- this.payment = null;
54
- this.shipping_method = null;
55
- }
56
- }
57
- ;
58
- class DaffOrderInvoiceFactory extends DaffModelFactory {
59
- constructor() {
60
- super(MockOrderInvoice);
61
- }
62
- }
63
- /** @nocollapse */ DaffOrderInvoiceFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderInvoiceFactory_Factory() { return new DaffOrderInvoiceFactory(); }, token: DaffOrderInvoiceFactory, providedIn: "root" });
64
- DaffOrderInvoiceFactory.decorators = [
65
- { type: Injectable, args: [{
66
- providedIn: 'root',
67
- },] }
68
- ];
69
- /** @nocollapse */
70
- DaffOrderInvoiceFactory.ctorParameters = () => [];
71
-
72
- class MockOrderPayment {
73
- constructor() {
74
- this.id = datatype.uuid();
75
- this.payment_id = this.id;
76
- this.order_id = datatype.uuid();
77
- this.created_at = date.past().toString();
78
- this.updated_at = date.past().toString();
79
- this.method = 'card';
80
- this.cc_type = 'visa';
81
- this.cc_last4 = datatype.number({ min: 1000, max: 9999 }).toString();
82
- this.cc_owner = 'owner';
83
- this.cc_exp_month = 'month';
84
- this.cc_exp_year = 'year';
85
- }
86
- }
87
- class DaffOrderPaymentFactory extends DaffModelFactory {
88
- constructor() {
89
- super(MockOrderPayment);
90
- }
91
- }
92
- /** @nocollapse */ DaffOrderPaymentFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderPaymentFactory_Factory() { return new DaffOrderPaymentFactory(); }, token: DaffOrderPaymentFactory, providedIn: "root" });
93
- DaffOrderPaymentFactory.decorators = [
94
- { type: Injectable, args: [{
95
- providedIn: 'root',
96
- },] }
97
- ];
98
- /** @nocollapse */
99
- DaffOrderPaymentFactory.ctorParameters = () => [];
100
-
101
- class MockOrderItem {
102
- constructor() {
103
- this.id = datatype.uuid();
104
- this.item_id = this.id;
105
- this.image = {
106
- url: image.imageUrl(),
107
- id: datatype.uuid(),
108
- label: random.word(),
109
- };
110
- this.order_id = datatype.uuid();
111
- this.qty_ordered = datatype.number({ min: 1, max: 1000 });
112
- this.qty_canceled = datatype.number({ min: 1, max: 1000 });
113
- this.qty_fulfilled = datatype.number({ min: 1, max: 1000 });
114
- this.created_at = date.past().toString();
115
- this.updated_at = date.past().toString();
116
- this.product_id = datatype.uuid();
117
- this.parent_item_id = datatype.uuid();
118
- this.sku = random.alphaNumeric(20);
119
- this.name = random.word();
120
- this.weight = datatype.number({ min: 1, max: 1000 });
121
- this.qty = datatype.number({ min: 1, max: 10 });
122
- this.price = datatype.number({ min: 1, max: 1000 });
123
- this.discount_amount = datatype.number({ min: 1, max: this.price });
124
- this.discount_percent = Math.floor(this.discount_amount / this.price * 100);
125
- this.tax_percent = datatype.number({ min: 1, max: 10 });
126
- this.tax_amount = datatype.number({ min: 1, max: 10 });
127
- this.row_total = this.price * this.qty;
128
- this.row_total_with_discount = (this.price - this.discount_amount) * this.qty;
129
- this.row_weight = datatype.number({ min: 1, max: 100 });
130
- this.tax_before_discount = datatype.number({ min: 1, max: 100 });
131
- this.type = DaffOrderItemType.Simple;
132
- }
133
- }
134
- class DaffOrderItemFactory extends DaffModelFactory {
135
- constructor() {
136
- super(MockOrderItem);
137
- }
138
- }
139
- /** @nocollapse */ DaffOrderItemFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderItemFactory_Factory() { return new DaffOrderItemFactory(); }, token: DaffOrderItemFactory, providedIn: "root" });
140
- DaffOrderItemFactory.decorators = [
141
- { type: Injectable, args: [{
142
- providedIn: 'root',
143
- },] }
144
- ];
145
- /** @nocollapse */
146
- DaffOrderItemFactory.ctorParameters = () => [];
147
-
148
- class MockCompositeOrderItem extends MockOrderItem {
149
- constructor() {
150
- super(...arguments);
151
- this.type = DaffOrderItemType.Composite;
152
- this.options = [
153
- {
154
- option_label: random.word(),
155
- value_label: random.word(),
156
- },
157
- {
158
- option_label: random.word(),
159
- value_label: random.word(),
160
- },
161
- ];
162
- }
163
- }
164
- class DaffCompositeOrderItemFactory extends DaffModelFactory {
165
- constructor() {
166
- super(MockCompositeOrderItem);
167
- }
168
- }
169
- /** @nocollapse */ DaffCompositeOrderItemFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffCompositeOrderItemFactory_Factory() { return new DaffCompositeOrderItemFactory(); }, token: DaffCompositeOrderItemFactory, providedIn: "root" });
170
- DaffCompositeOrderItemFactory.decorators = [
171
- { type: Injectable, args: [{
172
- providedIn: 'root',
173
- },] }
174
- ];
175
- /** @nocollapse */
176
- DaffCompositeOrderItemFactory.ctorParameters = () => [];
177
-
178
- class MockConfigurableOrderItem extends MockOrderItem {
179
- constructor() {
180
- super(...arguments);
181
- this.type = DaffOrderItemType.Configurable;
182
- this.attributes = [
183
- {
184
- attribute_label: 'Color',
185
- value_label: 'Red',
186
- },
187
- {
188
- attribute_label: 'Size',
189
- value_label: 'M',
190
- },
191
- ];
192
- }
193
- }
194
- class DaffConfigurableOrderItemFactory extends DaffModelFactory {
195
- constructor() {
196
- super(MockConfigurableOrderItem);
197
- }
198
- }
199
- /** @nocollapse */ DaffConfigurableOrderItemFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffConfigurableOrderItemFactory_Factory() { return new DaffConfigurableOrderItemFactory(); }, token: DaffConfigurableOrderItemFactory, providedIn: "root" });
200
- DaffConfigurableOrderItemFactory.decorators = [
201
- { type: Injectable, args: [{
202
- providedIn: 'root',
203
- },] }
204
- ];
205
- /** @nocollapse */
206
- DaffConfigurableOrderItemFactory.ctorParameters = () => [];
207
-
208
- class MockOrderShipmentItem {
209
- constructor() {
210
- this.item = null;
211
- this.qty = datatype.number({ min: 1, max: 100 });
212
- }
213
- }
214
- ;
215
- class DaffOrderShipmentItemFactory extends DaffModelFactory {
216
- constructor() {
217
- super(MockOrderShipmentItem);
218
- }
219
- }
220
- /** @nocollapse */ DaffOrderShipmentItemFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderShipmentItemFactory_Factory() { return new DaffOrderShipmentItemFactory(); }, token: DaffOrderShipmentItemFactory, providedIn: "root" });
221
- DaffOrderShipmentItemFactory.decorators = [
222
- { type: Injectable, args: [{
223
- providedIn: 'root',
224
- },] }
225
- ];
226
- /** @nocollapse */
227
- DaffOrderShipmentItemFactory.ctorParameters = () => [];
228
-
229
- class MockOrderShipmentTracking {
230
- constructor() {
231
- this.tracking_number = random.alphaNumeric(16);
232
- this.tracking_url = internet.url();
233
- this.carrier = random.word();
234
- this.carrier_logo = internet.url();
235
- this.title = random.word();
236
- }
237
- }
238
- ;
239
- class DaffOrderShipmentTrackingFactory extends DaffModelFactory {
240
- constructor() {
241
- super(MockOrderShipmentTracking);
242
- }
243
- }
244
- /** @nocollapse */ DaffOrderShipmentTrackingFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderShipmentTrackingFactory_Factory() { return new DaffOrderShipmentTrackingFactory(); }, token: DaffOrderShipmentTrackingFactory, providedIn: "root" });
245
- DaffOrderShipmentTrackingFactory.decorators = [
246
- { type: Injectable, args: [{
247
- providedIn: 'root',
248
- },] }
249
- ];
250
- /** @nocollapse */
251
- DaffOrderShipmentTrackingFactory.ctorParameters = () => [];
252
-
253
- class MockOrderShipment {
254
- constructor() {
255
- this.tracking = [];
256
- this.items = [];
257
- this.carrier = random.word();
258
- this.carrier_title = random.word();
259
- this.code = random.word();
260
- this.method = random.word();
261
- this.method_description = random.word();
262
- }
263
- }
264
- ;
265
- class DaffOrderShipmentFactory extends DaffModelFactory {
266
- constructor() {
267
- super(MockOrderShipment);
268
- }
269
- }
270
- /** @nocollapse */ DaffOrderShipmentFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderShipmentFactory_Factory() { return new DaffOrderShipmentFactory(); }, token: DaffOrderShipmentFactory, providedIn: "root" });
271
- DaffOrderShipmentFactory.decorators = [
272
- { type: Injectable, args: [{
273
- providedIn: 'root',
274
- },] }
275
- ];
276
- /** @nocollapse */
277
- DaffOrderShipmentFactory.ctorParameters = () => [];
278
-
279
- class MockOrderShippingMethod {
280
- constructor() {
281
- this.rate_id = datatype.uuid();
282
- this.address_id = datatype.uuid();
283
- this.order_id = datatype.uuid();
284
- this.created_at = date.past().toString();
285
- this.updated_at = date.past().toString();
286
- this.carrier = random.word();
287
- this.carrier_title = random.word();
288
- this.code = random.word();
289
- this.method = random.word();
290
- this.method_description = random.word();
291
- this.price = datatype.number({ min: 1, max: 1000 });
292
- this.error_message = random.word();
293
- this.method_title = random.word();
294
- }
295
- }
296
- class DaffOrderShippingMethodFactory extends DaffModelFactory {
297
- constructor() {
298
- super(MockOrderShippingMethod);
299
- }
300
- }
301
- /** @nocollapse */ DaffOrderShippingMethodFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderShippingMethodFactory_Factory() { return new DaffOrderShippingMethodFactory(); }, token: DaffOrderShippingMethodFactory, providedIn: "root" });
302
- DaffOrderShippingMethodFactory.decorators = [
303
- { type: Injectable, args: [{
304
- providedIn: 'root',
305
- },] }
306
- ];
307
- /** @nocollapse */
308
- DaffOrderShippingMethodFactory.ctorParameters = () => [];
309
-
310
- class MockOrderTotal {
311
- constructor() {
312
- this.label = random.word();
313
- this.value = datatype.number({ min: 1, max: 100 });
314
- this.sort_order = datatype.number({ min: 1, max: 100 });
315
- this.type = DaffOrderTotalTypeEnum.GrandTotal;
316
- }
317
- }
318
- ;
319
- class DaffOrderTotalFactory extends DaffModelFactory {
320
- constructor() {
321
- super(MockOrderTotal);
322
- }
323
- }
324
- /** @nocollapse */ DaffOrderTotalFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderTotalFactory_Factory() { return new DaffOrderTotalFactory(); }, token: DaffOrderTotalFactory, providedIn: "root" });
325
- DaffOrderTotalFactory.decorators = [
326
- { type: Injectable, args: [{
327
- providedIn: 'root',
328
- },] }
329
- ];
330
- /** @nocollapse */
331
- DaffOrderTotalFactory.ctorParameters = () => [];
332
-
333
- class MockOrder {
334
- constructor() {
335
- this.id = datatype.uuid();
336
- this.customer_id = datatype.uuid();
337
- this.created_at = date.past().toString();
338
- this.updated_at = date.past().toString();
339
- this.status = random.word();
340
- this.totals = [];
341
- this.applied_codes = [];
342
- this.items = [];
343
- this.billing_addresses = [];
344
- this.shipping_addresses = [];
345
- this.shipments = [];
346
- this.payment = null;
347
- this.invoices = [];
348
- this.credits = [];
349
- }
350
- }
351
- ;
352
- class DaffOrderFactory extends DaffModelFactory {
353
- constructor() {
354
- super(MockOrder);
355
- }
356
- }
357
- /** @nocollapse */ DaffOrderFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffOrderFactory_Factory() { return new DaffOrderFactory(); }, token: DaffOrderFactory, providedIn: "root" });
358
- DaffOrderFactory.decorators = [
359
- { type: Injectable, args: [{
360
- providedIn: 'root',
361
- },] }
362
- ];
363
- /** @nocollapse */
364
- DaffOrderFactory.ctorParameters = () => [];
365
-
366
- /**
367
- * A helper function to verify that a model is a Order.
368
- *
369
- * @param order
370
- */
371
- function isOrder(order) {
372
- return !!order.id
373
- && !!order.customer_id
374
- && !!order.created_at
375
- && !!order.updated_at
376
- && !!order.status
377
- && !!order.applied_codes
378
- && !!order.totals;
379
- }
380
-
381
- /**
382
- * Generated bundle index. Do not edit.
383
- */
384
-
385
- export { DaffCompositeOrderItemFactory, DaffConfigurableOrderItemFactory, DaffOrderAddressFactory, DaffOrderCouponFactory, DaffOrderFactory, DaffOrderInvoiceFactory, DaffOrderItemFactory, DaffOrderPaymentFactory, DaffOrderShipmentFactory, DaffOrderShipmentItemFactory, DaffOrderShipmentTrackingFactory, DaffOrderShippingMethodFactory, DaffOrderTotalFactory, isOrder };
386
- //# sourceMappingURL=daffodil-order-testing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-order-testing.js","sources":["../../../libs/order/testing/src/factories/order-address.factory.ts","../../../libs/order/testing/src/factories/order-coupon.factory.ts","../../../libs/order/testing/src/factories/order-invoice.factory.ts","../../../libs/order/testing/src/factories/order-payment.factory.ts","../../../libs/order/testing/src/factories/order-item.factory.ts","../../../libs/order/testing/src/factories/composite-order-item.factory.ts","../../../libs/order/testing/src/factories/configurable-order-item.factory.ts","../../../libs/order/testing/src/factories/order-shipment-item.factory.ts","../../../libs/order/testing/src/factories/order-shipment-tracking.factory.ts","../../../libs/order/testing/src/factories/order-shipment.factory.ts","../../../libs/order/testing/src/factories/order-shipping-rate.factory.ts","../../../libs/order/testing/src/factories/order-total.factory.ts","../../../libs/order/testing/src/factories/order.factory.ts","../../../libs/order/testing/src/helpers/order-helper.ts","../../../libs/order/testing/src/daffodil-order-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { MockDaffPersonalAddress } from '@daffodil/geography/testing';\nimport { DaffOrderAddress } from '@daffodil/order';\n\nexport class MockOrderAddress extends MockDaffPersonalAddress implements DaffOrderAddress {\n order_id = faker.datatype.uuid();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderAddressFactory extends DaffModelFactory<DaffOrderAddress> {\n constructor() {\n super(MockOrderAddress);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderCoupon } from '@daffodil/order';\n\nexport class MockOrderCoupon implements DaffOrderCoupon {\n code = faker.random.alphaNumeric(10);\n};\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderCouponFactory extends DaffModelFactory<DaffOrderCoupon>{\n constructor() {\n super(MockOrderCoupon);\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderInvoice } from '@daffodil/order';\n\nexport class MockOrderInvoice implements DaffOrderInvoice {\n items = [];\n totals = [];\n billing_address = null;\n shipping_address = null;\n payment = null;\n shipping_method = null;\n};\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderInvoiceFactory extends DaffModelFactory<DaffOrderInvoice> {\n constructor() {\n super(MockOrderInvoice);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderPayment } from '@daffodil/order';\n\nexport class MockOrderPayment implements DaffOrderPayment {\n id = faker.datatype.uuid();\n payment_id = this.id;\n order_id = faker.datatype.uuid();\n created_at = faker.date.past().toString();\n updated_at = faker.date.past().toString();\n method = 'card';\n cc_type = 'visa';\n cc_last4 = faker.datatype.number({ min: 1000, max: 9999 }).toString();\n cc_owner = 'owner';\n cc_exp_month = 'month';\n cc_exp_year = 'year';\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderPaymentFactory extends DaffModelFactory<DaffOrderPayment>{\n constructor() {\n super(MockOrderPayment);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffOrderItem,\n DaffOrderItemType,\n} from '@daffodil/order';\n\nexport class MockOrderItem implements DaffOrderItem {\n id = faker.datatype.uuid();\n item_id = this.id;\n image = {\n url: faker.image.imageUrl(),\n id: faker.datatype.uuid(),\n label: faker.random.word(),\n };\n order_id = faker.datatype.uuid();\n qty_ordered = faker.datatype.number({ min: 1, max: 1000 });\n qty_canceled = faker.datatype.number({ min: 1, max: 1000 });\n qty_fulfilled = faker.datatype.number({ min: 1, max: 1000 });\n created_at = faker.date.past().toString();\n updated_at = faker.date.past().toString();\n product_id = faker.datatype.uuid();\n parent_item_id = faker.datatype.uuid();\n sku = faker.random.alphaNumeric(20);\n name = faker.random.word();\n weight = faker.datatype.number({ min: 1, max: 1000 });\n qty = faker.datatype.number({ min: 1, max: 10 });\n price = faker.datatype.number({ min: 1, max: 1000 });\n discount_amount = faker.datatype.number({ min: 1, max: this.price });\n discount_percent = Math.floor(this.discount_amount / this.price * 100);\n tax_percent = faker.datatype.number({ min: 1, max: 10 });\n tax_amount = faker.datatype.number({ min: 1, max: 10 });\n row_total = this.price * this.qty;\n row_total_with_discount = (this.price - this.discount_amount) * this.qty;\n row_weight = faker.datatype.number({ min: 1, max: 100 });\n tax_before_discount = faker.datatype.number({ min: 1, max: 100 });\n type = DaffOrderItemType.Simple;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderItemFactory extends DaffModelFactory<DaffOrderItem> {\n\n constructor(){\n super(MockOrderItem);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffCompositeOrderItem,\n DaffOrderItemType,\n} from '@daffodil/order';\n\nimport { MockOrderItem } from './order-item.factory';\n\nexport class MockCompositeOrderItem extends MockOrderItem implements DaffCompositeOrderItem {\n\ttype = DaffOrderItemType.Composite;\n\toptions = [\n\t {\n\t option_label: faker.random.word(),\n\t value_label: faker.random.word(),\n\t },\n\t {\n\t option_label: faker.random.word(),\n\t value_label: faker.random.word(),\n\t },\n\t];\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCompositeOrderItemFactory extends DaffModelFactory<DaffCompositeOrderItem> {\n constructor() {\n super(MockCompositeOrderItem);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffConfigurableOrderItem,\n DaffOrderItemType,\n} from '@daffodil/order';\n\nimport { MockOrderItem } from './order-item.factory';\n\nexport class MockConfigurableOrderItem extends MockOrderItem implements DaffConfigurableOrderItem {\n\ttype = DaffOrderItemType.Configurable;\n\tattributes = [\n\t {\n\t attribute_label: 'Color',\n\t value_label: 'Red',\n\t },\n\t {\n\t attribute_label: 'Size',\n\t value_label: 'M',\n\t },\n\t];\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffConfigurableOrderItemFactory extends DaffModelFactory<DaffConfigurableOrderItem> {\n constructor() {\n super(MockConfigurableOrderItem);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderShipmentItem } from '@daffodil/order';\n\nexport class MockOrderShipmentItem implements DaffOrderShipmentItem {\n item = null;\n qty = faker.datatype.number({ min: 1, max: 100 });\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderShipmentItemFactory extends DaffModelFactory<DaffOrderShipmentItem> {\n constructor() {\n super(MockOrderShipmentItem);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderShipmentTracking } from '@daffodil/order';\n\nexport class MockOrderShipmentTracking implements DaffOrderShipmentTracking {\n tracking_number = faker.random.alphaNumeric(16);\n tracking_url = faker.internet.url();\n carrier = faker.random.word();\n carrier_logo = faker.internet.url();\n title = faker.random.word();\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderShipmentTrackingFactory extends DaffModelFactory<DaffOrderShipmentTracking> {\n constructor() {\n super(MockOrderShipmentTracking);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderShipment } from '@daffodil/order';\n\nexport class MockOrderShipment implements DaffOrderShipment {\n tracking = [];\n items = [];\n carrier = faker.random.word();\n carrier_title = faker.random.word();\n code = faker.random.word();\n method = faker.random.word();\n method_description = faker.random.word();\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderShipmentFactory extends DaffModelFactory<DaffOrderShipment> {\n constructor() {\n super(MockOrderShipment);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrderShippingMethod } from '@daffodil/order';\n\nexport class MockOrderShippingMethod implements DaffOrderShippingMethod {\n rate_id = faker.datatype.uuid();\n address_id = faker.datatype.uuid();\n order_id = faker.datatype.uuid();\n created_at = faker.date.past().toString();\n updated_at = faker.date.past().toString();\n carrier = faker.random.word();\n carrier_title = faker.random.word();\n code = faker.random.word();\n method = faker.random.word();\n method_description = faker.random.word();\n price = faker.datatype.number({ min: 1, max: 1000 });\n error_message = faker.random.word();\n method_title = faker.random.word();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderShippingMethodFactory extends DaffModelFactory<DaffOrderShippingMethod>{\n constructor(){\n super(MockOrderShippingMethod);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport {\n DaffOrderTotal,\n DaffOrderTotalTypeEnum,\n} from '@daffodil/order';\n\nexport class MockOrderTotal implements DaffOrderTotal {\n label = faker.random.word();\n value = faker.datatype.number({ min: 1, max: 100 });\n sort_order = faker.datatype.number({ min: 1, max: 100 });\n type = DaffOrderTotalTypeEnum.GrandTotal;\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderTotalFactory extends DaffModelFactory<DaffOrderTotal> {\n constructor() {\n super(MockOrderTotal);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from '@faker-js/faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffOrder } from '@daffodil/order';\n\nexport class MockOrder implements DaffOrder {\n id = faker.datatype.uuid();\n customer_id = faker.datatype.uuid();\n created_at = faker.date.past().toString();\n updated_at = faker.date.past().toString();\n status = faker.random.word();\n totals = [];\n applied_codes = [];\n items = [];\n billing_addresses = [];\n shipping_addresses = [];\n shipments = [];\n payment = null;\n invoices = [];\n credits = [];\n};\n\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffOrderFactory extends DaffModelFactory<DaffOrder>{\n constructor() {\n super(MockOrder);\n }\n}\n","import { DaffOrder } from '@daffodil/order';\n\n/**\n * A helper function to verify that a model is a Order.\n *\n * @param order\n */\nexport function isOrder(order: DaffOrder): boolean {\n return !!order.id\n && !!order.customer_id\n && !!order.created_at\n && !!order.updated_at\n && !!order.status\n && !!order.applied_codes\n && !!order.totals;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["faker.datatype","faker.random","faker.date","faker.image","faker.internet"],"mappings":";;;;;;MAOa,gBAAiB,SAAQ,uBAAuB;IAA7D;;QACE,aAAQ,GAAGA,QAAc,CAAC,IAAI,EAAE,CAAC;KAClC;CAAA;MAKY,uBAAwB,SAAQ,gBAAkC;IAC7E;QACE,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACzB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCPY,eAAe;IAA5B;QACE,SAAI,GAAGC,MAAY,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;KACtC;CAAA;AAAA,CAAC;MAMW,sBAAuB,SAAQ,gBAAiC;IAC3E;QACE,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCRY,gBAAgB;IAA7B;QACE,UAAK,GAAG,EAAE,CAAC;QACX,WAAM,GAAG,EAAE,CAAC;QACZ,oBAAe,GAAG,IAAI,CAAC;QACvB,qBAAgB,GAAG,IAAI,CAAC;QACxB,YAAO,GAAG,IAAI,CAAC;QACf,oBAAe,GAAG,IAAI,CAAC;KACxB;CAAA;AAAA,CAAC;MAMW,uBAAwB,SAAQ,gBAAkC;IAC7E;QACE,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACzB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCXY,gBAAgB;IAA7B;QACE,OAAE,GAAGD,QAAc,CAAC,IAAI,EAAE,CAAC;QAC3B,eAAU,GAAG,IAAI,CAAC,EAAE,CAAC;QACrB,aAAQ,GAAGA,QAAc,CAAC,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CAAC,CAAC,KAAK,CAAC,MAAM;WACd,CAAC,CAAC,KAAK,CAAC,aAAa;WACrB,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC;AACtB;;ACfA;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-order.js","sources":["../../../libs/order/src/models/order-item.ts","../../../libs/order/src/models/order-total.ts","../../../libs/order/src/injection-tokens/error-matcher.token.ts","../../../libs/order/src/daffodil-order.ts"],"sourcesContent":["import {\n DaffIdentifiable,\n ID,\n} from '@daffodil/core';\nimport { DaffProductImage } from '@daffodil/product';\n\nimport { DaffOrder } from './order';\n\nexport enum DaffOrderItemType {\n Simple = 'simple',\n Composite = 'composite',\n Configurable = 'configurable'\n}\n\nexport interface DaffOrderItem extends DaffIdentifiable {\n type: DaffOrderItemType;\n\t/**\n\t * @deprecated use id instead.\n\t */\n item_id: ID;\n qty_ordered: number;\n qty_canceled: number;\n qty_fulfilled: number;\n image: DaffProductImage;\n order_id: DaffOrder['id'];\n created_at: string;\n updated_at: string;\n product_id: ID;\n parent_item_id: ID;\n sku: string;\n name: string;\n weight: number;\n qty: number;\n price: number;\n discount_percent: number;\n discount_amount: number;\n tax_percent: number;\n tax_amount: number;\n row_total: number;\n row_total_with_discount: number;\n row_weight: number;\n tax_before_discount: number;\n}\n","export enum DaffOrderTotalTypeEnum {\n GrandTotal = 'grand_total',\n Subtotal = 'subtotal',\n Discount = 'discount',\n Tax = 'tax',\n Shipping = 'shipping'\n}\n\nexport interface DaffOrderTotal {\n label: string;\n value: number;\n sort_order: number;\n type: DaffOrderTotalTypeEnum;\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_ORDER_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_ORDER_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAQY;AAAZ,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,kDAA6B,CAAA;AAC/B,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB;;ICRjB;AAAZ,WAAY,sBAAsB;IAChC,oDAA0B,CAAA;IAC1B,+CAAqB,CAAA;IACrB,+CAAqB,CAAA;IACrB,qCAAW,CAAA;IACX,+CAAqB,CAAA;AACvB,CAAC,EANW,sBAAsB,KAAtB,sBAAsB;;ACIlC;;;;MAIa,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B,EAC1B,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACVnD;;;;;;"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"DaffPlacedOrderGuard":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":26,"character":3},"arguments":[{"__symbolic":"reference","name":"DaffPlacedOrderGuardRedirectUrl"}]}]],"parameters":[{"__symbolic":"reference","module":"@daffodil/order/state","name":"DaffOrderFacade","line":24,"character":18},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":25,"character":18},{"__symbolic":"reference","name":"string"}]}],"canActivate":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DaffPlacedOrderGuardRedirectUrl":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":2,"character":51},"arguments":["DaffPlacedOrderGuardRedirectUrl"]},"DaffOrderRoutingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"DaffPlacedOrderGuardRedirectUrl"},"useValue":"/"}]}]}],"members":{}}},"origins":{"DaffPlacedOrderGuard":"./guards/placed-order/placed-order.guard","DaffPlacedOrderGuardRedirectUrl":"./guards/placed-order/placed-order-guard-redirect.token","DaffOrderRoutingModule":"./order-routing.module"},"importAs":"@daffodil/order/routing"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"DaffOrderActionTypes":{"OrderLoadAction":"[Order] Order Load Action","OrderLoadSuccessAction":"[Order] Order Load Success Action","OrderLoadFailureAction":"[Order] Order Load Failure Action","OrderListAction":"[Order] Order List Action","OrderListSuccessAction":"[Order] Order List Success Action","OrderListFailureAction":"[Order] Order List Failure Action"},"DaffOrderLoad":{"__symbolic":"class","arity":2,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":27,"character":30,"module":"./actions/order.actions"},{"__symbolic":"error","message":"Expression form not supported","line":27,"character":55,"module":"./actions/order.actions"}]}]}},"DaffOrderLoadSuccess":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":33,"character":30,"context":{"typeName":"T"},"module":"./actions/order.actions"}]}]}},"DaffOrderLoadFailure":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@daffodil/core/state","name":"DaffStateError","line":39,"character":30}]}]}},"DaffOrderList":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Expression form not supported","line":50,"character":31,"module":"./actions/order.actions"}]}]}},"DaffOrderListSuccess":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":56,"character":30,"context":{"typeName":"T"},"module":"./actions/order.actions"}]}]}]}},"DaffOrderListFailure":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@daffodil/core/state","name":"DaffStateError","line":39,"character":30}]}]}},"DaffOrderActions":{"__symbolic":"interface"},"daffOrderReducers":{"order":{"__symbolic":"reference","name":"daffOrderReducer"},"orders":{"__symbolic":"reference","name":"daffOrderEntitiesReducer"}},"DaffOrderReducersState":{"__symbolic":"interface"},"DaffOrderStateRootSlice":{"__symbolic":"interface"},"DAFF_ORDER_STORE_FEATURE_KEY":"daffOrder","daffGetOrderAdapter":{"__symbolic":"error","message":"Lambda not supported","line":10,"character":36,"module":"./reducers/order-entities/order-entities-adapter"},"daffOrderEntitiesInitialState":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","name":"daffGetOrderAdapter"}},"member":"getInitialState"}},"DaffOrderEntityState":{"__symbolic":"interface"},"daffOrderEntitiesReducer":{"__symbolic":"function"},"daffOrderReducer":{"__symbolic":"function"},"DaffOrderReducerState":{"__symbolic":"interface"},"daffOrderInitialState":{"loading":false,"errors":[]},"DaffOrderAllSelectors":{"__symbolic":"interface"},"getDaffOrderSelectors":{"__symbolic":"error","message":"Lambda not supported","line":20,"character":38,"module":"./selectors/order-all.selector"},"DaffOrderFacadeInterface":{"__symbolic":"interface"},"DaffOrderFacade":{"__symbolic":"class","arity":1,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":23,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"Store","module":"@ngrx/store","arguments":[{"__symbolic":"reference","name":"DaffOrderStateRootSlice"}]}]}],"getOrder$":[{"__symbolic":"method"}],"getTotals$":[{"__symbolic":"method"}],"getAppliedCodes$":[{"__symbolic":"method"}],"getItems$":[{"__symbolic":"method"}],"getBillingAddresses$":[{"__symbolic":"method"}],"getShippingAddresses$":[{"__symbolic":"method"}],"getShipments$":[{"__symbolic":"method"}],"getPayment$":[{"__symbolic":"method"}],"getInvoices$":[{"__symbolic":"method"}],"getCredits$":[{"__symbolic":"method"}],"getGrandTotal$":[{"__symbolic":"method"}],"getSubtotal$":[{"__symbolic":"method"}],"getShippingTotal$":[{"__symbolic":"method"}],"getDiscountTotal$":[{"__symbolic":"method"}],"hasDiscount$":[{"__symbolic":"method"}],"getTaxTotal$":[{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DaffOrderStateModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@daffodil/cart/state","name":"DaffCartStateModule","line":14,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/effects","name":"EffectsModule","line":15,"character":4},"member":"forFeature"},"arguments":[[{"__symbolic":"reference","name":"ɵa"}]]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngrx/store","name":"StoreModule","line":18,"character":4},"member":"forFeature"},"arguments":[{"__symbolic":"reference","name":"DAFF_ORDER_STORE_FEATURE_KEY"},{"__symbolic":"reference","name":"daffOrderReducers"}]}]}]}],"members":{}},"ɵa":{"__symbolic":"class","arity":2,"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":38,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":45,"character":5},"arguments":[{"__symbolic":"reference","module":"@daffodil/order/driver","name":"DaffOrderDriver","line":45,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":46,"character":3},"arguments":[{"__symbolic":"reference","module":"@daffodil/order","name":"DAFF_ORDER_ERROR_MATCHER","line":46,"character":10}]}]],"parameters":[{"__symbolic":"reference","module":"@ngrx/effects","name":"Actions","line":44,"character":22},{"__symbolic":"reference","name":"DaffOrderServiceInterface","module":"@daffodil/order/driver","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":45,"character":71,"context":{"typeName":"T"},"module":"./effects/order.effects"}]},{"__symbolic":"reference","module":"@daffodil/core/state","name":"ErrorTransformer","line":46,"character":58}]}],"get$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngrx/effects","name":"Effect","line":52,"character":3}}]}],"list$":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ngrx/effects","name":"Effect","line":66,"character":3}}]}]}}},"origins":{"DaffOrderActionTypes":"./actions/order.actions","DaffOrderLoad":"./actions/order.actions","DaffOrderLoadSuccess":"./actions/order.actions","DaffOrderLoadFailure":"./actions/order.actions","DaffOrderList":"./actions/order.actions","DaffOrderListSuccess":"./actions/order.actions","DaffOrderListFailure":"./actions/order.actions","DaffOrderActions":"./actions/order.actions","daffOrderReducers":"./reducers/order-reducers","DaffOrderReducersState":"./reducers/order-reducers.interface","DaffOrderStateRootSlice":"./reducers/order-reducers.interface","DAFF_ORDER_STORE_FEATURE_KEY":"./reducers/order-store-feature-key","daffGetOrderAdapter":"./reducers/order-entities/order-entities-adapter","daffOrderEntitiesInitialState":"./reducers/order-entities/order-entities-initial-state","DaffOrderEntityState":"./reducers/order-entities/order-entities-state.interface","daffOrderEntitiesReducer":"./reducers/order-entities/order-entities.reducer","daffOrderReducer":"./reducers/order/order.reducer","DaffOrderReducerState":"./reducers/order/order-reducer.interface","daffOrderInitialState":"./reducers/order/order-initial-state","DaffOrderAllSelectors":"./selectors/order-all.selector","getDaffOrderSelectors":"./selectors/order-all.selector","DaffOrderFacadeInterface":"./facades/order/order-facade.interface","DaffOrderFacade":"./facades/order/order.facade","DaffOrderStateModule":"./order-state.module","ɵa":"./effects/order.effects"},"importAs":"@daffodil/order/state"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"MockDaffOrderFacade":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"getOrder$":[{"__symbolic":"method"}],"getTotals$":[{"__symbolic":"method"}],"getAppliedCodes$":[{"__symbolic":"method"}],"getItems$":[{"__symbolic":"method"}],"getBillingAddresses$":[{"__symbolic":"method"}],"getShippingAddresses$":[{"__symbolic":"method"}],"getShipments$":[{"__symbolic":"method"}],"getPayment$":[{"__symbolic":"method"}],"getInvoices$":[{"__symbolic":"method"}],"getCredits$":[{"__symbolic":"method"}],"getGrandTotal$":[{"__symbolic":"method"}],"getSubtotal$":[{"__symbolic":"method"}],"getShippingTotal$":[{"__symbolic":"method"}],"getDiscountTotal$":[{"__symbolic":"method"}],"hasDiscount$":[{"__symbolic":"method"}],"getTaxTotal$":[{"__symbolic":"method"}],"dispatch":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"DaffOrderTestingModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","module":"@daffodil/order/state","name":"DaffOrderFacade","line":8,"character":15},"useExisting":{"__symbolic":"reference","name":"MockDaffOrderFacade"}}]}]}],"members":{}}},"origins":{"MockDaffOrderFacade":"./mock-order-facade","DaffOrderTestingModule":"./order-testing.module"},"importAs":"@daffodil/order/state/testing"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"DaffOrderAddressFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":14,"character":45},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderCouponFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":14,"character":44},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderInvoiceFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":18,"character":45},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderPaymentFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":23,"character":45},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":20,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderItemFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":44,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":41,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffCompositeOrderItemFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":28,"character":51},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffConfigurableOrderItemFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":28,"character":54},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":25,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderShipmentItemFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":14,"character":50},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderShipmentTrackingFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":17,"character":54},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderShipmentFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":19,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderShippingMethodFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":25,"character":52},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":22,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderTotalFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":19,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"DaffOrderFactory":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@daffodil/core/testing","name":"DaffModelFactory","line":27,"character":38},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"isOrder":{"__symbolic":"function","parameters":["order"],"value":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"binop","operator":"&&","left":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"id"}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"customer_id"}}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"created_at"}}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"updated_at"}}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"status"}}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"applied_codes"}}}},"right":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"pre","operator":"!","operand":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"order"},"member":"totals"}}}}}},"origins":{"DaffOrderAddressFactory":"./factories/order-address.factory","DaffOrderCouponFactory":"./factories/order-coupon.factory","DaffOrderInvoiceFactory":"./factories/order-invoice.factory","DaffOrderPaymentFactory":"./factories/order-payment.factory","DaffOrderItemFactory":"./factories/order-item.factory","DaffCompositeOrderItemFactory":"./factories/composite-order-item.factory","DaffConfigurableOrderItemFactory":"./factories/configurable-order-item.factory","DaffOrderShipmentItemFactory":"./factories/order-shipment-item.factory","DaffOrderShipmentTrackingFactory":"./factories/order-shipment-tracking.factory","DaffOrderShipmentFactory":"./factories/order-shipment.factory","DaffOrderShippingMethodFactory":"./factories/order-shipping-rate.factory","DaffOrderTotalFactory":"./factories/order-total.factory","DaffOrderFactory":"./factories/order.factory","isOrder":"./helpers/order-helper"},"importAs":"@daffodil/order/testing"}