@daffodil/order 0.39.13 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) 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/order-driver.module.d.ts +5 -0
  27. package/driver/magento/2.4.1/order.service.d.ts +4 -1
  28. package/driver/magento/2.4.1/package.json +5 -6
  29. package/driver/magento/2.4.1/queries/fragments/order-address.d.ts +1 -1
  30. package/driver/magento/2.4.1/queries/fragments/order-credit-item.d.ts +1 -1
  31. package/driver/magento/2.4.1/queries/fragments/order-credit-total.d.ts +1 -1
  32. package/driver/magento/2.4.1/queries/fragments/order-credit.d.ts +1 -1
  33. package/driver/magento/2.4.1/queries/fragments/order-invoice-item.d.ts +1 -1
  34. package/driver/magento/2.4.1/queries/fragments/order-invoice-total.d.ts +1 -1
  35. package/driver/magento/2.4.1/queries/fragments/order-invoice.d.ts +1 -1
  36. package/driver/magento/2.4.1/queries/fragments/order-item.d.ts +2 -2
  37. package/driver/magento/2.4.1/queries/fragments/order-payment.d.ts +1 -1
  38. package/driver/magento/2.4.1/queries/fragments/order-shipment-item.d.ts +1 -1
  39. package/driver/magento/2.4.1/queries/fragments/order-shipment-tracking.d.ts +1 -1
  40. package/driver/magento/2.4.1/queries/fragments/order-shipment.d.ts +1 -1
  41. package/driver/magento/2.4.1/queries/fragments/order-total.d.ts +1 -1
  42. package/driver/magento/2.4.1/queries/fragments/order.d.ts +1 -1
  43. package/driver/magento/2.4.1/queries/get-guest-orders.d.ts +1 -1
  44. package/driver/package.json +5 -6
  45. package/driver/testing/daffodil-order-driver-testing.d.ts +1 -0
  46. package/driver/testing/drivers/order-driver.module.d.ts +5 -0
  47. package/driver/testing/drivers/order.service.d.ts +3 -0
  48. package/driver/testing/package.json +5 -6
  49. package/{esm2015/daffodil-order.js → esm2020/daffodil-order.mjs} +0 -0
  50. package/{esm2015/driver/daffodil-order-driver.js → esm2020/driver/daffodil-order-driver.mjs} +0 -0
  51. package/{esm2015/driver/errors/invalid-api-response.js → esm2020/driver/errors/invalid-api-response.mjs} +0 -0
  52. package/{esm2015/driver/errors/order-not-found.js → esm2020/driver/errors/order-not-found.mjs} +0 -0
  53. package/{esm2015/driver/errors/public_api.js → esm2020/driver/errors/public_api.mjs} +0 -0
  54. package/esm2020/driver/in-memory/backend/order.service.mjs +57 -0
  55. package/{esm2015/driver/in-memory/daffodil-order-driver-in-memory.js → esm2020/driver/in-memory/daffodil-order-driver-in-memory.mjs} +0 -0
  56. package/esm2020/driver/in-memory/drivers/order-driver.module.mjs +32 -0
  57. package/esm2020/driver/in-memory/drivers/order.service.mjs +28 -0
  58. package/{esm2015/driver/in-memory/drivers/public_api.js → esm2020/driver/in-memory/drivers/public_api.mjs} +0 -0
  59. package/{esm2015/driver/in-memory/index.js → esm2020/driver/in-memory/index.mjs} +0 -0
  60. package/{esm2015/driver/in-memory/public_api.js → esm2020/driver/in-memory/public_api.mjs} +0 -0
  61. package/{esm2015/driver/index.js → esm2020/driver/index.mjs} +0 -0
  62. package/{esm2015/driver/interfaces/order-service.interface.js → esm2020/driver/interfaces/order-service.interface.mjs} +0 -0
  63. 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
  64. package/{esm2015/driver/magento/2.4.0/errors/codes.js → esm2020/driver/magento/2.4.0/errors/codes.mjs} +0 -0
  65. package/{esm2015/driver/magento/2.4.0/errors/map.js → esm2020/driver/magento/2.4.0/errors/map.mjs} +0 -0
  66. package/{esm2015/driver/magento/2.4.0/errors/transform.js → esm2020/driver/magento/2.4.0/errors/transform.mjs} +0 -0
  67. package/{esm2015/driver/magento/2.4.0/index.js → esm2020/driver/magento/2.4.0/index.mjs} +0 -0
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. package/{esm2015/driver/magento/2.4.0/models/responses/order.js → esm2020/driver/magento/2.4.0/models/responses/order.mjs} +0 -0
  78. 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
  79. package/esm2020/driver/magento/2.4.0/order-driver.module.mjs +32 -0
  80. package/esm2020/driver/magento/2.4.0/order.service.mjs +54 -0
  81. package/{esm2015/driver/magento/2.4.0/public_api.js → esm2020/driver/magento/2.4.0/public_api.mjs} +0 -0
  82. 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
  83. 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
  84. package/esm2020/driver/magento/2.4.0/queries/fragments/order-item.mjs +27 -0
  85. 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
  86. 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
  87. 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
  88. 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
  89. package/{esm2015/driver/magento/2.4.0/queries/fragments/order.js → esm2020/driver/magento/2.4.0/queries/fragments/order.mjs} +2 -2
  90. 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
  91. 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
  92. package/{esm2015/driver/magento/2.4.0/queries/public_api.js → esm2020/driver/magento/2.4.0/queries/public_api.mjs} +0 -0
  93. 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
  94. 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
  95. package/{esm2015/driver/magento/2.4.0/transforms/responses/order.js → esm2020/driver/magento/2.4.0/transforms/responses/order.mjs} +0 -0
  96. package/esm2020/driver/magento/2.4.0/validators/get-orders.mjs +17 -0
  97. package/{esm2015/driver/magento/2.4.0/validators/public_api.js → esm2020/driver/magento/2.4.0/validators/public_api.mjs} +0 -0
  98. 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
  99. package/{esm2015/driver/magento/2.4.1/errors/codes.js → esm2020/driver/magento/2.4.1/errors/codes.mjs} +0 -0
  100. package/{esm2015/driver/magento/2.4.1/errors/map.js → esm2020/driver/magento/2.4.1/errors/map.mjs} +0 -0
  101. package/{esm2015/driver/magento/2.4.1/errors/transform.js → esm2020/driver/magento/2.4.1/errors/transform.mjs} +0 -0
  102. package/{esm2015/driver/magento/2.4.1/index.js → esm2020/driver/magento/2.4.1/index.mjs} +0 -0
  103. 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
  104. 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
  105. package/{esm2015/driver/magento/2.4.1/models/responses/discount.js → esm2020/driver/magento/2.4.1/models/responses/discount.mjs} +0 -0
  106. package/{esm2015/driver/magento/2.4.1/models/responses/order-address.js → esm2020/driver/magento/2.4.1/models/responses/order-address.mjs} +0 -0
  107. 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
  108. 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
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. package/{esm2015/driver/magento/2.4.1/models/responses/order.js → esm2020/driver/magento/2.4.1/models/responses/order.mjs} +0 -0
  118. 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
  119. package/esm2020/driver/magento/2.4.1/order-driver.module.mjs +32 -0
  120. package/esm2020/driver/magento/2.4.1/order.service.mjs +54 -0
  121. package/{esm2015/driver/magento/2.4.1/public_api.js → esm2020/driver/magento/2.4.1/public_api.mjs} +0 -0
  122. package/{esm2015/driver/magento/2.4.1/queries/fragments/order-address.js → esm2020/driver/magento/2.4.1/queries/fragments/order-address.mjs} +2 -2
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. package/{esm2015/driver/magento/2.4.1/queries/fragments/order.js → esm2020/driver/magento/2.4.1/queries/fragments/order.mjs} +2 -2
  136. 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
  137. 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
  138. package/{esm2015/driver/magento/2.4.1/queries/public_api.js → esm2020/driver/magento/2.4.1/queries/public_api.mjs} +0 -0
  139. 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
  140. 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
  141. package/esm2020/driver/magento/2.4.1/transforms/responses/order.mjs +234 -0
  142. package/esm2020/driver/magento/2.4.1/validators/get-orders.mjs +17 -0
  143. package/{esm2015/driver/magento/2.4.1/validators/public_api.js → esm2020/driver/magento/2.4.1/validators/public_api.mjs} +0 -0
  144. package/{esm2015/driver/testing/daffodil-order-driver-testing.js → esm2020/driver/testing/daffodil-order-driver-testing.mjs} +0 -0
  145. package/esm2020/driver/testing/drivers/order-driver.module.mjs +32 -0
  146. package/esm2020/driver/testing/drivers/order.service.mjs +28 -0
  147. package/{esm2015/driver/testing/drivers/public_api.js → esm2020/driver/testing/drivers/public_api.mjs} +0 -0
  148. package/{esm2015/driver/testing/index.js → esm2020/driver/testing/index.mjs} +0 -0
  149. package/{esm2015/driver/testing/public_api.js → esm2020/driver/testing/public_api.mjs} +0 -0
  150. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  151. package/{esm2015/injection-tokens/error-matcher.token.js → esm2020/injection-tokens/error-matcher.token.mjs} +0 -0
  152. package/{esm2015/injection-tokens/public_api.js → esm2020/injection-tokens/public_api.mjs} +0 -0
  153. package/{esm2015/models/composite-order-item.js → esm2020/models/composite-order-item.mjs} +0 -0
  154. package/{esm2015/models/configurable-order-item.js → esm2020/models/configurable-order-item.mjs} +0 -0
  155. package/{esm2015/models/order-address.js → esm2020/models/order-address.mjs} +0 -0
  156. package/{esm2015/models/order-coupon.js → esm2020/models/order-coupon.mjs} +0 -0
  157. package/{esm2015/models/order-credit.js → esm2020/models/order-credit.mjs} +0 -0
  158. package/{esm2015/models/order-invoice.js → esm2020/models/order-invoice.mjs} +0 -0
  159. package/{esm2015/models/order-item.js → esm2020/models/order-item.mjs} +0 -0
  160. package/{esm2015/models/order-payment.js → esm2020/models/order-payment.mjs} +0 -0
  161. package/{esm2015/models/order-shipment-item.js → esm2020/models/order-shipment-item.mjs} +0 -0
  162. package/{esm2015/models/order-shipment-tracking.js → esm2020/models/order-shipment-tracking.mjs} +0 -0
  163. package/{esm2015/models/order-shipment.js → esm2020/models/order-shipment.mjs} +0 -0
  164. package/{esm2015/models/order-shipping-method.js → esm2020/models/order-shipping-method.mjs} +0 -0
  165. package/{esm2015/models/order-total.js → esm2020/models/order-total.mjs} +0 -0
  166. package/{esm2015/models/order.js → esm2020/models/order.mjs} +0 -0
  167. package/{esm2015/models/public_api.js → esm2020/models/public_api.mjs} +0 -0
  168. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  169. package/{esm2015/routing/daffodil-order-routing.js → esm2020/routing/daffodil-order-routing.mjs} +0 -0
  170. 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
  171. package/esm2020/routing/guards/placed-order/placed-order.guard.mjs +38 -0
  172. package/{esm2015/routing/guards/public_api.js → esm2020/routing/guards/public_api.mjs} +0 -0
  173. package/{esm2015/routing/index.js → esm2020/routing/index.mjs} +0 -0
  174. package/esm2020/routing/order-routing.module.mjs +19 -0
  175. package/{esm2015/routing/public_api.js → esm2020/routing/public_api.mjs} +0 -0
  176. package/{esm2015/state/actions/order.actions.js → esm2020/state/actions/order.actions.mjs} +0 -0
  177. package/esm2020/state/daffodil-order-state.mjs +5 -0
  178. package/esm2020/state/effects/order.effects.mjs +36 -0
  179. package/{esm2015/state/facades/order/order-facade.interface.js → esm2020/state/facades/order/order-facade.interface.mjs} +0 -0
  180. package/{esm2015/state/facades/order/order.facade.js → esm2020/state/facades/order/order.facade.mjs} +9 -11
  181. package/{esm2015/state/facades/public_api.js → esm2020/state/facades/public_api.mjs} +0 -0
  182. package/{esm2015/state/index.js → esm2020/state/index.mjs} +0 -0
  183. package/esm2020/state/order-state.module.mjs +33 -0
  184. package/{esm2015/state/public_api.js → esm2020/state/public_api.mjs} +0 -0
  185. package/{esm2015/state/reducers/order/order-initial-state.js → esm2020/state/reducers/order/order-initial-state.mjs} +0 -0
  186. package/{esm2015/state/reducers/order/order-reducer.interface.js → esm2020/state/reducers/order/order-reducer.interface.mjs} +0 -0
  187. package/esm2020/state/reducers/order/order.reducer.mjs +32 -0
  188. package/{esm2015/state/reducers/order/public_api.js → esm2020/state/reducers/order/public_api.mjs} +0 -0
  189. package/{esm2015/state/reducers/order-entities/order-entities-adapter.js → esm2020/state/reducers/order-entities/order-entities-adapter.mjs} +5 -7
  190. package/{esm2015/state/reducers/order-entities/order-entities-initial-state.js → esm2020/state/reducers/order-entities/order-entities-initial-state.mjs} +0 -0
  191. package/{esm2015/state/reducers/order-entities/order-entities-state.interface.js → esm2020/state/reducers/order-entities/order-entities-state.interface.mjs} +0 -0
  192. package/{esm2015/state/reducers/order-entities/order-entities.reducer.js → esm2020/state/reducers/order-entities/order-entities.reducer.mjs} +0 -0
  193. package/{esm2015/state/reducers/order-entities/public_api.js → esm2020/state/reducers/order-entities/public_api.mjs} +0 -0
  194. package/{esm2015/state/reducers/order-reducers.interface.js → esm2020/state/reducers/order-reducers.interface.mjs} +0 -0
  195. package/{esm2015/state/reducers/order-reducers.js → esm2020/state/reducers/order-reducers.mjs} +0 -0
  196. package/{esm2015/state/reducers/order-store-feature-key.js → esm2020/state/reducers/order-store-feature-key.mjs} +0 -0
  197. package/{esm2015/state/reducers/public_api.js → esm2020/state/reducers/public_api.mjs} +0 -0
  198. package/esm2020/state/selectors/order-all.selector.mjs +12 -0
  199. package/esm2020/state/selectors/order-entities.selector.mjs +76 -0
  200. package/esm2020/state/selectors/order-feature.selector.mjs +9 -0
  201. package/esm2020/state/selectors/order.selector.mjs +18 -0
  202. package/{esm2015/state/selectors/public_api.js → esm2020/state/selectors/public_api.mjs} +0 -0
  203. package/{esm2015/state/testing/daffodil-order-state-testing.js → esm2020/state/testing/daffodil-order-state-testing.mjs} +0 -0
  204. package/{esm2015/state/testing/index.js → esm2020/state/testing/index.mjs} +0 -0
  205. package/esm2020/state/testing/mock-order-facade.mjs +81 -0
  206. package/esm2020/state/testing/order-testing.module.mjs +20 -0
  207. package/{esm2015/state/testing/public_api.js → esm2020/state/testing/public_api.mjs} +0 -0
  208. package/{esm2015/testing/daffodil-order-testing.js → esm2020/testing/daffodil-order-testing.mjs} +0 -0
  209. package/esm2020/testing/factories/composite-order-item.factory.mjs +36 -0
  210. package/esm2020/testing/factories/configurable-order-item.factory.mjs +35 -0
  211. package/esm2020/testing/factories/order-address.factory.mjs +25 -0
  212. package/esm2020/testing/factories/order-coupon.factory.mjs +24 -0
  213. package/esm2020/testing/factories/order-invoice.factory.mjs +28 -0
  214. package/{esm2015/testing/factories/order-item.factory.js → esm2020/testing/factories/order-item.factory.mjs} +9 -9
  215. package/{esm2015/testing/factories/order-payment.factory.js → esm2020/testing/factories/order-payment.factory.mjs} +9 -9
  216. package/esm2020/testing/factories/order-shipment-item.factory.mjs +25 -0
  217. package/esm2020/testing/factories/order-shipment-tracking.factory.mjs +28 -0
  218. package/esm2020/testing/factories/order-shipment.factory.mjs +30 -0
  219. package/{esm2015/testing/factories/order-shipping-rate.factory.js → esm2020/testing/factories/order-shipping-rate.factory.mjs} +9 -9
  220. package/esm2020/testing/factories/order-total.factory.mjs +28 -0
  221. package/{esm2015/testing/factories/order.factory.js → esm2020/testing/factories/order.factory.mjs} +9 -9
  222. package/{esm2015/testing/factories/public_api.js → esm2020/testing/factories/public_api.mjs} +0 -0
  223. package/{esm2015/testing/helpers/order-helper.js → esm2020/testing/helpers/order-helper.mjs} +0 -0
  224. package/{esm2015/testing/helpers/public_api.js → esm2020/testing/helpers/public_api.mjs} +0 -0
  225. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  226. package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
  227. package/fesm2015/daffodil-order-driver-in-memory.mjs +117 -0
  228. package/fesm2015/daffodil-order-driver-in-memory.mjs.map +1 -0
  229. package/fesm2015/{daffodil-order-driver-magento-2.4.0.js → daffodil-order-driver-magento-2.4.0.mjs} +31 -21
  230. package/fesm2015/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
  231. package/fesm2015/{daffodil-order-driver-magento-2.4.1.js → daffodil-order-driver-magento-2.4.1.mjs} +31 -21
  232. package/fesm2015/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
  233. package/fesm2015/daffodil-order-driver-testing.mjs +63 -0
  234. package/fesm2015/daffodil-order-driver-testing.mjs.map +1 -0
  235. package/fesm2015/{daffodil-order-driver.js → daffodil-order-driver.mjs} +1 -1
  236. package/fesm2015/daffodil-order-driver.mjs.map +1 -0
  237. package/fesm2015/daffodil-order-routing.mjs +62 -0
  238. package/fesm2015/daffodil-order-routing.mjs.map +1 -0
  239. package/fesm2015/{daffodil-order-state-testing.js → daffodil-order-state-testing.mjs} +22 -13
  240. package/fesm2015/daffodil-order-state-testing.mjs.map +1 -0
  241. package/fesm2015/{daffodil-order-state.js → daffodil-order-state.mjs} +64 -73
  242. package/fesm2015/daffodil-order-state.mjs.map +1 -0
  243. package/fesm2015/daffodil-order-testing.mjs +387 -0
  244. package/fesm2015/daffodil-order-testing.mjs.map +1 -0
  245. package/fesm2015/{daffodil-order.js → daffodil-order.mjs} +1 -1
  246. package/fesm2015/daffodil-order.mjs.map +1 -0
  247. package/fesm2020/daffodil-order-driver-in-memory.mjs +117 -0
  248. package/fesm2020/daffodil-order-driver-in-memory.mjs.map +1 -0
  249. package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs +459 -0
  250. package/fesm2020/daffodil-order-driver-magento-2.4.0.mjs.map +1 -0
  251. package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs +646 -0
  252. package/fesm2020/daffodil-order-driver-magento-2.4.1.mjs.map +1 -0
  253. package/fesm2020/daffodil-order-driver-testing.mjs +63 -0
  254. package/fesm2020/daffodil-order-driver-testing.mjs.map +1 -0
  255. package/fesm2020/daffodil-order-driver.mjs +27 -0
  256. package/fesm2020/daffodil-order-driver.mjs.map +1 -0
  257. package/fesm2020/daffodil-order-routing.mjs +60 -0
  258. package/fesm2020/daffodil-order-routing.mjs.map +1 -0
  259. package/fesm2020/daffodil-order-state-testing.mjs +105 -0
  260. package/fesm2020/daffodil-order-state-testing.mjs.map +1 -0
  261. package/fesm2020/daffodil-order-state.mjs +400 -0
  262. package/fesm2020/daffodil-order-state.mjs.map +1 -0
  263. package/fesm2020/daffodil-order-testing.mjs +387 -0
  264. package/fesm2020/daffodil-order-testing.mjs.map +1 -0
  265. package/fesm2020/daffodil-order.mjs +31 -0
  266. package/fesm2020/daffodil-order.mjs.map +1 -0
  267. package/package.json +98 -14
  268. package/routing/daffodil-order-routing.d.ts +1 -0
  269. package/routing/guards/placed-order/placed-order.guard.d.ts +3 -0
  270. package/routing/order-routing.module.d.ts +4 -0
  271. package/routing/package.json +5 -6
  272. package/state/daffodil-order-state.d.ts +1 -1
  273. package/state/effects/order.effects.d.ts +5 -2
  274. package/state/facades/order/order.facade.d.ts +3 -0
  275. package/state/order-state.module.d.ts +7 -0
  276. package/state/package.json +5 -6
  277. package/state/testing/daffodil-order-state-testing.d.ts +1 -0
  278. package/state/testing/mock-order-facade.d.ts +3 -0
  279. package/state/testing/order-testing.module.d.ts +4 -0
  280. package/state/testing/package.json +5 -6
  281. package/testing/daffodil-order-testing.d.ts +1 -0
  282. package/testing/factories/composite-order-item.factory.d.ts +3 -0
  283. package/testing/factories/configurable-order-item.factory.d.ts +3 -0
  284. package/testing/factories/order-address.factory.d.ts +3 -0
  285. package/testing/factories/order-coupon.factory.d.ts +3 -0
  286. package/testing/factories/order-invoice.factory.d.ts +3 -0
  287. package/testing/factories/order-item.factory.d.ts +3 -0
  288. package/testing/factories/order-payment.factory.d.ts +3 -0
  289. package/testing/factories/order-shipment-item.factory.d.ts +3 -0
  290. package/testing/factories/order-shipment-tracking.factory.d.ts +3 -0
  291. package/testing/factories/order-shipment.factory.d.ts +3 -0
  292. package/testing/factories/order-shipping-rate.factory.d.ts +3 -0
  293. package/testing/factories/order-total.factory.d.ts +3 -0
  294. package/testing/factories/order.factory.d.ts +3 -0
  295. package/testing/package.json +5 -6
  296. package/bundles/daffodil-order-driver-in-memory.umd.js +0 -125
  297. package/bundles/daffodil-order-driver-in-memory.umd.js.map +0 -1
  298. package/bundles/daffodil-order-driver-in-memory.umd.min.js +0 -2
  299. package/bundles/daffodil-order-driver-in-memory.umd.min.js.map +0 -1
  300. package/bundles/daffodil-order-driver-magento-2.4.0.umd.js +0 -657
  301. package/bundles/daffodil-order-driver-magento-2.4.0.umd.js.map +0 -1
  302. package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js +0 -16
  303. package/bundles/daffodil-order-driver-magento-2.4.0.umd.min.js.map +0 -1
  304. package/bundles/daffodil-order-driver-magento-2.4.1.umd.js +0 -737
  305. package/bundles/daffodil-order-driver-magento-2.4.1.umd.js.map +0 -1
  306. package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js +0 -2
  307. package/bundles/daffodil-order-driver-magento-2.4.1.umd.min.js.map +0 -1
  308. package/bundles/daffodil-order-driver-testing.umd.js +0 -67
  309. package/bundles/daffodil-order-driver-testing.umd.js.map +0 -1
  310. package/bundles/daffodil-order-driver-testing.umd.min.js +0 -2
  311. package/bundles/daffodil-order-driver-testing.umd.min.js.map +0 -1
  312. package/bundles/daffodil-order-driver.umd.js +0 -360
  313. package/bundles/daffodil-order-driver.umd.js.map +0 -1
  314. package/bundles/daffodil-order-driver.umd.min.js +0 -16
  315. package/bundles/daffodil-order-driver.umd.min.js.map +0 -1
  316. package/bundles/daffodil-order-routing.umd.js +0 -66
  317. package/bundles/daffodil-order-routing.umd.js.map +0 -1
  318. package/bundles/daffodil-order-routing.umd.min.js +0 -2
  319. package/bundles/daffodil-order-routing.umd.min.js.map +0 -1
  320. package/bundles/daffodil-order-state-testing.umd.js +0 -107
  321. package/bundles/daffodil-order-state-testing.umd.js.map +0 -1
  322. package/bundles/daffodil-order-state-testing.umd.min.js +0 -2
  323. package/bundles/daffodil-order-state-testing.umd.min.js.map +0 -1
  324. package/bundles/daffodil-order-state.umd.js +0 -748
  325. package/bundles/daffodil-order-state.umd.js.map +0 -1
  326. package/bundles/daffodil-order-state.umd.min.js +0 -16
  327. package/bundles/daffodil-order-state.umd.min.js.map +0 -1
  328. package/bundles/daffodil-order-testing.umd.js +0 -766
  329. package/bundles/daffodil-order-testing.umd.js.map +0 -1
  330. package/bundles/daffodil-order-testing.umd.min.js +0 -16
  331. package/bundles/daffodil-order-testing.umd.min.js.map +0 -1
  332. package/bundles/daffodil-order.umd.js +0 -36
  333. package/bundles/daffodil-order.umd.js.map +0 -1
  334. package/bundles/daffodil-order.umd.min.js +0 -2
  335. package/bundles/daffodil-order.umd.min.js.map +0 -1
  336. package/daffodil-order.metadata.json +0 -1
  337. package/driver/daffodil-order-driver.metadata.json +0 -1
  338. package/driver/in-memory/daffodil-order-driver-in-memory.metadata.json +0 -1
  339. package/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.metadata.json +0 -1
  340. package/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.metadata.json +0 -1
  341. package/driver/testing/daffodil-order-driver-testing.metadata.json +0 -1
  342. package/esm2015/driver/in-memory/backend/order.service.js +0 -59
  343. package/esm2015/driver/in-memory/drivers/order-driver.module.js +0 -25
  344. package/esm2015/driver/in-memory/drivers/order.service.js +0 -30
  345. package/esm2015/driver/magento/2.4.0/order-driver.module.js +0 -25
  346. package/esm2015/driver/magento/2.4.0/order.service.js +0 -55
  347. package/esm2015/driver/magento/2.4.0/queries/fragments/order-item.js +0 -27
  348. package/esm2015/driver/magento/2.4.0/validators/get-orders.js +0 -18
  349. package/esm2015/driver/magento/2.4.1/order-driver.module.js +0 -25
  350. package/esm2015/driver/magento/2.4.1/order.service.js +0 -55
  351. package/esm2015/driver/magento/2.4.1/transforms/responses/order.js +0 -207
  352. package/esm2015/driver/magento/2.4.1/validators/get-orders.js +0 -18
  353. package/esm2015/driver/testing/drivers/order-driver.module.js +0 -25
  354. package/esm2015/driver/testing/drivers/order.service.js +0 -30
  355. package/esm2015/routing/guards/placed-order/placed-order.guard.js +0 -40
  356. package/esm2015/routing/order-routing.module.js +0 -12
  357. package/esm2015/state/daffodil-order-state.js +0 -6
  358. package/esm2015/state/effects/order.effects.js +0 -49
  359. package/esm2015/state/order-state.module.js +0 -20
  360. package/esm2015/state/reducers/order/order.reducer.js +0 -21
  361. package/esm2015/state/selectors/order-all.selector.js +0 -10
  362. package/esm2015/state/selectors/order-entities.selector.js +0 -79
  363. package/esm2015/state/selectors/order-feature.selector.js +0 -11
  364. package/esm2015/state/selectors/order.selector.js +0 -21
  365. package/esm2015/state/testing/mock-order-facade.js +0 -79
  366. package/esm2015/state/testing/order-testing.module.js +0 -13
  367. package/esm2015/testing/factories/composite-order-item.factory.js +0 -36
  368. package/esm2015/testing/factories/configurable-order-item.factory.js +0 -35
  369. package/esm2015/testing/factories/order-address.factory.js +0 -25
  370. package/esm2015/testing/factories/order-coupon.factory.js +0 -24
  371. package/esm2015/testing/factories/order-invoice.factory.js +0 -28
  372. package/esm2015/testing/factories/order-shipment-item.factory.js +0 -25
  373. package/esm2015/testing/factories/order-shipment-tracking.factory.js +0 -28
  374. package/esm2015/testing/factories/order-shipment.factory.js +0 -30
  375. package/esm2015/testing/factories/order-total.factory.js +0 -28
  376. package/fesm2015/daffodil-order-driver-in-memory.js +0 -114
  377. package/fesm2015/daffodil-order-driver-in-memory.js.map +0 -1
  378. package/fesm2015/daffodil-order-driver-magento-2.4.0.js.map +0 -1
  379. package/fesm2015/daffodil-order-driver-magento-2.4.1.js.map +0 -1
  380. package/fesm2015/daffodil-order-driver-testing.js +0 -58
  381. package/fesm2015/daffodil-order-driver-testing.js.map +0 -1
  382. package/fesm2015/daffodil-order-driver.js.map +0 -1
  383. package/fesm2015/daffodil-order-routing.js +0 -54
  384. package/fesm2015/daffodil-order-routing.js.map +0 -1
  385. package/fesm2015/daffodil-order-state-testing.js.map +0 -1
  386. package/fesm2015/daffodil-order-state.js.map +0 -1
  387. package/fesm2015/daffodil-order-testing.js +0 -386
  388. package/fesm2015/daffodil-order-testing.js.map +0 -1
  389. package/fesm2015/daffodil-order.js.map +0 -1
  390. package/routing/daffodil-order-routing.metadata.json +0 -1
  391. package/state/daffodil-order-state.metadata.json +0 -1
  392. package/state/testing/daffodil-order-state-testing.metadata.json +0 -1
  393. package/testing/daffodil-order-testing.metadata.json +0 -1
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order" />
4
5
  export * from './index';
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order/driver" />
4
5
  export * from './index';
@@ -2,6 +2,7 @@ import { InMemoryDbService, RequestInfo } from 'angular-in-memory-web-api';
2
2
  import { DaffInMemoryDataServiceInterface } from '@daffodil/core/testing';
3
3
  import { DaffOrder } from '@daffodil/order';
4
4
  import { DaffOrderFactory } from '@daffodil/order/testing';
5
+ import * as i0 from "@angular/core";
5
6
  /**
6
7
  * An in-memory service that stubs out the backend services for getting orders.
7
8
  *
@@ -24,4 +25,6 @@ export declare class DaffInMemoryBackendOrderService implements InMemoryDbServic
24
25
  get(reqInfo: RequestInfo): any;
25
26
  private getOrder;
26
27
  private listOrders;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendOrderService, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryBackendOrderService>;
27
30
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order/driver/in-memory" />
4
5
  export * from './index';
@@ -1,4 +1,9 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
2
4
  export declare class DaffOrderInMemoryDriverModule {
3
5
  static forRoot(): ModuleWithProviders<DaffOrderInMemoryDriverModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderInMemoryDriverModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderInMemoryDriverModule, never, [typeof i1.CommonModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderInMemoryDriverModule>;
4
9
  }
@@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { DaffOrder } from '@daffodil/order';
4
4
  import { DaffOrderServiceInterface } from '@daffodil/order/driver';
5
+ import * as i0 from "@angular/core";
5
6
  /**
6
7
  * @inheritdoc
7
8
  */
@@ -11,4 +12,6 @@ export declare class DaffInMemoryOrderService implements DaffOrderServiceInterfa
11
12
  constructor(http: HttpClient);
12
13
  get(orderId: DaffOrder['id']): Observable<DaffOrder>;
13
14
  list(): Observable<DaffOrder[]>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryOrderService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryOrderService>;
14
17
  }
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@daffodil/order/driver/in-memory",
3
- "main": "../../bundles/daffodil-order-driver-in-memory.umd.js",
4
- "module": "../../fesm2015/daffodil-order-driver-in-memory.js",
5
- "es2015": "../../fesm2015/daffodil-order-driver-in-memory.js",
6
- "esm2015": "../../esm2015/driver/in-memory/daffodil-order-driver-in-memory.js",
7
- "fesm2015": "../../fesm2015/daffodil-order-driver-in-memory.js",
3
+ "module": "../../fesm2015/daffodil-order-driver-in-memory.mjs",
4
+ "es2020": "../../fesm2020/daffodil-order-driver-in-memory.mjs",
5
+ "esm2020": "../../esm2020/driver/in-memory/daffodil-order-driver-in-memory.mjs",
6
+ "fesm2020": "../../fesm2020/daffodil-order-driver-in-memory.mjs",
7
+ "fesm2015": "../../fesm2015/daffodil-order-driver-in-memory.mjs",
8
8
  "typings": "daffodil-order-driver-in-memory.d.ts",
9
- "metadata": "daffodil-order-driver-in-memory.metadata.json",
10
9
  "sideEffects": false
11
10
  }
@@ -0,0 +1,5 @@
1
+ # @daffodil/order/driver/magento/2.4.0
2
+
3
+ A Daffodil order driver for interfacing with a Magento backend running version 2.4.0 or lower.
4
+
5
+ Magento v2.4.0 does not provide a GraphQL orders endpoint. [graycoreio/magento2-orders-graphql](https://github.com/graycoreio/magento2-orders-graphql) should be used to add support for this until Magento is upgraded to [v2.4.1](../2.4.1/README.md).
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order/driver/magento/2.4.0" />
4
5
  export * from './index';
@@ -1 +1 @@
1
- export declare function transformMagentoOrderError(error: any): import("../../../../../../../dist/core").DaffError;
1
+ export declare function transformMagentoOrderError(error: any): import("@daffodil/core").DaffError;
@@ -1,4 +1,9 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
2
4
  export declare class DaffOrderMagentoDriverModule {
3
5
  static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoDriverModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderMagentoDriverModule>;
4
9
  }
@@ -1,9 +1,10 @@
1
- import { Apollo } from 'apollo-angular';
1
+ import { Apollo } from '@damienwebdev/apollo-angular';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { Observable } from 'rxjs';
4
4
  import { DaffCart } from '@daffodil/cart';
5
5
  import { DaffOrder } from '@daffodil/order';
6
6
  import { DaffOrderServiceInterface } from '@daffodil/order/driver';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * A service for making Magento GraphQL queries for orders.
9
10
  *
@@ -15,4 +16,6 @@ export declare class DaffOrderMagentoService implements DaffOrderServiceInterfac
15
16
  constructor(apollo: Apollo, extraOrderFragments: DocumentNode[]);
16
17
  list(cartId?: DaffCart['id']): Observable<DaffOrder[]>;
17
18
  get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderMagentoService>;
18
21
  }
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@daffodil/order/driver/magento/2.4.0",
3
- "main": "../../../bundles/daffodil-order-driver-magento-2.4.0.umd.js",
4
- "module": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.js",
5
- "es2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.js",
6
- "esm2015": "../../../esm2015/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.js",
7
- "fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.js",
3
+ "module": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.mjs",
4
+ "es2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.0.mjs",
5
+ "esm2020": "../../../esm2020/driver/magento/2.4.0/daffodil-order-driver-magento-2.4.0.mjs",
6
+ "fesm2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.0.mjs",
7
+ "fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.0.mjs",
8
8
  "typings": "daffodil-order-driver-magento-2.4.0.d.ts",
9
- "metadata": "daffodil-order-driver-magento-2.4.0.metadata.json",
10
9
  "sideEffects": false
11
10
  }
@@ -1 +1 @@
1
- export declare const orderAddressFragment: import("graphql").DocumentNode;
1
+ export declare const orderAddressFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderInvoiceFragment: import("graphql").DocumentNode;
1
+ export declare const orderInvoiceFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderPaymentFragment: import("graphql").DocumentNode;
1
+ export declare const orderPaymentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentTrackingFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentTrackingFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderFragment: import("graphql").DocumentNode;
1
+ export declare const orderFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1,2 +1,2 @@
1
1
  import { DocumentNode } from 'graphql';
2
- export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => DocumentNode;
2
+ export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -0,0 +1,5 @@
1
+ # @daffodil/order/driver/magento/2.4.1
2
+
3
+ A Daffodil order driver for interfacing with a Magento backend running version 2.4.1 or higher.
4
+
5
+ Magento v2.4.1 does not provide support for guest orders in their GraphQL orders endpoint. [graycoreio/magento2-guest-orders-graphql](https://github.com/graycoreio/magento2-guest-orders-graphql) should be used to add support for guest orders.
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order/driver/magento/2.4.1" />
4
5
  export * from './index';
@@ -1 +1 @@
1
- export declare function transformMagentoOrderError(error: any): import("../../../../../../../dist/core").DaffError;
1
+ export declare function transformMagentoOrderError(error: any): import("@daffodil/core").DaffError;
@@ -1,4 +1,9 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
2
4
  export declare class DaffOrderMagentoDriverModule {
3
5
  static forRoot(): ModuleWithProviders<DaffOrderMagentoDriverModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoDriverModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderMagentoDriverModule, never, [typeof i1.CommonModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderMagentoDriverModule>;
4
9
  }
@@ -1,9 +1,10 @@
1
- import { Apollo } from 'apollo-angular';
1
+ import { Apollo } from '@damienwebdev/apollo-angular';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { Observable } from 'rxjs';
4
4
  import { DaffCart } from '@daffodil/cart';
5
5
  import { DaffOrder } from '@daffodil/order';
6
6
  import { DaffOrderServiceInterface } from '@daffodil/order/driver';
7
+ import * as i0 from "@angular/core";
7
8
  /**
8
9
  * A service for making Magento GraphQL queries for orders.
9
10
  *
@@ -15,4 +16,6 @@ export declare class DaffOrderMagentoService implements DaffOrderServiceInterfac
15
16
  constructor(apollo: Apollo, extraOrderFragments: DocumentNode[]);
16
17
  list(cartId?: DaffCart['id']): Observable<DaffOrder[]>;
17
18
  get(orderId: DaffOrder['id'], cartId?: DaffCart['id']): Observable<DaffOrder>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderMagentoService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderMagentoService>;
18
21
  }
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@daffodil/order/driver/magento/2.4.1",
3
- "main": "../../../bundles/daffodil-order-driver-magento-2.4.1.umd.js",
4
- "module": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.js",
5
- "es2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.js",
6
- "esm2015": "../../../esm2015/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.js",
7
- "fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.js",
3
+ "module": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.mjs",
4
+ "es2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.1.mjs",
5
+ "esm2020": "../../../esm2020/driver/magento/2.4.1/daffodil-order-driver-magento-2.4.1.mjs",
6
+ "fesm2020": "../../../fesm2020/daffodil-order-driver-magento-2.4.1.mjs",
7
+ "fesm2015": "../../../fesm2015/daffodil-order-driver-magento-2.4.1.mjs",
8
8
  "typings": "daffodil-order-driver-magento-2.4.1.d.ts",
9
- "metadata": "daffodil-order-driver-magento-2.4.1.metadata.json",
10
9
  "sideEffects": false
11
10
  }
@@ -1 +1 @@
1
- export declare const orderAddressFragment: import("graphql").DocumentNode;
1
+ export declare const orderAddressFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderCreditItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderCreditItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderCreditTotalFragment: import("graphql").DocumentNode;
1
+ export declare const orderCreditTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderCreditFragment: import("graphql").DocumentNode;
1
+ export declare const orderCreditFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderInvoiceItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderInvoiceItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderInvoiceTotalFragment: import("graphql").DocumentNode;
1
+ export declare const orderInvoiceTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderInvoiceFragment: import("graphql").DocumentNode;
1
+ export declare const orderInvoiceFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1,2 +1,2 @@
1
- export declare const orderBundleItemSelectedOptionFragment: import("graphql").DocumentNode;
2
- export declare const orderItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderBundleItemSelectedOptionFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
2
+ export declare const orderItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderPaymentFragment: import("graphql").DocumentNode;
1
+ export declare const orderPaymentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentItemFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentItemFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentTrackingFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentTrackingFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderShipmentFragment: import("graphql").DocumentNode;
1
+ export declare const orderShipmentFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderTotalFragment: import("graphql").DocumentNode;
1
+ export declare const orderTotalFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1 +1 @@
1
- export declare const orderFragment: import("graphql").DocumentNode;
1
+ export declare const orderFragment: import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1,2 +1,2 @@
1
1
  import { DocumentNode } from 'graphql';
2
- export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => DocumentNode;
2
+ export declare const getGuestOrders: (extraOrderFragments?: DocumentNode[]) => import("@graphql-typed-document-node/core").TypedDocumentNode<unknown, unknown>;
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@daffodil/order/driver",
3
- "main": "../bundles/daffodil-order-driver.umd.js",
4
- "module": "../fesm2015/daffodil-order-driver.js",
5
- "es2015": "../fesm2015/daffodil-order-driver.js",
6
- "esm2015": "../esm2015/driver/daffodil-order-driver.js",
7
- "fesm2015": "../fesm2015/daffodil-order-driver.js",
3
+ "module": "../fesm2015/daffodil-order-driver.mjs",
4
+ "es2020": "../fesm2020/daffodil-order-driver.mjs",
5
+ "esm2020": "../esm2020/driver/daffodil-order-driver.mjs",
6
+ "fesm2020": "../fesm2020/daffodil-order-driver.mjs",
7
+ "fesm2015": "../fesm2015/daffodil-order-driver.mjs",
8
8
  "typings": "daffodil-order-driver.d.ts",
9
- "metadata": "daffodil-order-driver.metadata.json",
10
9
  "sideEffects": false
11
10
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@daffodil/order/driver/testing" />
4
5
  export * from './index';
@@ -1,4 +1,9 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "@angular/common";
2
4
  export declare class DaffOrderTestingDriverModule {
3
5
  static forRoot(): ModuleWithProviders<DaffOrderTestingDriverModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderTestingDriverModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderTestingDriverModule, never, [typeof i1.CommonModule], never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderTestingDriverModule>;
4
9
  }
@@ -2,6 +2,7 @@ import { Observable } from 'rxjs';
2
2
  import { DaffOrder } from '@daffodil/order';
3
3
  import { DaffOrderServiceInterface } from '@daffodil/order/driver';
4
4
  import { DaffOrderFactory } from '@daffodil/order/testing';
5
+ import * as i0 from "@angular/core";
5
6
  /**
6
7
  * @inheritdoc
7
8
  */
@@ -10,4 +11,6 @@ export declare class DaffTestingOrderService implements DaffOrderServiceInterfac
10
11
  constructor(orderFactory: DaffOrderFactory);
11
12
  get(orderId: DaffOrder['id']): Observable<DaffOrder>;
12
13
  list(): Observable<DaffOrder[]>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingOrderService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingOrderService>;
13
16
  }
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@daffodil/order/driver/testing",
3
- "main": "../../bundles/daffodil-order-driver-testing.umd.js",
4
- "module": "../../fesm2015/daffodil-order-driver-testing.js",
5
- "es2015": "../../fesm2015/daffodil-order-driver-testing.js",
6
- "esm2015": "../../esm2015/driver/testing/daffodil-order-driver-testing.js",
7
- "fesm2015": "../../fesm2015/daffodil-order-driver-testing.js",
3
+ "module": "../../fesm2015/daffodil-order-driver-testing.mjs",
4
+ "es2020": "../../fesm2020/daffodil-order-driver-testing.mjs",
5
+ "esm2020": "../../esm2020/driver/testing/daffodil-order-driver-testing.mjs",
6
+ "fesm2020": "../../fesm2020/daffodil-order-driver-testing.mjs",
7
+ "fesm2015": "../../fesm2015/daffodil-order-driver-testing.mjs",
8
8
  "typings": "daffodil-order-driver-testing.d.ts",
9
- "metadata": "daffodil-order-driver-testing.metadata.json",
10
9
  "sideEffects": false
11
10
  }
@@ -0,0 +1,57 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { STATUS, } from 'angular-in-memory-web-api';
3
+ import { DaffOrderFactory } from '@daffodil/order/testing';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@daffodil/order/testing";
6
+ /**
7
+ * An in-memory service that stubs out the backend services for getting orders.
8
+ *
9
+ * @inheritdoc
10
+ */
11
+ export class DaffInMemoryBackendOrderService {
12
+ constructor(orderFactory) {
13
+ this.orderFactory = orderFactory;
14
+ this.orders = this.orderFactory.createMany(5);
15
+ }
16
+ /**
17
+ * Creates a fake database of orders for the order inmemory backend service.
18
+ *
19
+ * @docs-private
20
+ * @returns A fake database of an array of orders
21
+ */
22
+ createDb(reqInfo) {
23
+ if (reqInfo) {
24
+ const seedData = reqInfo.utils.getJsonBody(reqInfo.req).orders;
25
+ if (seedData) {
26
+ this.orders = seedData;
27
+ }
28
+ }
29
+ return {
30
+ orders: this.orders,
31
+ };
32
+ }
33
+ /**
34
+ * Responds to GET requests.
35
+ */
36
+ get(reqInfo) {
37
+ return reqInfo.utils.createResponse$(() => ({
38
+ body: reqInfo.id ? this.getOrder(reqInfo) : this.listOrders(reqInfo),
39
+ status: STATUS.OK,
40
+ }));
41
+ }
42
+ getOrder(reqInfo) {
43
+ return reqInfo.collection.find(order => order.id === reqInfo.id);
44
+ }
45
+ listOrders(reqInfo) {
46
+ return reqInfo.collection;
47
+ }
48
+ }
49
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, deps: [{ token: i1.DaffOrderFactory }], target: i0.ɵɵFactoryTarget.Injectable });
50
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, providedIn: 'root' });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendOrderService, decorators: [{
52
+ type: Injectable,
53
+ args: [{
54
+ providedIn: 'root',
55
+ }]
56
+ }], ctorParameters: function () { return [{ type: i1.DaffOrderFactory }]; } });
57
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvZHJpdmVyL2luLW1lbW9yeS9zcmMvYmFja2VuZC9vcmRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUdMLE1BQU0sR0FDUCxNQUFNLDJCQUEyQixDQUFDO0FBSW5DLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7QUFFM0Q7Ozs7R0FJRztBQUlILE1BQU0sT0FBTywrQkFBK0I7SUFHMUMsW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BzdGF0dXM6IFNUQVRVUy5PSyxcbiAgICB9KSk7XG4gIH1cblxuICBwcml2YXRlIGdldE9yZGVyKHJlcUluZm86IFJlcXVlc3RJbmZvKSB7XG4gICAgcmV0dXJuIHJlcUluZm8uY29sbGVjdGlvbi5maW5kKG9yZGVyID0+IG9yZGVyLmlkID09PSByZXFJbmZvLmlkKTtcbiAgfVxuXG4gIHByaXZhdGUgbGlzdE9yZGVycyhyZXFJbmZvOiBSZXF1ZXN0SW5mbykge1xuICAgIHJldHVybiByZXFJbmZvLmNvbGxlY3Rpb247XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,32 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule, } from '@angular/core';
3
+ import { DaffOrderDriver } from '@daffodil/order/driver';
4
+ import { DaffInMemoryOrderService } from './order.service';
5
+ import * as i0 from "@angular/core";
6
+ export class DaffOrderInMemoryDriverModule {
7
+ static forRoot() {
8
+ return {
9
+ ngModule: DaffOrderInMemoryDriverModule,
10
+ providers: [
11
+ {
12
+ provide: DaffOrderDriver,
13
+ useExisting: DaffInMemoryOrderService,
14
+ },
15
+ ],
16
+ };
17
+ }
18
+ }
19
+ /** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20
+ /** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, imports: [CommonModule] });
21
+ /** @nocollapse */ /** @nocollapse */ DaffOrderInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, imports: [[
22
+ CommonModule,
23
+ ]] });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffOrderInMemoryDriverModule, decorators: [{
25
+ type: NgModule,
26
+ args: [{
27
+ imports: [
28
+ CommonModule,
29
+ ],
30
+ }]
31
+ }] });
32
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItZHJpdmVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvZHJpdmVyL2luLW1lbW9yeS9zcmMvZHJpdmVycy9vcmRlci1kcml2ZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQ0wsUUFBUSxHQUVULE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUV6RCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFPM0QsTUFBTSxPQUFPLDZCQUE2QjtJQUN4QyxNQUFNLENBQUMsT0FBTztRQUNaLE9BQU87WUFDTCxRQUFRLEVBQUUsNkJBQTZCO1lBQ3ZDLFNBQVMsRUFBRTtnQkFDVDtvQkFDRSxPQUFPLEVBQUUsZUFBZTtvQkFDeEIsV0FBVyxFQUFFLHdCQUF3QjtpQkFDdEM7YUFDRjtTQUNGLENBQUM7SUFDSixDQUFDOztnS0FYVSw2QkFBNkI7aUtBQTdCLDZCQUE2QixZQUh0QyxZQUFZO2lLQUdILDZCQUE2QixZQUovQjtZQUNQLFlBQVk7U0FDYjsyRkFFVSw2QkFBNkI7a0JBTHpDLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHtcbiAgTmdNb2R1bGUsXG4gIE1vZHVsZVdpdGhQcm92aWRlcnMsXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQgeyBEYWZmT3JkZXJEcml2ZXIgfSBmcm9tICdAZGFmZm9kaWwvb3JkZXIvZHJpdmVyJztcblxuaW1wb3J0IHsgRGFmZkluTWVtb3J5T3JkZXJTZXJ2aWNlIH0gZnJvbSAnLi9vcmRlci5zZXJ2aWNlJztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZk9yZGVySW5NZW1vcnlEcml2ZXJNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdCgpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPERhZmZPcmRlckluTWVtb3J5RHJpdmVyTW9kdWxlPiB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5nTW9kdWxlOiBEYWZmT3JkZXJJbk1lbW9yeURyaXZlck1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGFmZk9yZGVyRHJpdmVyLFxuICAgICAgICAgIHVzZUV4aXN0aW5nOiBEYWZmSW5NZW1vcnlPcmRlclNlcnZpY2UsXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,28 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/common/http";
5
+ /**
6
+ * @inheritdoc
7
+ */
8
+ export class DaffInMemoryOrderService {
9
+ constructor(http) {
10
+ this.http = http;
11
+ this.url = '/api/orders';
12
+ }
13
+ get(orderId) {
14
+ return this.http.get(`${this.url}/${orderId}`);
15
+ }
16
+ list() {
17
+ return this.http.get(`${this.url}/`);
18
+ }
19
+ }
20
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
21
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, providedIn: 'root' });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryOrderService, decorators: [{
23
+ type: Injectable,
24
+ args: [{
25
+ providedIn: 'root',
26
+ }]
27
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvb3JkZXIvZHJpdmVyL2luLW1lbW9yeS9zcmMvZHJpdmVycy9vcmRlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNsRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFNM0M7O0dBRUc7QUFJSCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DLFlBQW9CLElBQWdCO1FBQWhCLFNBQUksR0FBSixJQUFJLENBQVk7UUFGcEMsUUFBRyxHQUFHLGFBQWEsQ0FBQztJQUVtQixDQUFDO0lBR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