@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,107 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@daffodil/order/state')) :
3
- typeof define === 'function' && define.amd ? define('@daffodil/order/state/testing', ['exports', '@angular/core', 'rxjs', '@daffodil/order/state'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.daffodil = global.daffodil || {}, global.daffodil.order = global.daffodil.order || {}, global.daffodil.order.state = global.daffodil.order.state || {}, global.daffodil.order.state.testing = {}), global.ng.core, global.rxjs, global.daffodil.order.state));
5
- }(this, (function (exports, i0, rxjs, state) { 'use strict';
6
-
7
- /**
8
- * @inheritdoc
9
- */
10
- var MockDaffOrderFacade = /** @class */ (function () {
11
- function MockDaffOrderFacade() {
12
- this.loading$ = new rxjs.BehaviorSubject(null);
13
- this.errors$ = new rxjs.BehaviorSubject([]);
14
- this.orders$ = new rxjs.BehaviorSubject([]);
15
- this.orderIds$ = new rxjs.BehaviorSubject([]);
16
- this.orderCount$ = new rxjs.BehaviorSubject(null);
17
- this.orderEntities$ = new rxjs.BehaviorSubject({});
18
- this.placedOrder$ = new rxjs.BehaviorSubject(null);
19
- this.hasPlacedOrder$ = new rxjs.BehaviorSubject(false);
20
- }
21
- MockDaffOrderFacade.prototype.getOrder$ = function (orderId) {
22
- return new rxjs.BehaviorSubject(null);
23
- };
24
- MockDaffOrderFacade.prototype.getTotals$ = function (orderId) {
25
- return new rxjs.BehaviorSubject([]);
26
- };
27
- MockDaffOrderFacade.prototype.getAppliedCodes$ = function (orderId) {
28
- return new rxjs.BehaviorSubject([]);
29
- };
30
- MockDaffOrderFacade.prototype.getItems$ = function (orderId) {
31
- return new rxjs.BehaviorSubject([]);
32
- };
33
- MockDaffOrderFacade.prototype.getBillingAddresses$ = function (orderId) {
34
- return new rxjs.BehaviorSubject([]);
35
- };
36
- MockDaffOrderFacade.prototype.getShippingAddresses$ = function (orderId) {
37
- return new rxjs.BehaviorSubject([]);
38
- };
39
- MockDaffOrderFacade.prototype.getShipments$ = function (orderId) {
40
- return new rxjs.BehaviorSubject([]);
41
- };
42
- MockDaffOrderFacade.prototype.getPayment$ = function (orderId) {
43
- return new rxjs.BehaviorSubject(null);
44
- };
45
- MockDaffOrderFacade.prototype.getInvoices$ = function (orderId) {
46
- return new rxjs.BehaviorSubject([]);
47
- };
48
- MockDaffOrderFacade.prototype.getCredits$ = function (orderId) {
49
- return new rxjs.BehaviorSubject([]);
50
- };
51
- MockDaffOrderFacade.prototype.getGrandTotal$ = function (orderId) {
52
- return new rxjs.BehaviorSubject(null);
53
- };
54
- ;
55
- MockDaffOrderFacade.prototype.getSubtotal$ = function (orderId) {
56
- return new rxjs.BehaviorSubject(null);
57
- };
58
- ;
59
- MockDaffOrderFacade.prototype.getShippingTotal$ = function (orderId) {
60
- return new rxjs.BehaviorSubject(null);
61
- };
62
- ;
63
- MockDaffOrderFacade.prototype.getDiscountTotal$ = function (orderId) {
64
- return new rxjs.BehaviorSubject(null);
65
- };
66
- ;
67
- MockDaffOrderFacade.prototype.hasDiscount$ = function (orderId) {
68
- return new rxjs.BehaviorSubject(false);
69
- };
70
- ;
71
- MockDaffOrderFacade.prototype.getTaxTotal$ = function (orderId) {
72
- return new rxjs.BehaviorSubject(null);
73
- };
74
- ;
75
- MockDaffOrderFacade.prototype.dispatch = function (action) { };
76
- ;
77
- return MockDaffOrderFacade;
78
- }());
79
- /** @nocollapse */ MockDaffOrderFacade.ɵprov = i0.ɵɵdefineInjectable({ factory: function MockDaffOrderFacade_Factory() { return new MockDaffOrderFacade(); }, token: MockDaffOrderFacade, providedIn: "root" });
80
- MockDaffOrderFacade.decorators = [
81
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
82
- ];
83
-
84
- var DaffOrderTestingModule = /** @class */ (function () {
85
- function DaffOrderTestingModule() {
86
- }
87
- return DaffOrderTestingModule;
88
- }());
89
- DaffOrderTestingModule.decorators = [
90
- { type: i0.NgModule, args: [{
91
- providers: [
92
- { provide: state.DaffOrderFacade, useExisting: MockDaffOrderFacade },
93
- ],
94
- },] }
95
- ];
96
-
97
- /**
98
- * Generated bundle index. Do not edit.
99
- */
100
-
101
- exports.DaffOrderTestingModule = DaffOrderTestingModule;
102
- exports.MockDaffOrderFacade = MockDaffOrderFacade;
103
-
104
- Object.defineProperty(exports, '__esModule', { value: true });
105
-
106
- })));
107
- //# sourceMappingURL=daffodil-order-state-testing.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daffodil-order-state-testing.umd.js","sources":["../../../libs/order/state/testing/src/mock-order-facade.ts","../../../libs/order/state/testing/src/order-testing.module.ts","../../../libs/order/state/testing/src/daffodil-order-state-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Dictionary } from '@ngrx/entity';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport {\n DaffOrder,\n DaffOrderTotal,\n} from '@daffodil/order';\nimport { DaffOrderFacadeInterface } from '@daffodil/order/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffOrderFacade implements DaffOrderFacadeInterface {\n loading$: BehaviorSubject<boolean> = new BehaviorSubject(null);\n errors$: BehaviorSubject<DaffStateError[]> = new BehaviorSubject([]);\n\n orders$: BehaviorSubject<DaffOrder[]> = new BehaviorSubject([]);\n orderIds$: BehaviorSubject<DaffOrder['id'][]> = new BehaviorSubject([]);\n orderCount$: BehaviorSubject<number> = new BehaviorSubject(null);\n orderEntities$: BehaviorSubject<Dictionary<DaffOrder>> = new BehaviorSubject({});\n\n placedOrder$: BehaviorSubject<DaffOrder> = new BehaviorSubject(null);\n hasPlacedOrder$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n getOrder$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder> {\n return new BehaviorSubject(null);\n }\n\n getTotals$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['totals']> {\n return new BehaviorSubject([]);\n }\n\n getAppliedCodes$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['applied_codes']> {\n return new BehaviorSubject([]);\n }\n\n getItems$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['items']> {\n return new BehaviorSubject([]);\n }\n\n getBillingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['billing_addresses']> {\n return new BehaviorSubject([]);\n }\n\n getShippingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipping_addresses']> {\n return new BehaviorSubject([]);\n }\n\n getShipments$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipments']> {\n return new BehaviorSubject([]);\n }\n\n getPayment$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['payment']> {\n return new BehaviorSubject(null);\n }\n\n getInvoices$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['invoices']> {\n return new BehaviorSubject([]);\n }\n\n getCredits$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['credits']> {\n return new BehaviorSubject([]);\n }\n getGrandTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getSubtotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getShippingTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getDiscountTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n hasDiscount$(orderId: DaffOrder['id']): BehaviorSubject<boolean> {\n return new BehaviorSubject(false);\n };\n getTaxTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffOrderFacade } from '@daffodil/order/state';\n\nimport { MockDaffOrderFacade } from './mock-order-facade';\n\n@NgModule({\n providers: [\n { provide: DaffOrderFacade, useExisting: MockDaffOrderFacade },\n ],\n})\nexport class DaffOrderTestingModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["BehaviorSubject","Injectable","NgModule","DaffOrderFacade"],"mappings":";;;;;;IAYA;;;;QAGA;YAEE,aAAQ,GAA6B,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;YAC/D,YAAO,GAAsC,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;YAErE,YAAO,GAAiC,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;YAChE,cAAS,GAAuC,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;YACxE,gBAAW,GAA4B,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;YACjE,mBAAc,GAA2C,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;YAEjF,iBAAY,GAA+B,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;YACrE,oBAAe,GAA6B,IAAIA,oBAAe,CAAC,KAAK,CAAC,CAAC;SA6DxE;QA3DC,uCAAS,GAAT,UAAU,OAAwB;YAChC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAED,wCAAU,GAAV,UAAW,OAAwB;YACjC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,8CAAgB,GAAhB,UAAiB,OAAwB;YACvC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,uCAAS,GAAT,UAAU,OAAwB;YAChC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,kDAAoB,GAApB,UAAqB,OAAwB;YAC3C,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,mDAAqB,GAArB,UAAsB,OAAwB;YAC5C,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,2CAAa,GAAb,UAAc,OAAwB;YACpC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,yCAAW,GAAX,UAAY,OAAwB;YAClC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAED,0CAAY,GAAZ,UAAa,OAAwB;YACnC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QAED,yCAAW,GAAX,UAAY,OAAwB;YAClC,OAAO,IAAIA,oBAAe,CAAC,EAAE,CAAC,CAAC;SAChC;QACD,4CAAc,GAAd,UAAe,OAAwB;YACrC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAAA,CAAC;QACF,0CAAY,GAAZ,UAAa,OAAwB;YACnC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAAA,CAAC;QACF,+CAAiB,GAAjB,UAAkB,OAAwB;YACxC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAAA,CAAC;QACF,+CAAiB,GAAjB,UAAkB,OAAwB;YACxC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAAA,CAAC;QACF,0CAAY,GAAZ,UAAa,OAAwB;YACnC,OAAO,IAAIA,oBAAe,CAAC,KAAK,CAAC,CAAC;SACnC;QAAA,CAAC;QACF,0CAAY,GAAZ,UAAa,OAAwB;YACnC,OAAO,IAAIA,oBAAe,CAAC,IAAI,CAAC,CAAC;SAClC;QAAA,CAAC;QAEF,sCAAQ,GAAR,UAAS,MAAc,KAAI;QAAA,CAAC;;;;;gBAvE7BC,aAAU,SAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;QCJlC;;;;;gBALCC,WAAQ,SAAC;oBACR,SAAS,EAAE;wBACT,EAAE,OAAO,EAAEC,qBAAe,EAAE,WAAW,EAAE,mBAAmB,EAAE;qBAC/D;iBACF;;;ICVD;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("@daffodil/order/state")):"function"==typeof define&&define.amd?define("@daffodil/order/state/testing",["exports","@angular/core","rxjs","@daffodil/order/state"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).daffodil=e.daffodil||{},e.daffodil.order=e.daffodil.order||{},e.daffodil.order.state=e.daffodil.order.state||{},e.daffodil.order.state.testing={}),e.ng.core,e.rxjs,e.daffodil.order.state)}(this,(function(e,t,r,o){"use strict";var n=function(){function e(){this.loading$=new r.BehaviorSubject(null),this.errors$=new r.BehaviorSubject([]),this.orders$=new r.BehaviorSubject([]),this.orderIds$=new r.BehaviorSubject([]),this.orderCount$=new r.BehaviorSubject(null),this.orderEntities$=new r.BehaviorSubject({}),this.placedOrder$=new r.BehaviorSubject(null),this.hasPlacedOrder$=new r.BehaviorSubject(!1)}return e.prototype.getOrder$=function(e){return new r.BehaviorSubject(null)},e.prototype.getTotals$=function(e){return new r.BehaviorSubject([])},e.prototype.getAppliedCodes$=function(e){return new r.BehaviorSubject([])},e.prototype.getItems$=function(e){return new r.BehaviorSubject([])},e.prototype.getBillingAddresses$=function(e){return new r.BehaviorSubject([])},e.prototype.getShippingAddresses$=function(e){return new r.BehaviorSubject([])},e.prototype.getShipments$=function(e){return new r.BehaviorSubject([])},e.prototype.getPayment$=function(e){return new r.BehaviorSubject(null)},e.prototype.getInvoices$=function(e){return new r.BehaviorSubject([])},e.prototype.getCredits$=function(e){return new r.BehaviorSubject([])},e.prototype.getGrandTotal$=function(e){return new r.BehaviorSubject(null)},e.prototype.getSubtotal$=function(e){return new r.BehaviorSubject(null)},e.prototype.getShippingTotal$=function(e){return new r.BehaviorSubject(null)},e.prototype.getDiscountTotal$=function(e){return new r.BehaviorSubject(null)},e.prototype.hasDiscount$=function(e){return new r.BehaviorSubject(!1)},e.prototype.getTaxTotal$=function(e){return new r.BehaviorSubject(null)},e.prototype.dispatch=function(e){},e}();n.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var i=function(){};i.decorators=[{type:t.NgModule,args:[{providers:[{provide:o.DaffOrderFacade,useExisting:n}]}]}],e.DaffOrderTestingModule=i,e.MockDaffOrderFacade=n,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=daffodil-order-state-testing.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../libs/order/state/testing/src/mock-order-facade.ts","../../../libs/order/state/testing/src/order-testing.module.ts"],"names":["MockDaffOrderFacade","this","loading$","BehaviorSubject","errors$","orders$","orderIds$","orderCount$","orderEntities$","placedOrder$","hasPlacedOrder$","prototype","getOrder$","orderId","getTotals$","getAppliedCodes$","getItems$","getBillingAddresses$","getShippingAddresses$","getShipments$","getPayment$","getInvoices$","getCredits$","getGrandTotal$","getSubtotal$","getShippingTotal$","getDiscountTotal$","hasDiscount$","getTaxTotal$","dispatch","action","Injectable","args","providedIn","NgModule","providers","provide","DaffOrderFacade","useExisting"],"mappings":"glBAeA,SAAAA,IAEEC,KAAAC,SAAqC,IAAIC,EAAAA,gBAAgB,MACzDF,KAAAG,QAA6C,IAAID,EAAAA,gBAAgB,IAEjEF,KAAAI,QAAwC,IAAIF,EAAAA,gBAAgB,IAC5DF,KAAAK,UAAgD,IAAIH,EAAAA,gBAAgB,IACpEF,KAAAM,YAAuC,IAAIJ,EAAAA,gBAAgB,MAC3DF,KAAAO,eAAyD,IAAIL,EAAAA,gBAAgB,IAE7EF,KAAAQ,aAA2C,IAAIN,EAAAA,gBAAgB,MAC/DF,KAAAS,gBAA4C,IAAIP,EAAAA,iBAAgB,UAEhEH,EAAAW,UAAAC,UAAA,SAAUC,GACR,OAAO,IAAIV,EAAAA,gBAAgB,OAG7BH,EAAAW,UAAAG,WAAA,SAAWD,GACT,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAI,iBAAA,SAAiBF,GACf,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAK,UAAA,SAAUH,GACR,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAM,qBAAA,SAAqBJ,GACnB,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAO,sBAAA,SAAsBL,GACpB,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAQ,cAAA,SAAcN,GACZ,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAS,YAAA,SAAYP,GACV,OAAO,IAAIV,EAAAA,gBAAgB,OAG7BH,EAAAW,UAAAU,aAAA,SAAaR,GACX,OAAO,IAAIV,EAAAA,gBAAgB,KAG7BH,EAAAW,UAAAW,YAAA,SAAYT,GACV,OAAO,IAAIV,EAAAA,gBAAgB,KAE7BH,EAAAW,UAAAY,eAAA,SAAeV,GACb,OAAO,IAAIV,EAAAA,gBAAgB,OAE7BH,EAAAW,UAAAa,aAAA,SAAaX,GACX,OAAO,IAAIV,EAAAA,gBAAgB,OAE7BH,EAAAW,UAAAc,kBAAA,SAAkBZ,GAChB,OAAO,IAAIV,EAAAA,gBAAgB,OAE7BH,EAAAW,UAAAe,kBAAA,SAAkBb,GAChB,OAAO,IAAIV,EAAAA,gBAAgB,OAE7BH,EAAAW,UAAAgB,aAAA,SAAad,GACX,OAAO,IAAIV,EAAAA,iBAAgB,IAE7BH,EAAAW,UAAAiB,aAAA,SAAaf,GACX,OAAO,IAAIV,EAAAA,gBAAgB,OAG7BH,EAAAW,UAAAkB,SAAA,SAASC,yHAvEVC,EAAAA,WAAUC,KAAA,CAAC,CAAEC,WAAY,iBCJ1B,iCALCC,EAAAA,SAAQF,KAAA,CAAC,CACRG,UAAW,CACT,CAAEC,QAASC,EAAAA,gBAAiBC,YAAatC","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Dictionary } from '@ngrx/entity';\nimport { Action } from '@ngrx/store';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport {\n DaffOrder,\n DaffOrderTotal,\n} from '@daffodil/order';\nimport { DaffOrderFacadeInterface } from '@daffodil/order/state';\n\n/**\n * @inheritdoc\n */\n@Injectable({ providedIn: 'root' })\nexport class MockDaffOrderFacade implements DaffOrderFacadeInterface {\n loading$: BehaviorSubject<boolean> = new BehaviorSubject(null);\n errors$: BehaviorSubject<DaffStateError[]> = new BehaviorSubject([]);\n\n orders$: BehaviorSubject<DaffOrder[]> = new BehaviorSubject([]);\n orderIds$: BehaviorSubject<DaffOrder['id'][]> = new BehaviorSubject([]);\n orderCount$: BehaviorSubject<number> = new BehaviorSubject(null);\n orderEntities$: BehaviorSubject<Dictionary<DaffOrder>> = new BehaviorSubject({});\n\n placedOrder$: BehaviorSubject<DaffOrder> = new BehaviorSubject(null);\n hasPlacedOrder$: BehaviorSubject<boolean> = new BehaviorSubject(false);\n\n getOrder$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder> {\n return new BehaviorSubject(null);\n }\n\n getTotals$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['totals']> {\n return new BehaviorSubject([]);\n }\n\n getAppliedCodes$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['applied_codes']> {\n return new BehaviorSubject([]);\n }\n\n getItems$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['items']> {\n return new BehaviorSubject([]);\n }\n\n getBillingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['billing_addresses']> {\n return new BehaviorSubject([]);\n }\n\n getShippingAddresses$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipping_addresses']> {\n return new BehaviorSubject([]);\n }\n\n getShipments$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['shipments']> {\n return new BehaviorSubject([]);\n }\n\n getPayment$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['payment']> {\n return new BehaviorSubject(null);\n }\n\n getInvoices$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['invoices']> {\n return new BehaviorSubject([]);\n }\n\n getCredits$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrder['credits']> {\n return new BehaviorSubject([]);\n }\n getGrandTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getSubtotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getShippingTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n getDiscountTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n hasDiscount$(orderId: DaffOrder['id']): BehaviorSubject<boolean> {\n return new BehaviorSubject(false);\n };\n getTaxTotal$(orderId: DaffOrder['id']): BehaviorSubject<DaffOrderTotal> {\n return new BehaviorSubject(null);\n };\n\n dispatch(action: Action) {};\n}\n","import { NgModule } from '@angular/core';\n\nimport { DaffOrderFacade } from '@daffodil/order/state';\n\nimport { MockDaffOrderFacade } from './mock-order-facade';\n\n@NgModule({\n providers: [\n { provide: DaffOrderFacade, useExisting: MockDaffOrderFacade },\n ],\n})\nexport class DaffOrderTestingModule {}\n"]}