@daffodil/geography 0.39.12 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/daffodil-geography.d.ts +1 -0
  2. package/driver/daffodil-geography-driver.d.ts +1 -0
  3. package/driver/in-memory/backend/geography.service.d.ts +3 -0
  4. package/driver/in-memory/daffodil-geography-driver-in-memory.d.ts +1 -0
  5. package/driver/in-memory/drivers/geography-driver.module.d.ts +5 -0
  6. package/driver/in-memory/drivers/geography.service.d.ts +3 -0
  7. package/driver/in-memory/package.json +5 -6
  8. package/driver/magento/daffodil-geography-driver-magento.d.ts +1 -0
  9. package/driver/magento/errors/transform.d.ts +1 -1
  10. package/driver/magento/geography-driver.module.d.ts +5 -0
  11. package/driver/magento/geography.service.d.ts +3 -0
  12. package/driver/magento/package.json +5 -6
  13. package/driver/magento/queries/fragments/country.d.ts +1 -1
  14. package/driver/magento/queries/fragments/region.d.ts +1 -1
  15. package/driver/magento/queries/get-countries.d.ts +1 -1
  16. package/driver/magento/queries/get-country.d.ts +1 -1
  17. package/driver/magento/transforms/responses/country.service.d.ts +3 -0
  18. package/driver/magento/transforms/responses/subdivision.service.d.ts +3 -0
  19. package/driver/package.json +5 -6
  20. package/driver/testing/daffodil-geography-driver-testing.d.ts +1 -0
  21. package/driver/testing/drivers/geography-driver.module.d.ts +5 -0
  22. package/driver/testing/drivers/geography.service.d.ts +3 -0
  23. package/driver/testing/package.json +5 -6
  24. package/{esm2015/comparators/address.js → esm2020/comparators/address.mjs} +0 -0
  25. package/{esm2015/comparators/personal-address.js → esm2020/comparators/personal-address.mjs} +0 -0
  26. package/{esm2015/comparators/public_api.js → esm2020/comparators/public_api.mjs} +0 -0
  27. package/{esm2015/daffodil-geography.js → esm2020/daffodil-geography.mjs} +0 -0
  28. package/{esm2015/driver/daffodil-geography-driver.js → esm2020/driver/daffodil-geography-driver.mjs} +0 -0
  29. package/{esm2015/driver/errors/country-not-found.js → esm2020/driver/errors/country-not-found.mjs} +0 -0
  30. package/{esm2015/driver/errors/invalid-api-response.js → esm2020/driver/errors/invalid-api-response.mjs} +0 -0
  31. package/{esm2015/driver/errors/public_api.js → esm2020/driver/errors/public_api.mjs} +0 -0
  32. package/esm2020/driver/in-memory/backend/geography.service.mjs +59 -0
  33. package/{esm2015/driver/in-memory/daffodil-geography-driver-in-memory.js → esm2020/driver/in-memory/daffodil-geography-driver-in-memory.mjs} +0 -0
  34. package/esm2020/driver/in-memory/drivers/geography-driver.module.mjs +32 -0
  35. package/esm2020/driver/in-memory/drivers/geography.service.mjs +31 -0
  36. package/{esm2015/driver/in-memory/drivers/public_api.js → esm2020/driver/in-memory/drivers/public_api.mjs} +0 -0
  37. package/{esm2015/driver/in-memory/index.js → esm2020/driver/in-memory/index.mjs} +0 -0
  38. package/{esm2015/driver/in-memory/public_api.js → esm2020/driver/in-memory/public_api.mjs} +0 -0
  39. package/{esm2015/driver/index.js → esm2020/driver/index.mjs} +0 -0
  40. package/{esm2015/driver/interfaces/geography-service.interface.js → esm2020/driver/interfaces/geography-service.interface.mjs} +0 -0
  41. package/{esm2015/driver/magento/daffodil-geography-driver-magento.js → esm2020/driver/magento/daffodil-geography-driver-magento.mjs} +0 -0
  42. package/{esm2015/driver/magento/errors/codes.js → esm2020/driver/magento/errors/codes.mjs} +0 -0
  43. package/{esm2015/driver/magento/errors/map.js → esm2020/driver/magento/errors/map.mjs} +0 -0
  44. package/{esm2015/driver/magento/errors/transform.js → esm2020/driver/magento/errors/transform.mjs} +0 -0
  45. package/esm2020/driver/magento/geography-driver.module.mjs +32 -0
  46. package/esm2020/driver/magento/geography.service.mjs +45 -0
  47. package/{esm2015/driver/magento/index.js → esm2020/driver/magento/index.mjs} +0 -0
  48. package/{esm2015/driver/magento/models/responses/country.js → esm2020/driver/magento/models/responses/country.mjs} +0 -0
  49. package/{esm2015/driver/magento/models/responses/public_api.js → esm2020/driver/magento/models/responses/public_api.mjs} +0 -0
  50. package/{esm2015/driver/magento/models/responses/region.js → esm2020/driver/magento/models/responses/region.mjs} +0 -0
  51. package/{esm2015/driver/magento/public_api.js → esm2020/driver/magento/public_api.mjs} +0 -0
  52. package/{esm2015/driver/magento/queries/fragments/country.js → esm2020/driver/magento/queries/fragments/country.mjs} +0 -0
  53. package/{esm2015/driver/magento/queries/fragments/public_api.js → esm2020/driver/magento/queries/fragments/public_api.mjs} +0 -0
  54. package/{esm2015/driver/magento/queries/fragments/region.js → esm2020/driver/magento/queries/fragments/region.mjs} +0 -0
  55. package/{esm2015/driver/magento/queries/get-countries.js → esm2020/driver/magento/queries/get-countries.mjs} +0 -0
  56. package/{esm2015/driver/magento/queries/get-country.js → esm2020/driver/magento/queries/get-country.mjs} +0 -0
  57. package/{esm2015/driver/magento/queries/public_api.js → esm2020/driver/magento/queries/public_api.mjs} +0 -0
  58. package/{esm2015/driver/magento/queries/responses/get-countries.js → esm2020/driver/magento/queries/responses/get-countries.mjs} +0 -0
  59. package/{esm2015/driver/magento/queries/responses/get-country.js → esm2020/driver/magento/queries/responses/get-country.mjs} +0 -0
  60. package/{esm2015/driver/magento/queries/responses/public_api.js → esm2020/driver/magento/queries/responses/public_api.mjs} +0 -0
  61. package/esm2020/driver/magento/transforms/responses/country.service.mjs +38 -0
  62. package/esm2020/driver/magento/transforms/responses/subdivision.service.mjs +27 -0
  63. package/{esm2015/driver/magento/validators/get-countries.js → esm2020/driver/magento/validators/get-countries.mjs} +0 -0
  64. package/{esm2015/driver/magento/validators/public_api.js → esm2020/driver/magento/validators/public_api.mjs} +0 -0
  65. package/{esm2015/driver/testing/daffodil-geography-driver-testing.js → esm2020/driver/testing/daffodil-geography-driver-testing.mjs} +0 -0
  66. package/esm2020/driver/testing/drivers/geography-driver.module.mjs +32 -0
  67. package/esm2020/driver/testing/drivers/geography.service.mjs +32 -0
  68. package/{esm2015/driver/testing/drivers/public_api.js → esm2020/driver/testing/drivers/public_api.mjs} +0 -0
  69. package/{esm2015/driver/testing/index.js → esm2020/driver/testing/index.mjs} +0 -0
  70. package/{esm2015/driver/testing/public_api.js → esm2020/driver/testing/public_api.mjs} +0 -0
  71. package/{esm2015/index.js → esm2020/index.mjs} +0 -0
  72. package/{esm2015/injection-tokens/error-matcher.token.js → esm2020/injection-tokens/error-matcher.token.mjs} +0 -0
  73. package/{esm2015/injection-tokens/public_api.js → esm2020/injection-tokens/public_api.mjs} +0 -0
  74. package/{esm2015/models/address.js → esm2020/models/address.mjs} +0 -0
  75. package/{esm2015/models/country.js → esm2020/models/country.mjs} +0 -0
  76. package/{esm2015/models/personal-address.js → esm2020/models/personal-address.mjs} +0 -0
  77. package/{esm2015/models/public_api.js → esm2020/models/public_api.mjs} +0 -0
  78. package/{esm2015/models/subdivision.js → esm2020/models/subdivision.mjs} +0 -0
  79. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  80. package/{esm2015/state/actions/geography.actions.js → esm2020/state/actions/geography.actions.mjs} +0 -0
  81. package/{esm2015/state/actions/public_api.js → esm2020/state/actions/public_api.mjs} +0 -0
  82. package/esm2020/state/daffodil-geography-state.mjs +5 -0
  83. package/esm2020/state/effects/geography.effects.mjs +30 -0
  84. package/{esm2015/state/facades/geography/geography-facade.interface.js → esm2020/state/facades/geography/geography-facade.interface.mjs} +0 -0
  85. package/esm2020/state/facades/geography/geography.facade.mjs +44 -0
  86. package/esm2020/state/geography-state.module.mjs +30 -0
  87. package/{esm2015/state/index.js → esm2020/state/index.mjs} +0 -0
  88. package/{esm2015/state/reducers/country-entities/country-entities-adapter.js → esm2020/state/reducers/country-entities/country-entities-adapter.mjs} +5 -7
  89. package/{esm2015/state/reducers/country-entities/country-entities-initial-state.js → esm2020/state/reducers/country-entities/country-entities-initial-state.mjs} +0 -0
  90. package/{esm2015/state/reducers/country-entities/country-entities-state.interface.js → esm2020/state/reducers/country-entities/country-entities-state.interface.mjs} +0 -0
  91. package/esm2020/state/reducers/country-entities/country-entities.reducer.mjs +29 -0
  92. package/{esm2015/state/reducers/country-entities/public_api.js → esm2020/state/reducers/country-entities/public_api.mjs} +0 -0
  93. package/{esm2015/state/reducers/geography/geography-initial-state.js → esm2020/state/reducers/geography/geography-initial-state.mjs} +0 -0
  94. package/{esm2015/state/reducers/geography/geography-state.interface.js → esm2020/state/reducers/geography/geography-state.interface.mjs} +0 -0
  95. package/{esm2015/state/reducers/geography/geography.reducer.js → esm2020/state/reducers/geography/geography.reducer.mjs} +13 -5
  96. package/{esm2015/state/reducers/geography/public_api.js → esm2020/state/reducers/geography/public_api.mjs} +0 -0
  97. package/{esm2015/state/reducers/geography-reducers-state.interface.js → esm2020/state/reducers/geography-reducers-state.interface.mjs} +0 -0
  98. package/{esm2015/state/reducers/geography-reducers.js → esm2020/state/reducers/geography-reducers.mjs} +0 -0
  99. package/{esm2015/state/reducers/geography-store-feature-key.js → esm2020/state/reducers/geography-store-feature-key.mjs} +0 -0
  100. package/{esm2015/state/reducers/public_api.js → esm2020/state/reducers/public_api.mjs} +0 -0
  101. package/esm2020/state/selectors/country-entities.selector.mjs +48 -0
  102. package/esm2020/state/selectors/geography-all.selector.mjs +12 -0
  103. package/esm2020/state/selectors/geography-feature.selector.mjs +9 -0
  104. package/esm2020/state/selectors/geography.selector.mjs +18 -0
  105. package/{esm2015/state/selectors/public_api.js → esm2020/state/selectors/public_api.mjs} +0 -0
  106. package/{esm2015/state/testing/daffodil-geography-state-testing.js → esm2020/state/testing/daffodil-geography-state-testing.mjs} +0 -0
  107. package/esm2020/state/testing/geography-testing.module.mjs +20 -0
  108. package/{esm2015/state/testing/index.js → esm2020/state/testing/index.mjs} +0 -0
  109. package/esm2020/state/testing/mock-geography-facade.mjs +34 -0
  110. package/{esm2015/state/testing/public_api.js → esm2020/state/testing/public_api.mjs} +0 -0
  111. package/{esm2015/testing/daffodil-geography-testing.js → esm2020/testing/daffodil-geography-testing.mjs} +0 -0
  112. package/esm2020/testing/factories/address.factory.mjs +28 -0
  113. package/esm2020/testing/factories/country.factory.mjs +28 -0
  114. package/esm2020/testing/factories/personal-address.factory.mjs +31 -0
  115. package/{esm2015/testing/factories/public_api.js → esm2020/testing/factories/public_api.mjs} +0 -0
  116. package/esm2020/testing/factories/subdivision.factory.mjs +25 -0
  117. package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
  118. package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
  119. package/fesm2015/daffodil-geography-driver-in-memory.mjs +121 -0
  120. package/fesm2015/daffodil-geography-driver-in-memory.mjs.map +1 -0
  121. package/fesm2015/{daffodil-geography-driver-magento.js → daffodil-geography-driver-magento.mjs} +44 -39
  122. package/fesm2015/daffodil-geography-driver-magento.mjs.map +1 -0
  123. package/fesm2015/daffodil-geography-driver-testing.mjs +67 -0
  124. package/fesm2015/daffodil-geography-driver-testing.mjs.map +1 -0
  125. package/fesm2015/{daffodil-geography-driver.js → daffodil-geography-driver.mjs} +1 -1
  126. package/fesm2015/daffodil-geography-driver.mjs.map +1 -0
  127. package/fesm2015/daffodil-geography-state-testing.mjs +58 -0
  128. package/fesm2015/daffodil-geography-state-testing.mjs.map +1 -0
  129. package/fesm2015/{daffodil-geography-state.js → daffodil-geography-state.mjs} +62 -72
  130. package/fesm2015/daffodil-geography-state.mjs.map +1 -0
  131. package/fesm2015/daffodil-geography-testing.mjs +106 -0
  132. package/fesm2015/daffodil-geography-testing.mjs.map +1 -0
  133. package/fesm2015/{daffodil-geography.js → daffodil-geography.mjs} +1 -1
  134. package/fesm2015/daffodil-geography.mjs.map +1 -0
  135. package/fesm2020/daffodil-geography-driver-in-memory.mjs +121 -0
  136. package/fesm2020/daffodil-geography-driver-in-memory.mjs.map +1 -0
  137. package/fesm2020/daffodil-geography-driver-magento.mjs +197 -0
  138. package/fesm2020/daffodil-geography-driver-magento.mjs.map +1 -0
  139. package/fesm2020/daffodil-geography-driver-testing.mjs +67 -0
  140. package/fesm2020/daffodil-geography-driver-testing.mjs.map +1 -0
  141. package/fesm2020/daffodil-geography-driver.mjs +27 -0
  142. package/fesm2020/daffodil-geography-driver.mjs.map +1 -0
  143. package/fesm2020/daffodil-geography-state-testing.mjs +58 -0
  144. package/fesm2020/daffodil-geography-state-testing.mjs.map +1 -0
  145. package/fesm2020/daffodil-geography-state.mjs +300 -0
  146. package/fesm2020/daffodil-geography-state.mjs.map +1 -0
  147. package/fesm2020/daffodil-geography-testing.mjs +106 -0
  148. package/fesm2020/daffodil-geography-testing.mjs.map +1 -0
  149. package/fesm2020/daffodil-geography.mjs +54 -0
  150. package/fesm2020/daffodil-geography.mjs.map +1 -0
  151. package/package.json +79 -11
  152. package/state/daffodil-geography-state.d.ts +1 -1
  153. package/state/effects/geography.effects.d.ts +5 -2
  154. package/state/facades/geography/geography.facade.d.ts +3 -0
  155. package/state/geography-state.module.d.ts +6 -0
  156. package/state/package.json +5 -6
  157. package/state/testing/daffodil-geography-state-testing.d.ts +1 -0
  158. package/state/testing/geography-testing.module.d.ts +4 -0
  159. package/state/testing/mock-geography-facade.d.ts +3 -0
  160. package/state/testing/package.json +5 -6
  161. package/testing/daffodil-geography-testing.d.ts +1 -0
  162. package/testing/factories/address.factory.d.ts +3 -0
  163. package/testing/factories/country.factory.d.ts +3 -0
  164. package/testing/factories/personal-address.factory.d.ts +3 -0
  165. package/testing/factories/subdivision.factory.d.ts +3 -0
  166. package/testing/package.json +5 -6
  167. package/bundles/daffodil-geography-driver-in-memory.umd.js +0 -129
  168. package/bundles/daffodil-geography-driver-in-memory.umd.js.map +0 -1
  169. package/bundles/daffodil-geography-driver-in-memory.umd.min.js +0 -2
  170. package/bundles/daffodil-geography-driver-in-memory.umd.min.js.map +0 -1
  171. package/bundles/daffodil-geography-driver-magento.umd.js +0 -490
  172. package/bundles/daffodil-geography-driver-magento.umd.js.map +0 -1
  173. package/bundles/daffodil-geography-driver-magento.umd.min.js +0 -2
  174. package/bundles/daffodil-geography-driver-magento.umd.min.js.map +0 -1
  175. package/bundles/daffodil-geography-driver-testing.umd.js +0 -72
  176. package/bundles/daffodil-geography-driver-testing.umd.js.map +0 -1
  177. package/bundles/daffodil-geography-driver-testing.umd.min.js +0 -2
  178. package/bundles/daffodil-geography-driver-testing.umd.min.js.map +0 -1
  179. package/bundles/daffodil-geography-driver.umd.js +0 -360
  180. package/bundles/daffodil-geography-driver.umd.js.map +0 -1
  181. package/bundles/daffodil-geography-driver.umd.min.js +0 -16
  182. package/bundles/daffodil-geography-driver.umd.min.js.map +0 -1
  183. package/bundles/daffodil-geography-state-testing.umd.js +0 -60
  184. package/bundles/daffodil-geography-state-testing.umd.js.map +0 -1
  185. package/bundles/daffodil-geography-state-testing.umd.min.js +0 -2
  186. package/bundles/daffodil-geography-state-testing.umd.min.js.map +0 -1
  187. package/bundles/daffodil-geography-state.umd.js +0 -649
  188. package/bundles/daffodil-geography-state.umd.js.map +0 -1
  189. package/bundles/daffodil-geography-state.umd.min.js +0 -16
  190. package/bundles/daffodil-geography-state.umd.min.js.map +0 -1
  191. package/bundles/daffodil-geography-testing.umd.js +0 -450
  192. package/bundles/daffodil-geography-testing.umd.js.map +0 -1
  193. package/bundles/daffodil-geography-testing.umd.min.js +0 -16
  194. package/bundles/daffodil-geography-testing.umd.min.js.map +0 -1
  195. package/bundles/daffodil-geography.umd.js +0 -63
  196. package/bundles/daffodil-geography.umd.js.map +0 -1
  197. package/bundles/daffodil-geography.umd.min.js +0 -2
  198. package/bundles/daffodil-geography.umd.min.js.map +0 -1
  199. package/daffodil-geography.metadata.json +0 -1
  200. package/driver/daffodil-geography-driver.metadata.json +0 -1
  201. package/driver/in-memory/daffodil-geography-driver-in-memory.metadata.json +0 -1
  202. package/driver/magento/daffodil-geography-driver-magento.metadata.json +0 -1
  203. package/driver/testing/daffodil-geography-driver-testing.metadata.json +0 -1
  204. package/esm2015/driver/in-memory/backend/geography.service.js +0 -62
  205. package/esm2015/driver/in-memory/drivers/geography-driver.module.js +0 -25
  206. package/esm2015/driver/in-memory/drivers/geography.service.js +0 -33
  207. package/esm2015/driver/magento/geography-driver.module.js +0 -25
  208. package/esm2015/driver/magento/geography.service.js +0 -48
  209. package/esm2015/driver/magento/transforms/responses/country.service.js +0 -32
  210. package/esm2015/driver/magento/transforms/responses/subdivision.service.js +0 -20
  211. package/esm2015/driver/testing/drivers/geography-driver.module.js +0 -25
  212. package/esm2015/driver/testing/drivers/geography.service.js +0 -35
  213. package/esm2015/state/daffodil-geography-state.js +0 -6
  214. package/esm2015/state/effects/geography.effects.js +0 -43
  215. package/esm2015/state/facades/geography/geography.facade.js +0 -46
  216. package/esm2015/state/geography-state.module.js +0 -18
  217. package/esm2015/state/reducers/country-entities/country-entities.reducer.js +0 -24
  218. package/esm2015/state/selectors/country-entities.selector.js +0 -51
  219. package/esm2015/state/selectors/geography-all.selector.js +0 -10
  220. package/esm2015/state/selectors/geography-feature.selector.js +0 -11
  221. package/esm2015/state/selectors/geography.selector.js +0 -21
  222. package/esm2015/state/testing/geography-testing.module.js +0 -13
  223. package/esm2015/state/testing/mock-geography-facade.js +0 -32
  224. package/esm2015/testing/factories/address.factory.js +0 -28
  225. package/esm2015/testing/factories/country.factory.js +0 -28
  226. package/esm2015/testing/factories/personal-address.factory.js +0 -31
  227. package/esm2015/testing/factories/subdivision.factory.js +0 -25
  228. package/fesm2015/daffodil-geography-driver-in-memory.js +0 -119
  229. package/fesm2015/daffodil-geography-driver-in-memory.js.map +0 -1
  230. package/fesm2015/daffodil-geography-driver-magento.js.map +0 -1
  231. package/fesm2015/daffodil-geography-driver-testing.js +0 -63
  232. package/fesm2015/daffodil-geography-driver-testing.js.map +0 -1
  233. package/fesm2015/daffodil-geography-driver.js.map +0 -1
  234. package/fesm2015/daffodil-geography-state-testing.js +0 -49
  235. package/fesm2015/daffodil-geography-state-testing.js.map +0 -1
  236. package/fesm2015/daffodil-geography-state.js.map +0 -1
  237. package/fesm2015/daffodil-geography-testing.js +0 -105
  238. package/fesm2015/daffodil-geography-testing.js.map +0 -1
  239. package/fesm2015/daffodil-geography.js.map +0 -1
  240. package/state/daffodil-geography-state.metadata.json +0 -1
  241. package/state/testing/daffodil-geography-state-testing.metadata.json +0 -1
  242. package/testing/daffodil-geography-testing.metadata.json +0 -1
@@ -0,0 +1,20 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { DaffGeographyFacade } from '@daffodil/geography/state';
3
+ import { MockDaffGeographyFacade } from './mock-geography-facade';
4
+ import * as i0 from "@angular/core";
5
+ export class DaffGeographyTestingModule {
6
+ }
7
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingModule });
9
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingModule, providers: [
10
+ { provide: DaffGeographyFacade, useExisting: MockDaffGeographyFacade },
11
+ ] });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ providers: [
16
+ { provide: DaffGeographyFacade, useExisting: MockDaffGeographyFacade },
17
+ ],
18
+ }]
19
+ }] });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VvZ3JhcGh5LXRlc3RpbmcubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9nZW9ncmFwaHkvc3RhdGUvdGVzdGluZy9zcmMvZ2VvZ3JhcGh5LXRlc3RpbmcubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiO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from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * @inheritdoc
6
+ */
7
+ export class MockDaffGeographyFacade {
8
+ constructor() {
9
+ this.loading$ = new BehaviorSubject(null);
10
+ this.errors$ = new BehaviorSubject([]);
11
+ this.countries$ = new BehaviorSubject([]);
12
+ this.countryIds$ = new BehaviorSubject([]);
13
+ this.countryCount$ = new BehaviorSubject(null);
14
+ this.countryEntities$ = new BehaviorSubject(null);
15
+ }
16
+ getCountry(id) {
17
+ return new BehaviorSubject(null);
18
+ }
19
+ getCountrySubdivisions(id) {
20
+ return new BehaviorSubject([]);
21
+ }
22
+ isCountryFullyLoaded(id) {
23
+ return new BehaviorSubject(false);
24
+ }
25
+ dispatch(action) { }
26
+ ;
27
+ }
28
+ /** @nocollapse */ /** @nocollapse */ MockDaffGeographyFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffGeographyFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
29
+ /** @nocollapse */ /** @nocollapse */ MockDaffGeographyFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffGeographyFacade, providedIn: 'root' });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MockDaffGeographyFacade, decorators: [{
31
+ type: Injectable,
32
+ args: [{ providedIn: 'root' }]
33
+ }] });
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay1nZW9ncmFwaHktZmFjYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9nZW9ncmFwaHkvc3RhdGUvdGVzdGluZy9zcmMvbW9jay1nZW9ncmFwaHktZmFjYWRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx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2aW9yU3ViamVjdDxudW1iZXI+ID0gbmV3IEJlaGF2aW9yU3ViamVjdChudWxsKTtcbiAgY291bnRyeUVudGl0aWVzJDogQmVoYXZpb3JTdWJqZWN0PERpY3Rpb25hcnk8RGFmZkNvdW50cnk+PiA9IG5ldyBCZWhhdmlvclN1YmplY3QobnVsbCk7XG5cbiAgZ2V0Q291bnRyeShpZCkge1xuICAgIHJldHVybiBuZXcgQmVoYXZpb3JTdWJqZWN0KG51bGwpO1xuICB9XG5cbiAgZ2V0Q291bnRyeVN1YmRpdmlzaW9ucyhpZCkge1xuICAgIHJldHVybiBuZXcgQmVoYXZpb3JTdWJqZWN0KFtdKTtcbiAgfVxuXG4gIGlzQ291bnRyeUZ1bGx5TG9hZGVkKGlkKSB7XG4gICAgcmV0dXJuIG5ldyBCZWhhdmlvclN1YmplY3QoZmFsc2UpO1xuICB9XG5cbiAgZGlzcGF0Y2goYWN0aW9uOiBBY3Rpb24pIHt9O1xufVxuIl19
@@ -0,0 +1,28 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as faker from '@faker-js/faker/locale/en_US';
3
+ import { DaffModelFactory } from '@daffodil/core/testing';
4
+ import * as i0 from "@angular/core";
5
+ export class MockDaffAddress {
6
+ constructor() {
7
+ this.street = faker.address.streetName();
8
+ this.street2 = faker.address.secondaryAddress();
9
+ this.city = faker.address.city();
10
+ this.region = faker.address.stateAbbr();
11
+ this.postcode = faker.address.zipCode();
12
+ this.country = faker.address.zipCode();
13
+ }
14
+ }
15
+ export class DaffAddressFactory extends DaffModelFactory {
16
+ constructor() {
17
+ super(MockDaffAddress);
18
+ }
19
+ }
20
+ /** @nocollapse */ /** @nocollapse */ DaffAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
21
+ /** @nocollapse */ /** @nocollapse */ DaffAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAddressFactory, providedIn: 'root' });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffAddressFactory, decorators: [{
23
+ type: Injectable,
24
+ args: [{
25
+ providedIn: 'root',
26
+ }]
27
+ }], ctorParameters: function () { return []; } });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9nZW9ncmFwaHkvdGVzdGluZy9zcmMvZmFjdG9yaWVzL2FkZHJlc3MuZmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sS0FBSyxLQUFLLE1BQU0sOEJBQThCLENBQUM7QUFFdEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7O0FBSTFELE1BQU0sT0FBTyxlQUFlO0lBQTVCO1FBQ0UsV0FBTSxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsVUFBVSxFQUFFLENBQUM7UUFDcEMsWUFBTyxHQUFHLEtBQUssQ0FBQyxPQUFPLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQztRQUMzQyxTQUFJLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUM1QixXQUFNLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxTQUFTLEVBQUUsQ0FBQztRQUNuQyxhQUFRLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQUUsQ0FBQztRQUNuQyxZQUFPLEdBQUcsS0FBSyxDQUFDLE9BQU8sQ0FBQyxPQUFPLEVBQ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ZkFkZHJlc3NGYWN0b3J5IGV4dGVuZHMgRGFmZk1vZGVsRmFjdG9yeTxEYWZmQWRkcmVzcz57XG4gIGNvbnN0cnVjdG9yKCl7XG4gICAgc3VwZXIoTW9ja0RhZmZBZGRyZXNzKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,28 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as faker from '@faker-js/faker/locale/en_US';
3
+ import { DaffModelFactory } from '@daffodil/core/testing';
4
+ import * as i0 from "@angular/core";
5
+ export class MockCountry {
6
+ constructor() {
7
+ this.id = faker.datatype.uuid();
8
+ this.name = faker.random.word();
9
+ this.name_en = faker.random.word();
10
+ this.alpha2 = faker.random.alphaNumeric(2);
11
+ this.alpha3 = faker.random.alphaNumeric(3);
12
+ this.subdivisions = [];
13
+ }
14
+ }
15
+ export class DaffCountryFactory extends DaffModelFactory {
16
+ constructor() {
17
+ super(MockCountry);
18
+ }
19
+ }
20
+ /** @nocollapse */ /** @nocollapse */ DaffCountryFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCountryFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
21
+ /** @nocollapse */ /** @nocollapse */ DaffCountryFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCountryFactory, providedIn: 'root' });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCountryFactory, decorators: [{
23
+ type: Injectable,
24
+ args: [{
25
+ providedIn: 'root',
26
+ }]
27
+ }], ctorParameters: function () { return []; } });
28
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY291bnRyeS5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9nZW9ncmFwaHkvdGVzdGluZy9zcmMv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BmYWtlci1qcy9mYWtlci9sb2NhbGUvZW5fVVMnO1xuXG5pbXBvcnQgeyBEYWZmTW9kZWxGYWN0b3J5IH0gZnJvbSAnQGRhZmZvZGlsL2NvcmUvdGVzdGluZyc7XG5pbXBvcnQgeyBEYWZmQ291bnRyeSB9IGZyb20gJ0BkYWZmb2RpbC9nZW9ncmFwaHknO1xuXG5leHBvcnQgY2xhc3MgTW9ja0NvdW50cnkgaW1wbGVtZW50cyBEYWZmQ291bnRyeSB7XG4gIGlkID0gZmFrZXIuZGF0YXR5cGUudXVpZCgpO1xuICBuYW1lID0gZmFrZXIucmFuZG9tLndvcmQoKTtcblx0bmFtZV9lbiA9IGZha2VyLnJhbmRvbS53b3JkKCk7XG5cdGFscGhhMiA9IGZha2VyLnJhbmRvbS5hbHBoYU51bWVyaWMoMik7XG5cdGFscGhhMyA9IGZha2VyLnJhbmRvbS5hbHBoYU51bWVyaWMoMyk7XG5cdHN1YmRpdmlzaW9ucyA9IFtdO1xufVxuXG5ASW5qZWN0YWJsZSh7XG4gIHByb3ZpZGVkSW46ICdyb290Jyxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZkNvdW50cnlGYWN0b3J5IGV4dGVuZHMgRGFmZk1vZGVsRmFjdG9yeTxEYWZmQ291bnRyeT4ge1xuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcihNb2NrQ291bnRyeSk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,31 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as faker from '@faker-js/faker/locale/en_US';
3
+ import { DaffModelFactory } from '@daffodil/core/testing';
4
+ import { MockDaffAddress } from './address.factory';
5
+ import * as i0 from "@angular/core";
6
+ export class MockDaffPersonalAddress extends MockDaffAddress {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.prefix = faker.name.prefix();
10
+ this.suffix = faker.name.suffix();
11
+ this.firstname = faker.name.firstName();
12
+ this.middlename = faker.name.firstName();
13
+ this.lastname = faker.name.lastName();
14
+ this.email = faker.internet.email();
15
+ this.telephone = faker.phone.phoneNumber();
16
+ }
17
+ }
18
+ export class DaffPersonalAddressFactory extends DaffModelFactory {
19
+ constructor() {
20
+ super(MockDaffPersonalAddress);
21
+ }
22
+ }
23
+ /** @nocollapse */ /** @nocollapse */ DaffPersonalAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffPersonalAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
24
+ /** @nocollapse */ /** @nocollapse */ DaffPersonalAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffPersonalAddressFactory, providedIn: 'root' });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffPersonalAddressFactory, decorators: [{
26
+ type: Injectable,
27
+ args: [{
28
+ providedIn: 'root',
29
+ }]
30
+ }], ctorParameters: function () { return []; } });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVyc29uYWwtYWRkcmVzcy5mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vbGlicy9nZW9ncmFwaHkvdGVzdGluZy9zcmMvZmFjdG9yaWVzL3BlcnNvbmFsLWFkZHJlc3MuZmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sS0FBSyxLQUFLLE1BQU0sOEJBQThCLENBQUM7QUFFdEQsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFHMUQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLG1CQUFtQixDQUFDOztBQUVwRCxNQUFNLE9BQU8sdUJBQX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gfSBmcm9tICdAZGFmZm9kaWwvZ2VvZ3JhcGh5JztcblxuaW1wb3J0IHsgTW9ja0RhZmZBZGRyZXNzIH0gZnJvbSAnLi9hZGRyZXNzLmZhY3RvcnknO1xuXG5leHBvcnQgY2xhc3MgTW9ja0RhZmZQZXJzb25hbEFkZHJlc3MgZXh0ZW5kcyBNb2NrRGFmZkFkZHJlc3MgaW1wbGVtZW50cyBEYWZmUGVyc29uYWxBZGRyZXNzIHtcbiAgcHJlZml4ID0gZmFrZXIubmFtZS5wcmVmaXgoKTtcbiAgc3VmZml4ID0gZmFrZXIubmFtZS5zdWZmaXgoKTtcbiAgZmlyc3RuYW1lID0gZmFrZXIubmFtZS5maXJzdE5hbWUoKTtcbiAgbWlkZGxlbmFtZSA9IGZha2VyLm5hbWUuZmlyc3ROYW1lKCk7XG4gIGxhc3RuYW1lID0gZmFrZXIubmFtZS5sYXN0TmFtZSgpO1xuICBlbWFpbCA9IGZha2VyLmludGVybmV0LmVtYWlsKCk7XG4gIHRlbGVwaG9uZSA9IGZha2VyLnBob25lLnBob25lTnVtYmVyKCk7XG59XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBEYWZmUGVyc29uYWxBZGRyZXNzRmFjdG9yeSBleHRlbmRzIERhZmZNb2RlbEZhY3Rvcnk8RGFmZlBlcnNvbmFsQWRkcmVzcz57XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tEYWZmUGVyc29uYWxBZGRyZXNzKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,25 @@
1
+ import { Injectable } from '@angular/core';
2
+ import * as faker from '@faker-js/faker/locale/en_US';
3
+ import { DaffModelFactory } from '@daffodil/core/testing';
4
+ import * as i0 from "@angular/core";
5
+ export class MockSubdivision {
6
+ constructor() {
7
+ this.id = faker.datatype.uuid();
8
+ this.name = faker.random.word();
9
+ this.iso_3166_2 = faker.random.alphaNumeric(2);
10
+ }
11
+ }
12
+ export class DaffSubdivisionFactory extends DaffModelFactory {
13
+ constructor() {
14
+ super(MockSubdivision);
15
+ }
16
+ }
17
+ /** @nocollapse */ /** @nocollapse */ DaffSubdivisionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSubdivisionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18
+ /** @nocollapse */ /** @nocollapse */ DaffSubdivisionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSubdivisionFactory, providedIn: 'root' });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffSubdivisionFactory, decorators: [{
20
+ type: Injectable,
21
+ args: [{
22
+ providedIn: 'root',
23
+ }]
24
+ }], ctorParameters: function () { return []; } });
25
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ViZGl2aXNpb24uZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvZ2VvZ3JhcGh5L3Rlc3Rpbmcvc3JjL2ZhY3Rvcmllcy9zdWJkaXZpc2lvbi5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxLQUFLLEtBQUssTUFBTSw4QkFBOEIsQ0FBQztBQUV0RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQzs7QUFHMUQsTUFBTSxPQUFPLGVBQWU7SUFBNUI7UUFDRSxPQUFFLEdBQUcsS0FBSyxDQUFDLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUMzQixTQUFJLEdBQUcsS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Nb2RlbEZhY3Rvcnk8RGFmZlN1YmRpdmlzaW9uPiB7XG4gIGNvbnN0cnVjdG9yKCkge1xuICAgIHN1cGVyKE1vY2tTdWJkaXZpc2lvbik7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,121 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, NgModule } from '@angular/core';
4
+ import { DaffCountryNotFoundError, DaffGeographyDriver } from '@daffodil/geography/driver';
5
+ import { throwError } from 'rxjs';
6
+ import { catchError, map } from 'rxjs/operators';
7
+ import * as i1 from '@angular/common/http';
8
+ import { STATUS } from 'angular-in-memory-web-api';
9
+ import * as i1$1 from '@daffodil/geography/testing';
10
+
11
+ /**
12
+ * @inheritdoc
13
+ */
14
+ class DaffInMemoryGeographyService {
15
+ constructor(http) {
16
+ this.http = http;
17
+ this.url = '/api/countries';
18
+ }
19
+ get(countryId) {
20
+ return this.http.get(`${this.url}/${countryId}`).pipe(catchError((error) => throwError(() => new DaffCountryNotFoundError('Country could not be found'))), map(result => result));
21
+ }
22
+ list() {
23
+ return this.http.get(`${this.url}/`);
24
+ }
25
+ }
26
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryGeographyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryGeographyService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
27
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryGeographyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryGeographyService, providedIn: 'root' });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryGeographyService, decorators: [{
29
+ type: Injectable,
30
+ args: [{
31
+ providedIn: 'root',
32
+ }]
33
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
34
+
35
+ class DaffGeographyInMemoryDriverModule {
36
+ static forRoot() {
37
+ return {
38
+ ngModule: DaffGeographyInMemoryDriverModule,
39
+ providers: [
40
+ {
41
+ provide: DaffGeographyDriver,
42
+ useExisting: DaffInMemoryGeographyService,
43
+ },
44
+ ],
45
+ };
46
+ }
47
+ }
48
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyInMemoryDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyInMemoryDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyInMemoryDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyInMemoryDriverModule, imports: [CommonModule] });
50
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyInMemoryDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyInMemoryDriverModule, imports: [[
51
+ CommonModule,
52
+ ]] });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyInMemoryDriverModule, decorators: [{
54
+ type: NgModule,
55
+ args: [{
56
+ imports: [
57
+ CommonModule,
58
+ ],
59
+ }]
60
+ }] });
61
+
62
+ /**
63
+ * An in-memory service that stubs out the backend services for getting countries.
64
+ *
65
+ * @inheritdoc
66
+ */
67
+ class DaffInMemoryBackendGeographyService {
68
+ constructor(countryFactory, subdivisionFactory) {
69
+ this.countryFactory = countryFactory;
70
+ this.subdivisionFactory = subdivisionFactory;
71
+ this.countries = this.countryFactory.createMany(5);
72
+ this.countries.forEach(country => country.subdivisions = this.subdivisionFactory.createMany(5));
73
+ }
74
+ /**
75
+ * Creates a fake database of countries for the geography inmemory backend service.
76
+ *
77
+ * @docs-private
78
+ * @returns A fake database of an array of countries
79
+ */
80
+ createDb(reqInfo) {
81
+ if (reqInfo) {
82
+ const seedData = reqInfo.utils.getJsonBody(reqInfo.req).countries;
83
+ if (seedData) {
84
+ this.countries = seedData;
85
+ }
86
+ }
87
+ return {
88
+ countries: this.countries,
89
+ };
90
+ }
91
+ /**
92
+ * Responds to GET requests.
93
+ */
94
+ get(reqInfo) {
95
+ return reqInfo.utils.createResponse$(() => ({
96
+ body: reqInfo.id ? this.getCountry(reqInfo) : this.listCountries(reqInfo),
97
+ status: STATUS.OK,
98
+ }));
99
+ }
100
+ getCountry(reqInfo) {
101
+ return reqInfo.collection.find(country => country.id === reqInfo.id);
102
+ }
103
+ listCountries(reqInfo) {
104
+ return reqInfo.collection;
105
+ }
106
+ }
107
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendGeographyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendGeographyService, deps: [{ token: i1$1.DaffCountryFactory }, { token: i1$1.DaffSubdivisionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
108
+ /** @nocollapse */ /** @nocollapse */ DaffInMemoryBackendGeographyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendGeographyService, providedIn: 'root' });
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInMemoryBackendGeographyService, decorators: [{
110
+ type: Injectable,
111
+ args: [{
112
+ providedIn: 'root',
113
+ }]
114
+ }], ctorParameters: function () { return [{ type: i1$1.DaffCountryFactory }, { type: i1$1.DaffSubdivisionFactory }]; } });
115
+
116
+ /**
117
+ * Generated bundle index. Do not edit.
118
+ */
119
+
120
+ export { DaffGeographyInMemoryDriverModule, DaffInMemoryBackendGeographyService, DaffInMemoryGeographyService };
121
+ //# sourceMappingURL=daffodil-geography-driver-in-memory.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-geography-driver-in-memory.mjs","sources":["../../../libs/geography/driver/in-memory/src/drivers/geography.service.ts","../../../libs/geography/driver/in-memory/src/drivers/geography-driver.module.ts","../../../libs/geography/driver/in-memory/src/backend/geography.service.ts","../../../libs/geography/driver/in-memory/src/daffodil-geography-driver-in-memory.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n catchError,\n map,\n} from 'rxjs/operators';\n\nimport { DaffCountry } from '@daffodil/geography';\nimport {\n DaffGeographyServiceInterface,\n DaffCountryNotFoundError,\n} from '@daffodil/geography/driver';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryGeographyService implements DaffGeographyServiceInterface<DaffCountry> {\n url = '/api/countries';\n\n constructor(private http: HttpClient) {}\n\n get(countryId: DaffCountry['id']): Observable<DaffCountry> {\n return this.http.get<DaffCountry>(`${this.url}/${countryId}`).pipe(\n catchError((error: Error) => throwError(() => new DaffCountryNotFoundError('Country could not be found'))),\n map(result => result),\n );\n }\n\n list(): Observable<DaffCountry[]> {\n return this.http.get<DaffCountry[]>(`${this.url}/`);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffGeographyDriver } from '@daffodil/geography/driver';\n\nimport { DaffInMemoryGeographyService } from './geography.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffGeographyInMemoryDriverModule {\n static forRoot(): ModuleWithProviders<DaffGeographyInMemoryDriverModule> {\n return {\n ngModule: DaffGeographyInMemoryDriverModule,\n providers: [\n {\n provide: DaffGeographyDriver,\n useExisting: DaffInMemoryGeographyService,\n },\n ],\n };\n }\n}\n","import { Injectable } from '@angular/core';\nimport {\n InMemoryDbService,\n RequestInfo,\n STATUS,\n} from 'angular-in-memory-web-api';\n\nimport { DaffInMemoryDataServiceInterface } from '@daffodil/core/testing';\nimport { DaffCountry } from '@daffodil/geography';\nimport {\n DaffCountryFactory,\n DaffSubdivisionFactory,\n} from '@daffodil/geography/testing';\n\n/**\n * An in-memory service that stubs out the backend services for getting countries.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffInMemoryBackendGeographyService implements InMemoryDbService, DaffInMemoryDataServiceInterface {\n countries: DaffCountry[];\n\n constructor(\n private countryFactory: DaffCountryFactory,\n private subdivisionFactory: DaffSubdivisionFactory,\n ) {\n this.countries = this.countryFactory.createMany(5);\n this.countries.forEach(country => country.subdivisions = this.subdivisionFactory.createMany(5));\n }\n\n /**\n * Creates a fake database of countries for the geography inmemory backend service.\n *\n * @docs-private\n * @returns A fake database of an array of countries\n */\n createDb(reqInfo: RequestInfo): any {\n if (reqInfo) {\n const seedData = reqInfo.utils.getJsonBody(reqInfo.req).countries;\n if (seedData) {\n this.countries = seedData;\n }\n }\n\n return {\n countries: this.countries,\n };\n }\n\n /**\n * Responds to GET requests.\n */\n get(reqInfo: RequestInfo): any {\n return reqInfo.utils.createResponse$(() => ({\n body: reqInfo.id ? this.getCountry(reqInfo) : this.listCountries(reqInfo),\n status: STATUS.OK,\n }));\n }\n\n private getCountry(reqInfo: RequestInfo) {\n return reqInfo.collection.find(country => country.id === reqInfo.id);\n }\n\n private listCountries(reqInfo: RequestInfo) {\n return reqInfo.collection;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAiBA;;AAEG;MAIU,4BAA4B,CAAA;AAGvC,IAAA,WAAA,CAAoB,IAAgB,EAAA;AAAhB,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAFpC,QAAA,IAAG,CAAA,GAAA,GAAG,gBAAgB,CAAC;KAEiB;AAExC,IAAA,GAAG,CAAC,SAA4B,EAAA;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAc,CAAA,EAAG,IAAI,CAA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angular/core';
2
- import { gql, Apollo } from 'apollo-angular';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, NgModule } from '@angular/core';
3
+ import * as i1 from 'apollo-angular';
4
+ import { gql } from 'apollo-angular';
3
5
  import { throwError } from 'rxjs';
4
6
  import { map, catchError } from 'rxjs/operators';
5
7
  import { daffTransformMagentoError } from '@daffodil/driver/magento';
@@ -17,12 +19,14 @@ class DaffMagentoSubdivisionTransformer {
17
19
  return region ? Object.assign({ magento_region: region }, { id: String(region.id), name: region.name, iso_3166_2: region.code }) : null;
18
20
  }
19
21
  }
20
- /** @nocollapse */ DaffMagentoSubdivisionTransformer.ɵprov = ɵɵdefineInjectable({ factory: function DaffMagentoSubdivisionTransformer_Factory() { return new DaffMagentoSubdivisionTransformer(); }, token: DaffMagentoSubdivisionTransformer, providedIn: "root" });
21
- DaffMagentoSubdivisionTransformer.decorators = [
22
- { type: Injectable, args: [{
23
- providedIn: 'root',
24
- },] }
25
- ];
22
+ /** @nocollapse */ /** @nocollapse */ DaffMagentoSubdivisionTransformer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoSubdivisionTransformer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
+ /** @nocollapse */ /** @nocollapse */ DaffMagentoSubdivisionTransformer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoSubdivisionTransformer, providedIn: 'root' });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoSubdivisionTransformer, decorators: [{
25
+ type: Injectable,
26
+ args: [{
27
+ providedIn: 'root',
28
+ }]
29
+ }] });
26
30
 
27
31
  /**
28
32
  * Transforms magento carts into an object usable by daffodil.
@@ -41,16 +45,14 @@ class DaffMagentoCountryTransformer {
41
45
  return country ? Object.assign({ magento_country: country }, { subdivisions: this.transformSubdivisions(country.available_regions || []), id: country.id, name: country.full_name_locale, name_en: country.full_name_english, alpha2: country.two_letter_abbreviation, alpha3: country.three_letter_abbreviation }) : null;
42
46
  }
43
47
  }
44
- /** @nocollapse */ DaffMagentoCountryTransformer.ɵprov = ɵɵdefineInjectable({ factory: function DaffMagentoCountryTransformer_Factory() { return new DaffMagentoCountryTransformer(ɵɵinject(DaffMagentoSubdivisionTransformer)); }, token: DaffMagentoCountryTransformer, providedIn: "root" });
45
- DaffMagentoCountryTransformer.decorators = [
46
- { type: Injectable, args: [{
47
- providedIn: 'root',
48
- },] }
49
- ];
50
- /** @nocollapse */
51
- DaffMagentoCountryTransformer.ctorParameters = () => [
52
- { type: DaffMagentoSubdivisionTransformer }
53
- ];
48
+ /** @nocollapse */ /** @nocollapse */ DaffMagentoCountryTransformer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoCountryTransformer, deps: [{ token: DaffMagentoSubdivisionTransformer }], target: i0.ɵɵFactoryTarget.Injectable });
49
+ /** @nocollapse */ /** @nocollapse */ DaffMagentoCountryTransformer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoCountryTransformer, providedIn: 'root' });
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffMagentoCountryTransformer, decorators: [{
51
+ type: Injectable,
52
+ args: [{
53
+ providedIn: 'root',
54
+ }]
55
+ }], ctorParameters: function () { return [{ type: DaffMagentoSubdivisionTransformer }]; } });
54
56
 
55
57
  const countryFragment = gql `
56
58
  fragment country on Country {
@@ -127,7 +129,7 @@ class DaffGeographyMagentoService {
127
129
  list() {
128
130
  return this.apollo.query({
129
131
  query: getCountries,
130
- }).pipe(map(validateGetCountriesResponse), map(result => result.data.countries.map(country => this.countryTransformer.transform(country))), catchError(err => throwError(transformMagentoGeographyError(err))));
132
+ }).pipe(map(validateGetCountriesResponse), map(result => result.data.countries.map(country => this.countryTransformer.transform(country))), catchError(err => throwError(() => transformMagentoGeographyError(err))));
131
133
  }
132
134
  get(countryId) {
133
135
  return this.apollo.query({
@@ -135,20 +137,17 @@ class DaffGeographyMagentoService {
135
137
  variables: {
136
138
  countryId,
137
139
  },
138
- }).pipe(map(result => this.countryTransformer.transform(result.data.country)), catchError(err => throwError(transformMagentoGeographyError(err))));
140
+ }).pipe(map(result => this.countryTransformer.transform(result.data.country)), catchError(err => throwError(() => transformMagentoGeographyError(err))));
139
141
  }
140
142
  }
141
- /** @nocollapse */ DaffGeographyMagentoService.ɵprov = ɵɵdefineInjectable({ factory: function DaffGeographyMagentoService_Factory() { return new DaffGeographyMagentoService(ɵɵinject(Apollo), ɵɵinject(DaffMagentoCountryTransformer)); }, token: DaffGeographyMagentoService, providedIn: "root" });
142
- DaffGeographyMagentoService.decorators = [
143
- { type: Injectable, args: [{
144
- providedIn: 'root',
145
- },] }
146
- ];
147
- /** @nocollapse */
148
- DaffGeographyMagentoService.ctorParameters = () => [
149
- { type: Apollo },
150
- { type: DaffMagentoCountryTransformer }
151
- ];
143
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyMagentoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoService, deps: [{ token: i1.Apollo }, { token: DaffMagentoCountryTransformer }], target: i0.ɵɵFactoryTarget.Injectable });
144
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyMagentoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoService, providedIn: 'root' });
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoService, decorators: [{
146
+ type: Injectable,
147
+ args: [{
148
+ providedIn: 'root',
149
+ }]
150
+ }], ctorParameters: function () { return [{ type: i1.Apollo }, { type: DaffMagentoCountryTransformer }]; } });
152
151
 
153
152
  class DaffGeographyMagentoDriverModule {
154
153
  static forRoot() {
@@ -163,17 +162,23 @@ class DaffGeographyMagentoDriverModule {
163
162
  };
164
163
  }
165
164
  }
166
- DaffGeographyMagentoDriverModule.decorators = [
167
- { type: NgModule, args: [{
168
- imports: [
169
- CommonModule,
170
- ],
171
- },] }
172
- ];
165
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyMagentoDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
166
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyMagentoDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoDriverModule, imports: [CommonModule] });
167
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyMagentoDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoDriverModule, imports: [[
168
+ CommonModule,
169
+ ]] });
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyMagentoDriverModule, decorators: [{
171
+ type: NgModule,
172
+ args: [{
173
+ imports: [
174
+ CommonModule,
175
+ ],
176
+ }]
177
+ }] });
173
178
 
174
179
  /**
175
180
  * Generated bundle index. Do not edit.
176
181
  */
177
182
 
178
183
  export { DaffGeographyMagentoDriverModule, DaffGeographyMagentoService, DaffMagentoCountryTransformer, DaffMagentoSubdivisionTransformer, countryFragment, getCountries, getCountry, regionFragment };
179
- //# sourceMappingURL=daffodil-geography-driver-magento.js.map
184
+ //# sourceMappingURL=daffodil-geography-driver-magento.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-geography-driver-magento.mjs","sources":["../../../libs/geography/driver/magento/src/transforms/responses/subdivision.service.ts","../../../libs/geography/driver/magento/src/transforms/responses/country.service.ts","../../../libs/geography/driver/magento/src/queries/fragments/country.ts","../../../libs/geography/driver/magento/src/queries/fragments/region.ts","../../../libs/geography/driver/magento/src/queries/get-countries.ts","../../../libs/geography/driver/magento/src/queries/get-country.ts","../../../libs/geography/driver/magento/src/errors/codes.ts","../../../libs/geography/driver/magento/src/errors/map.ts","../../../libs/geography/driver/magento/src/errors/transform.ts","../../../libs/geography/driver/magento/src/validators/get-countries.ts","../../../libs/geography/driver/magento/src/geography.service.ts","../../../libs/geography/driver/magento/src/geography-driver.module.ts","../../../libs/geography/driver/magento/src/daffodil-geography-driver-magento.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { DaffSubdivision } from '@daffodil/geography';\n\nimport { MagentoRegion } from '../../models/responses/region';\n\n/**\n * Transforms magento carts into an object usable by daffodil.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoSubdivisionTransformer {\n /**\n * Transforms the MagentoRegion from the magento region query into a DaffSubdivision.\n */\n transform(region: MagentoRegion): DaffSubdivision {\n return region ? {\n ...{ magento_region: region },\n\n id: String(region.id),\n name: region.name,\n iso_3166_2: region.code,\n } : null;\n }\n}\n","import { Injectable } from '@angular/core';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { MagentoCountry } from '../../models/responses/country';\nimport { DaffMagentoSubdivisionTransformer } from './subdivision.service';\n\n/**\n * Transforms magento carts into an object usable by daffodil.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffMagentoCountryTransformer {\n constructor(public subdivisionTransformer: DaffMagentoSubdivisionTransformer) {}\n\n private transformSubdivisions(regions: MagentoCountry['available_regions']): DaffCountry['subdivisions'] {\n return regions.map(region => this.subdivisionTransformer.transform(region));\n }\n\n /**\n * Transforms the MagentoCountry from the magento country query into a DaffCountry.\n */\n transform(country: MagentoCountry): DaffCountry {\n return country ? {\n ...{ magento_country: country },\n\n subdivisions: this.transformSubdivisions(country.available_regions || []),\n\n id: country.id,\n name: country.full_name_locale,\n name_en: country.full_name_english,\n alpha2: country.two_letter_abbreviation,\n alpha3: country.three_letter_abbreviation,\n } : null;\n }\n}\n","import { gql } from 'apollo-angular';\n\n\nexport const countryFragment = gql`\n fragment country on Country {\n id\n full_name_english\n full_name_locale\n three_letter_abbreviation\n two_letter_abbreviation\n }\n`;\n","import { gql } from 'apollo-angular';\n\n\nexport const regionFragment = gql`\n fragment region on Region {\n code\n id\n name\n }\n`;\n","import { gql } from 'apollo-angular';\n\nimport { countryFragment } from './fragments/public_api';\n\nexport const getCountries = gql`\n query MagentoGetCountries {\n countries {\n ...country\n }\n }\n ${countryFragment}\n`;\n","import { gql } from 'apollo-angular';\n\nimport {\n countryFragment,\n regionFragment,\n} from './fragments/public_api';\n\nexport const getCountry = gql`\n query MagentoGetCountry($countryId: String!) {\n country(id: $countryId) {\n ...country\n available_regions {\n ...region\n }\n }\n }\n ${countryFragment}\n ${regionFragment}\n`;\n","export enum MagentoGeographyGraphQlErrorCode {\n\tCOUNTRY_NOT_FOUND = 'graphql-no-such-entity',\n}\n","import { DaffErrorCodeMap } from '@daffodil/core';\nimport { DaffCountryNotFoundError } from '@daffodil/geography/driver';\n\nimport { MagentoGeographyGraphQlErrorCode } from './codes';\n\nexport const DaffGeographyMagentoErrorMap: DaffErrorCodeMap = {\n [MagentoGeographyGraphQlErrorCode.COUNTRY_NOT_FOUND]: DaffCountryNotFoundError,\n};\n","import { daffTransformMagentoError } from '@daffodil/driver/magento';\n\nimport { DaffGeographyMagentoErrorMap } from './map';\n\nexport function transformMagentoGeographyError(error: any) {\n return daffTransformMagentoError(error, DaffGeographyMagentoErrorMap);\n}\n","import { ApolloQueryResult } from '@apollo/client/core';\n\nimport { DaffGeographyInvalidAPIResponseError } from '@daffodil/geography/driver';\n\nimport { MagentoGetCountriesResponse } from '../queries/public_api';\n\nexport const validateGetCountriesResponse = (response: ApolloQueryResult<MagentoGetCountriesResponse>) => {\n if (response.data.countries) {\n return response;\n } else {\n throw new DaffGeographyInvalidAPIResponseError('Get countries response does not contain a valid list of countries.');\n }\n};\n","import { Injectable } from '@angular/core';\nimport { Apollo } from 'apollo-angular';\nimport {\n Observable,\n throwError,\n} from 'rxjs';\nimport {\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffCountry } from '@daffodil/geography';\nimport { DaffGeographyServiceInterface } from '@daffodil/geography/driver';\n\nimport { transformMagentoGeographyError } from './errors/transform';\nimport { getCountry } from './queries/get-country';\nimport {\n getCountries,\n MagentoGetCountriesResponse,\n} from './queries/public_api';\nimport { MagentoGetCountryResponse } from './queries/responses/get-country';\nimport { DaffMagentoCountryTransformer } from './transforms/responses/country.service';\nimport { validateGetCountriesResponse } from './validators/public_api';\n\n/**\n * A service for making Magento GraphQL queries for carts.\n *\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffGeographyMagentoService implements DaffGeographyServiceInterface<DaffCountry> {\n constructor(\n private apollo: Apollo,\n public countryTransformer: DaffMagentoCountryTransformer,\n ) {}\n\n list(): Observable<DaffCountry[]> {\n return this.apollo.query<MagentoGetCountriesResponse>({\n query: getCountries,\n }).pipe(\n map(validateGetCountriesResponse),\n map(result => result.data.countries.map(country => this.countryTransformer.transform(country))),\n catchError(err => throwError(() => transformMagentoGeographyError(err))),\n );\n }\n\n get(countryId: DaffCountry['id']): Observable<DaffCountry> {\n return this.apollo.query<MagentoGetCountryResponse>({\n query: getCountry,\n variables: {\n countryId,\n },\n }).pipe(\n map(result => this.countryTransformer.transform(result.data.country)),\n catchError(err => throwError(() => transformMagentoGeographyError(err))),\n );\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffGeographyDriver } from '@daffodil/geography/driver';\n\nimport { DaffGeographyMagentoService } from './geography.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffGeographyMagentoDriverModule {\n static forRoot(): ModuleWithProviders<DaffGeographyMagentoDriverModule> {\n return {\n ngModule: DaffGeographyMagentoDriverModule,\n providers: [\n {\n provide: DaffGeographyDriver,\n useExisting: DaffGeographyMagentoService,\n },\n ],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.DaffMagentoSubdivisionTransformer","i2.DaffMagentoCountryTransformer"],"mappings":";;;;;;;;;;AAMA;;AAEG;MAIU,iCAAiC,CAAA;AAC5C;;AAEG;AACH,IAAA,SAAS,CAAC,MAAqB,EAAA;AAC7B,QAAA,OAAO,MAAM,GAAE,MAAA,CAAA,MAAA,CACV,EAAE,cAAc,EAAE,MAAM,EAAE,IAE7B,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EACrB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,UAAU,EAAE,MAAM,CAAC,IAAI,EAAA,CAAA,GACrB,IAAI,CAAC;KACV;;oKAZU,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAjC,sCAAA,iCAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,cAFhC,MAAM,EAAA,CAAA,CAAA;2FAEP,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;iBACnB,CAAA;;;ACJD;;AAEG;MAIU,6BAA6B,CAAA;AACxC,IAAA,WAAA,CAAmB,sBAAyD,EAAA;AAAzD,QAAA,IAAsB,CAAA,sBAAA,GAAtB,sBAAsB,CAAmC;KAAI;AAExE,IAAA,qBAAqB,CAAC,OAA4C,EAAA;AACxE,QAAA,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,CA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,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhC,sCAAA,gCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,YAHzC,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,sCAAA,gCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,EAJlC,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;2FAEU,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAL5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
@@ -0,0 +1,67 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Injectable, NgModule } from '@angular/core';
4
+ import { DaffGeographyDriver } from '@daffodil/geography/driver';
5
+ import { of } from 'rxjs';
6
+ import * as i1 from '@daffodil/geography/testing';
7
+
8
+ /**
9
+ * @inheritdoc
10
+ */
11
+ class DaffTestingGeographyService {
12
+ constructor(countryFactory, subdivisionFactory) {
13
+ this.countryFactory = countryFactory;
14
+ this.subdivisionFactory = subdivisionFactory;
15
+ }
16
+ get(countryId) {
17
+ return of(this.countryFactory.create({
18
+ id: countryId,
19
+ subdivisions: this.subdivisionFactory.createMany(3),
20
+ }));
21
+ }
22
+ list() {
23
+ return of(this.countryFactory.createMany(5));
24
+ }
25
+ }
26
+ /** @nocollapse */ /** @nocollapse */ DaffTestingGeographyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffTestingGeographyService, deps: [{ token: i1.DaffCountryFactory }, { token: i1.DaffSubdivisionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
27
+ /** @nocollapse */ /** @nocollapse */ DaffTestingGeographyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffTestingGeographyService, providedIn: 'root' });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffTestingGeographyService, decorators: [{
29
+ type: Injectable,
30
+ args: [{
31
+ providedIn: 'root',
32
+ }]
33
+ }], ctorParameters: function () { return [{ type: i1.DaffCountryFactory }, { type: i1.DaffSubdivisionFactory }]; } });
34
+
35
+ class DaffGeographyTestingDriverModule {
36
+ static forRoot() {
37
+ return {
38
+ ngModule: DaffGeographyTestingDriverModule,
39
+ providers: [
40
+ {
41
+ provide: DaffGeographyDriver,
42
+ useExisting: DaffTestingGeographyService,
43
+ },
44
+ ],
45
+ };
46
+ }
47
+ }
48
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingDriverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingDriverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingDriverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingDriverModule, imports: [CommonModule] });
50
+ /** @nocollapse */ /** @nocollapse */ DaffGeographyTestingDriverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingDriverModule, imports: [[
51
+ CommonModule,
52
+ ]] });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffGeographyTestingDriverModule, decorators: [{
54
+ type: NgModule,
55
+ args: [{
56
+ imports: [
57
+ CommonModule,
58
+ ],
59
+ }]
60
+ }] });
61
+
62
+ /**
63
+ * Generated bundle index. Do not edit.
64
+ */
65
+
66
+ export { DaffGeographyTestingDriverModule, DaffTestingGeographyService };
67
+ //# sourceMappingURL=daffodil-geography-driver-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-geography-driver-testing.mjs","sources":["../../../libs/geography/driver/testing/src/drivers/geography.service.ts","../../../libs/geography/driver/testing/src/drivers/geography-driver.module.ts","../../../libs/geography/driver/testing/src/daffodil-geography-driver-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n Observable,\n of,\n} from 'rxjs';\n\nimport { DaffCountry } from '@daffodil/geography';\nimport { DaffGeographyServiceInterface } from '@daffodil/geography/driver';\nimport {\n DaffCountryFactory,\n DaffSubdivisionFactory,\n} from '@daffodil/geography/testing';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffTestingGeographyService implements DaffGeographyServiceInterface<DaffCountry> {\n\n constructor(\n private countryFactory: DaffCountryFactory,\n private subdivisionFactory: DaffSubdivisionFactory,\n ) {}\n\n get(countryId: DaffCountry['id']): Observable<DaffCountry> {\n return of(this.countryFactory.create({\n id: countryId,\n subdivisions: this.subdivisionFactory.createMany(3),\n }));\n }\n\n list(): Observable<DaffCountry[]> {\n return of(this.countryFactory.createMany(5));\n }\n}\n","import { CommonModule } from '@angular/common';\nimport {\n NgModule,\n ModuleWithProviders,\n} from '@angular/core';\n\nimport { DaffGeographyDriver } from '@daffodil/geography/driver';\n\nimport { DaffTestingGeographyService } from './geography.service';\n\n@NgModule({\n imports: [\n CommonModule,\n ],\n})\nexport class DaffGeographyTestingDriverModule {\n static forRoot(): ModuleWithProviders<DaffGeographyTestingDriverModule> {\n return {\n ngModule: DaffGeographyTestingDriverModule,\n providers: [\n {\n provide: DaffGeographyDriver,\n useExisting: DaffTestingGeographyService,\n },\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,EAAE,gCAAgC;AAC1C,YAAA,SAAS,EAAE;AACT,gBAAA;AACE,oBAAA,OAAO,EAAE,mBAAmB;AAC5B,oBAAA,WAAW,EAAE,2BAA2B;AACzC,iBAAA;AACF,aAAA;SACF,CAAC;KACH;;mKAXU,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhC,sCAAA,gCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,YAHzC,YAAY,CAAA,EAAA,CAAA,CAAA;AAGH,sCAAA,gCAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gCAAgC,EAJlC,OAAA,EAAA,CAAA;YACP,YAAY;SACb,CAAA,EAAA,CAAA,CAAA;2FAEU,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAL5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;iBACF,CAAA;;;ACdD;;AAEG;;;;"}
@@ -24,4 +24,4 @@ const DaffGeographyDriver = new InjectionToken('DaffGeographyDriver');
24
24
  */
25
25
 
26
26
  export { DaffCountryNotFoundError, DaffGeographyDriver, DaffGeographyInvalidAPIResponseError };
27
- //# sourceMappingURL=daffodil-geography-driver.js.map
27
+ //# sourceMappingURL=daffodil-geography-driver.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daffodil-geography-driver.mjs","sources":["../../../libs/geography/driver/src/errors/country-not-found.ts","../../../libs/geography/driver/src/errors/invalid-api-response.ts","../../../libs/geography/driver/src/interfaces/geography-service.interface.ts","../../../libs/geography/driver/src/daffodil-geography-driver.ts"],"sourcesContent":["import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nexport class DaffCountryNotFoundError extends DaffInheritableError implements DaffError {\n public readonly code: string = 'DAFF_GEOGRAPHY_COUNTRY_NOT_FOUND';\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import {\n DaffError,\n DaffInheritableError,\n} from '@daffodil/core';\n\nexport class DaffGeographyInvalidAPIResponseError extends DaffInheritableError implements DaffError {\n public readonly code: string = 'DAFF_GEOGRAPHY_INVALID_API_RESPONSE';\n\n constructor(public message: string) {\n super(message);\n }\n}\n","import { InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nexport const DaffGeographyDriver = new InjectionToken<DaffGeographyServiceInterface>('DaffGeographyDriver');\n\nexport interface DaffGeographyServiceInterface<T extends DaffCountry = DaffCountry> {\n\t/**\n\t * Retrieves the list of countries available to the given store.\n\t */\n\tlist(): Observable<T[]>;\n\n\t/**\n\t * Retrieve precise information about a specific country.\n\t */\n\tget(id: T['id']): Observable<T>;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAKM,MAAO,wBAAyB,SAAQ,oBAAoB,CAAA;AAGhE,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;AADE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAFlB,QAAA,IAAI,CAAA,IAAA,GAAW,kCAAkC,CAAC;KAIjE;AACF;;ACNK,MAAO,oCAAqC,SAAQ,oBAAoB,CAAA;AAG5E,IAAA,WAAA,CAAmB,OAAe,EAAA;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;AADE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAQ;AAFlB,QAAA,IAAI,CAAA,IAAA,GAAW,qCAAqC,CAAC;KAIpE;AACF;;MCNY,mBAAmB,GAAG,IAAI,cAAc,CAAgC,qBAAqB;;ACL1G;;AAEG;;;;"}