@daffodil/geography 0.38.9 → 0.39.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 (150) hide show
  1. package/bundles/daffodil-geography-driver-in-memory.umd.js +12 -124
  2. package/bundles/daffodil-geography-driver-in-memory.umd.js.map +1 -1
  3. package/bundles/daffodil-geography-driver-in-memory.umd.min.js +1 -1
  4. package/bundles/daffodil-geography-driver-in-memory.umd.min.js.map +1 -1
  5. package/bundles/daffodil-geography-driver-magento.umd.js +15 -170
  6. package/bundles/daffodil-geography-driver-magento.umd.js.map +1 -1
  7. package/bundles/daffodil-geography-driver-magento.umd.min.js +1 -1
  8. package/bundles/daffodil-geography-driver-magento.umd.min.js.map +1 -1
  9. package/bundles/daffodil-geography-driver-testing.umd.js +3 -59
  10. package/bundles/daffodil-geography-driver-testing.umd.js.map +1 -1
  11. package/bundles/daffodil-geography-driver-testing.umd.min.js +1 -1
  12. package/bundles/daffodil-geography-driver-testing.umd.min.js.map +1 -1
  13. package/bundles/daffodil-geography-driver.umd.js +2 -58
  14. package/bundles/daffodil-geography-driver.umd.js.map +1 -1
  15. package/bundles/daffodil-geography-driver.umd.min.js +1 -1
  16. package/bundles/daffodil-geography-driver.umd.min.js.map +1 -1
  17. package/bundles/daffodil-geography-state-testing.umd.js +3 -58
  18. package/bundles/daffodil-geography-state-testing.umd.js.map +1 -1
  19. package/bundles/daffodil-geography-state-testing.umd.min.js +1 -1
  20. package/bundles/daffodil-geography-state-testing.umd.min.js.map +1 -1
  21. package/bundles/daffodil-geography-state.umd.js +63 -489
  22. package/bundles/daffodil-geography-state.umd.js.map +1 -1
  23. package/bundles/daffodil-geography-state.umd.min.js +2 -2
  24. package/bundles/daffodil-geography-state.umd.min.js.map +1 -1
  25. package/bundles/daffodil-geography-testing.umd.js +6 -78
  26. package/bundles/daffodil-geography-testing.umd.js.map +1 -1
  27. package/bundles/daffodil-geography-testing.umd.min.js +2 -2
  28. package/bundles/daffodil-geography-testing.umd.min.js.map +1 -1
  29. package/bundles/daffodil-geography.umd.js +8 -44
  30. package/bundles/daffodil-geography.umd.js.map +1 -1
  31. package/bundles/daffodil-geography.umd.min.js.map +1 -1
  32. package/driver/in-memory/package.json +1 -1
  33. package/driver/magento/package.json +1 -1
  34. package/driver/package.json +1 -1
  35. package/driver/testing/package.json +1 -1
  36. package/esm2015/comparators/address.js +3 -9
  37. package/esm2015/comparators/personal-address.js +3 -9
  38. package/esm2015/comparators/public_api.js +1 -6
  39. package/esm2015/daffodil-geography.js +2 -7
  40. package/esm2015/driver/daffodil-geography-driver.js +2 -7
  41. package/esm2015/driver/errors/country-not-found.js +1 -15
  42. package/esm2015/driver/errors/invalid-api-response.js +1 -15
  43. package/esm2015/driver/errors/public_api.js +1 -6
  44. package/esm2015/driver/in-memory/backend/geography.service.js +9 -57
  45. package/esm2015/driver/in-memory/daffodil-geography-driver-in-memory.js +2 -7
  46. package/esm2015/driver/in-memory/drivers/geography-driver.module.js +1 -9
  47. package/esm2015/driver/in-memory/drivers/geography.service.js +4 -36
  48. package/esm2015/driver/in-memory/drivers/public_api.js +1 -6
  49. package/esm2015/driver/in-memory/index.js +2 -7
  50. package/esm2015/driver/in-memory/public_api.js +2 -7
  51. package/esm2015/driver/index.js +2 -7
  52. package/esm2015/driver/interfaces/geography-service.interface.js +1 -25
  53. package/esm2015/driver/magento/daffodil-geography-driver-magento.js +2 -7
  54. package/esm2015/driver/magento/errors/codes.js +5 -11
  55. package/esm2015/driver/magento/errors/map.js +1 -7
  56. package/esm2015/driver/magento/errors/transform.js +1 -10
  57. package/esm2015/driver/magento/geography-driver.module.js +1 -9
  58. package/esm2015/driver/magento/geography.service.js +5 -50
  59. package/esm2015/driver/magento/index.js +2 -7
  60. package/esm2015/driver/magento/models/responses/country.js +2 -26
  61. package/esm2015/driver/magento/models/responses/public_api.js +2 -6
  62. package/esm2015/driver/magento/models/responses/region.js +2 -20
  63. package/esm2015/driver/magento/public_api.js +3 -8
  64. package/esm2015/driver/magento/queries/fragments/country.js +1 -7
  65. package/esm2015/driver/magento/queries/fragments/public_api.js +1 -6
  66. package/esm2015/driver/magento/queries/fragments/region.js +1 -7
  67. package/esm2015/driver/magento/queries/get-countries.js +1 -7
  68. package/esm2015/driver/magento/queries/get-country.js +1 -7
  69. package/esm2015/driver/magento/queries/public_api.js +3 -8
  70. package/esm2015/driver/magento/queries/responses/get-countries.js +2 -14
  71. package/esm2015/driver/magento/queries/responses/get-country.js +2 -14
  72. package/esm2015/driver/magento/queries/responses/public_api.js +2 -6
  73. package/esm2015/driver/magento/transforms/responses/country.service.js +3 -26
  74. package/esm2015/driver/magento/transforms/responses/subdivision.service.js +2 -9
  75. package/esm2015/driver/magento/validators/get-countries.js +3 -13
  76. package/esm2015/driver/magento/validators/public_api.js +1 -6
  77. package/esm2015/driver/testing/daffodil-geography-driver-testing.js +2 -7
  78. package/esm2015/driver/testing/drivers/geography-driver.module.js +1 -9
  79. package/esm2015/driver/testing/drivers/geography.service.js +3 -31
  80. package/esm2015/driver/testing/drivers/public_api.js +1 -6
  81. package/esm2015/driver/testing/index.js +2 -7
  82. package/esm2015/driver/testing/public_api.js +2 -7
  83. package/esm2015/index.js +2 -7
  84. package/esm2015/injection-tokens/error-matcher.token.js +2 -11
  85. package/esm2015/injection-tokens/public_api.js +1 -6
  86. package/esm2015/models/address.js +2 -34
  87. package/esm2015/models/country.js +2 -30
  88. package/esm2015/models/personal-address.js +2 -28
  89. package/esm2015/models/public_api.js +2 -6
  90. package/esm2015/models/subdivision.js +2 -18
  91. package/esm2015/public_api.js +4 -9
  92. package/esm2015/state/actions/geography.actions.js +10 -74
  93. package/esm2015/state/actions/public_api.js +2 -7
  94. package/esm2015/state/daffodil-geography-state.js +2 -7
  95. package/esm2015/state/effects/geography.effects.js +3 -61
  96. package/esm2015/state/facades/geography/geography-facade.interface.js +2 -40
  97. package/esm2015/state/facades/geography/geography.facade.js +3 -62
  98. package/esm2015/state/geography-state.module.js +1 -6
  99. package/esm2015/state/index.js +4 -9
  100. package/esm2015/state/reducers/country-entities/country-entities-adapter.js +4 -18
  101. package/esm2015/state/reducers/country-entities/country-entities-initial-state.js +1 -7
  102. package/esm2015/state/reducers/country-entities/country-entities-state.interface.js +2 -6
  103. package/esm2015/state/reducers/country-entities/country-entities.reducer.js +7 -17
  104. package/esm2015/state/reducers/country-entities/public_api.js +1 -6
  105. package/esm2015/state/reducers/geography/geography-initial-state.js +1 -7
  106. package/esm2015/state/reducers/geography/geography-state.interface.js +2 -16
  107. package/esm2015/state/reducers/geography/geography.reducer.js +1 -12
  108. package/esm2015/state/reducers/geography/public_api.js +1 -6
  109. package/esm2015/state/reducers/geography-reducers-state.interface.js +1 -26
  110. package/esm2015/state/reducers/geography-reducers.js +1 -7
  111. package/esm2015/state/reducers/geography-store-feature-key.js +1 -7
  112. package/esm2015/state/reducers/public_api.js +3 -8
  113. package/esm2015/state/selectors/country-entities.selector.js +10 -84
  114. package/esm2015/state/selectors/geography-all.selector.js +4 -23
  115. package/esm2015/state/selectors/geography-feature.selector.js +5 -28
  116. package/esm2015/state/selectors/geography.selector.js +9 -55
  117. package/esm2015/state/selectors/public_api.js +2 -7
  118. package/esm2015/state/testing/daffodil-geography-state-testing.js +2 -7
  119. package/esm2015/state/testing/geography-testing.module.js +1 -6
  120. package/esm2015/state/testing/index.js +2 -7
  121. package/esm2015/state/testing/mock-geography-facade.js +3 -39
  122. package/esm2015/state/testing/public_api.js +1 -6
  123. package/esm2015/testing/daffodil-geography-testing.js +2 -7
  124. package/esm2015/testing/factories/address.factory.js +2 -21
  125. package/esm2015/testing/factories/country.factory.js +2 -21
  126. package/esm2015/testing/factories/personal-address.factory.js +2 -23
  127. package/esm2015/testing/factories/public_api.js +5 -10
  128. package/esm2015/testing/factories/subdivision.factory.js +2 -15
  129. package/esm2015/testing/index.js +2 -7
  130. package/esm2015/testing/public_api.js +2 -7
  131. package/fesm2015/daffodil-geography-driver-in-memory.js +13 -121
  132. package/fesm2015/daffodil-geography-driver-in-memory.js.map +1 -1
  133. package/fesm2015/daffodil-geography-driver-magento.js +15 -196
  134. package/fesm2015/daffodil-geography-driver-magento.js.map +1 -1
  135. package/fesm2015/daffodil-geography-driver-testing.js +4 -60
  136. package/fesm2015/daffodil-geography-driver-testing.js.map +1 -1
  137. package/fesm2015/daffodil-geography-driver.js +1 -67
  138. package/fesm2015/daffodil-geography-driver.js.map +1 -1
  139. package/fesm2015/daffodil-geography-state-testing.js +4 -59
  140. package/fesm2015/daffodil-geography-state-testing.js.map +1 -1
  141. package/fesm2015/daffodil-geography-state.js +49 -488
  142. package/fesm2015/daffodil-geography-state.js.map +1 -1
  143. package/fesm2015/daffodil-geography-testing.js +6 -98
  144. package/fesm2015/daffodil-geography-testing.js.map +1 -1
  145. package/fesm2015/daffodil-geography.js +8 -57
  146. package/fesm2015/daffodil-geography.js.map +1 -1
  147. package/package.json +3 -3
  148. package/state/package.json +1 -1
  149. package/state/testing/package.json +1 -1
  150. package/testing/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-geography-state.js","sources":["../../../libs/geography/state/src/actions/geography.actions.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities-adapter.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities-initial-state.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities.reducer.ts","../../../libs/geography/state/src/reducers/geography/geography-initial-state.ts","../../../libs/geography/state/src/reducers/geography/geography.reducer.ts","../../../libs/geography/state/src/reducers/geography-reducers.ts","../../../libs/geography/state/src/reducers/geography-store-feature-key.ts","../../../libs/geography/state/src/selectors/geography-feature.selector.ts","../../../libs/geography/state/src/selectors/country-entities.selector.ts","../../../libs/geography/state/src/selectors/geography.selector.ts","../../../libs/geography/state/src/selectors/geography-all.selector.ts","../../../libs/geography/state/src/facades/geography/geography.facade.ts","../../../libs/geography/state/src/effects/geography.effects.ts","../../../libs/geography/state/src/geography-state.module.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nexport enum DaffGeographyActionTypes {\n CountryLoadAction = '[DaffGeography] Country Load Action',\n CountryLoadSuccessAction = '[DaffGeography] Country Load Success Action',\n CountryLoadFailureAction = '[DaffGeography] Country Load Failure Action',\n CountryListAction = '[DaffGeography] Country List Action',\n CountryListSuccessAction = '[DaffGeography] Country List Success Action',\n CountryListFailureAction = '[DaffGeography] Country List Failure Action',\n}\n\nexport class DaffCountryLoad<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadAction;\n\n constructor(public payload: T['id']) {}\n}\n\nexport class DaffCountryLoadSuccess<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadSuccessAction;\n\n constructor(public payload: T) {}\n}\n\nexport class DaffCountryLoadFailure implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\nexport class DaffCountryList implements Action {\n readonly type = DaffGeographyActionTypes.CountryListAction;\n}\n\nexport class DaffCountryListSuccess<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryListSuccessAction;\n\n constructor(public payload: T[]) {}\n}\n\nexport class DaffCountryListFailure implements Action {\n readonly type = DaffGeographyActionTypes.CountryListFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\nexport type DaffGeographyActions<T extends DaffCountry> =\n | DaffCountryLoad<T>\n | DaffCountryLoadSuccess<T>\n | DaffCountryLoadFailure\n | DaffCountryList\n | DaffCountryListSuccess<T>\n | DaffCountryListFailure;\n","import {\n EntityAdapter,\n createEntityAdapter,\n} from '@ngrx/entity';\n\nimport { DaffCountry } from '@daffodil/geography';\n\n/**\n * Country Adapter for changing/overwriting entity state.\n */\nexport const getCountryAdapter = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): EntityAdapter<T> =>\n cache = cache || createEntityAdapter<T>();\n})();\n","import { getCountryAdapter } from './country-entities-adapter';\nimport { DaffCountryEntityState } from './country-entities-state.interface';\n\n/**\n * Initial state for country entity state.\n */\nexport const daffCountryEntitiesInitialState: DaffCountryEntityState<any> = getCountryAdapter().getInitialState();\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffGeographyActions,\n DaffGeographyActionTypes,\n} from '../../actions/public_api';\nimport { getCountryAdapter } from './country-entities-adapter';\nimport { daffCountryEntitiesInitialState } from './country-entities-initial-state';\nimport { DaffCountryEntityState } from './country-entities-state.interface';\n\n/**\n * Reducer function that catches actions and changes/overwrites country entities state.\n */\nexport function daffCountryEntitiesReducer<T extends DaffCountry = DaffCountry>(\n state = daffCountryEntitiesInitialState,\n action: DaffGeographyActions<T>,\n): DaffCountryEntityState<T> {\n const adapter = getCountryAdapter<T>();\n\n switch (action.type) {\n case DaffGeographyActionTypes.CountryLoadSuccessAction:\n return adapter.upsertOne({\n ...action.payload,\n loaded: true,\n }, state);\n\n case DaffGeographyActionTypes.CountryListSuccessAction:\n return adapter.upsertMany(\n action.payload.map(country => ({\n ...country,\n // defer to the loaded state of the country already in state (if it exists) but init field to false if it does not\n loaded: (state.entities[country.id] && state.entities[country.id].loaded) || false,\n // if the country coming in has no subdivisions and the same country in state does, use the subdivisions in state\n subdivisions: country.subdivisions.length === 0 && state.entities[country.id] && state.entities[country.id].subdivisions.length > 0\n ? state.entities[country.id].subdivisions\n : country.subdivisions,\n })),\n state,\n );\n\n default:\n return state;\n }\n}\n","import { DaffGeographyReducerState } from './geography-state.interface';\n\nexport const daffGeographyInitialState: DaffGeographyReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffGeographyActions,\n DaffGeographyActionTypes,\n} from '../../actions/public_api';\nimport { daffGeographyInitialState } from './geography-initial-state';\nimport { DaffGeographyReducerState } from './geography-state.interface';\n\nexport function daffGeographyReducer<T extends DaffCountry>(\n state = daffGeographyInitialState,\n action: DaffGeographyActions<T>,\n): DaffGeographyReducerState {\n switch (action.type) {\n case DaffGeographyActionTypes.CountryLoadAction:\n case DaffGeographyActionTypes.CountryListAction:\n return { ...state, loading: true };\n\n case DaffGeographyActionTypes.CountryLoadSuccessAction:\n case DaffGeographyActionTypes.CountryListSuccessAction:\n return {\n ...state,\n errors: [],\n loading: false,\n };\n\n case DaffGeographyActionTypes.CountryLoadFailureAction:\n case DaffGeographyActionTypes.CountryListFailureAction:\n return {\n ...state,\n errors: [\n ...state.errors,\n action.payload,\n ],\n loading: false,\n };\n\n default:\n return state;\n }\n}\n","import { daffCountryEntitiesReducer } from './country-entities/country-entities.reducer';\nimport { daffGeographyReducer } from './geography/geography.reducer';\n\nexport const daffGeographyReducers = {\n geography: daffGeographyReducer,\n countries: daffCountryEntitiesReducer,\n};\n","export const DAFF_GEOGRAPHY_STORE_FEATURE_KEY = 'daffGeography';\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport {\n DaffGeographyFeatureState,\n DAFF_GEOGRAPHY_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\nexport interface DaffGeographyFeatureSelector<T extends DaffCountry = DaffCountry> {\n selectGeographyFeatureState: MemoizedSelector<DaffGeographyStateRootSlice<T>, DaffGeographyFeatureState<T>>;\n}\n\nexport const getDaffGeographyFeatureStateSelector = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographyFeatureSelector<T> =>\n cache = cache || {\n selectGeographyFeatureState: createFeatureSelector<DaffGeographyFeatureState<T>>(DAFF_GEOGRAPHY_STORE_FEATURE_KEY),\n };\n})();\n","import { Dictionary } from '@ngrx/entity';\nimport {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport {\n getCountryAdapter,\n DaffCountryEntityState,\n} from '../reducers/public_api';\nimport { getDaffGeographyFeatureStateSelector } from './geography-feature.selector';\n\nexport interface DaffCountryEntitySelectors<T extends DaffCountry = DaffCountry> {\n selectCountryEntitiesState: MemoizedSelector<DaffGeographyStateRootSlice<T>, DaffCountryEntityState<T>>;\n selectCountryIds: MemoizedSelector<DaffGeographyStateRootSlice<T>, T['id'][]>;\n selectCountryEntities: MemoizedSelector<DaffGeographyStateRootSlice<T>, Dictionary<T>>;\n selectAllCountries: MemoizedSelector<DaffGeographyStateRootSlice<T>, T[]>;\n selectCountryTotal: MemoizedSelector<DaffGeographyStateRootSlice<T>, number>;\n selectCountry: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, T>;\n selectCountrySubdivisions: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, T['subdivisions']>;\n selectIsCountryFullyLoaded: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, boolean>;\n}\n\nconst createCountryEntitySelectors = <T extends DaffCountry = DaffCountry>() => {\n const { selectGeographyFeatureState } = getDaffGeographyFeatureStateSelector<T>();\n const selectCountryEntitiesState = createSelector(\n selectGeographyFeatureState,\n state => state.countries,\n );\n const { selectIds, selectEntities, selectAll, selectTotal } = getCountryAdapter<T>().getSelectors(selectCountryEntitiesState);\n\n const selectCountry = defaultMemoize((countryId: T['id']) => createSelector(\n selectEntities,\n (countries: Dictionary<T>) => countries[countryId],\n )).memoized;\n\n const selectCountrySubdivisions = defaultMemoize((countryId: T['id']) => createSelector(\n selectCountry(countryId),\n (country: T) => country?.subdivisions || [],\n )).memoized;\n\n const selectIsCountryFullyLoaded = defaultMemoize((countryId: T['id']) => createSelector(\n selectCountry(countryId),\n (country: T) => country?.loaded,\n )).memoized;\n\n return {\n selectCountryEntitiesState,\n /**\n * Selector for country IDs.\n */\n selectCountryIds: selectIds,\n /**\n * Selector for country entities.\n */\n selectCountryEntities: selectEntities,\n /**\n * Selector for all countries.\n */\n selectAllCountries: selectAll,\n /**\n * Selector for total number of countries.\n */\n selectCountryTotal: selectTotal,\n /**\n * Selector for a specific country.\n */\n selectCountry,\n /**\n * Selector for a specific country's subdivisions.\n */\n selectCountrySubdivisions,\n /**\n * Selector for checking if a country has been fully loaded.\n * If true, then a country's subdivisions will be populated if any exist.\n */\n selectIsCountryFullyLoaded,\n };\n};\n\nexport const getDaffCountryEntitySelectors = (() => {\n let cache;\n return <T extends DaffCountry>(): DaffCountryEntitySelectors<T> =>\n cache = cache || createCountryEntitySelectors<T>();\n})();\n\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport { DaffGeographyReducerState } from '../reducers/public_api';\nimport { getDaffGeographyFeatureStateSelector } from './geography-feature.selector';\n\nexport interface DaffGeographySelectors {\n selectGeographyState: MemoizedSelector<DaffGeographyStateRootSlice, DaffGeographyReducerState>;\n selectGeographyLoading: MemoizedSelector<DaffGeographyStateRootSlice, boolean>;\n selectGeographyErrors: MemoizedSelector<DaffGeographyStateRootSlice, DaffStateError[]>;\n}\n\nconst createGeographySelectors = <T extends DaffCountry = DaffCountry>() => {\n const { selectGeographyFeatureState } = getDaffGeographyFeatureStateSelector<T>();\n const selectGeographyState = createSelector(\n selectGeographyFeatureState,\n state => state.geography,\n );\n\n const selectGeographyLoading = createSelector(\n selectGeographyState,\n state => state.loading,\n );\n\n const selectGeographyErrors = createSelector(\n selectGeographyState,\n state => state.errors,\n );\n\n return {\n selectGeographyState,\n selectGeographyLoading,\n selectGeographyErrors,\n };\n};\n\nexport const getGeographySelectors = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographySelectors =>\n cache = cache || createGeographySelectors<T>();\n})();\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffCountryEntitySelectors,\n getDaffCountryEntitySelectors,\n} from './country-entities.selector';\nimport {\n DaffGeographyFeatureSelector,\n getDaffGeographyFeatureStateSelector,\n} from './geography-feature.selector';\nimport {\n DaffGeographySelectors,\n getGeographySelectors,\n} from './geography.selector';\n\nexport interface DaffGeographyAllSelectors<T extends DaffCountry = DaffCountry> extends\n DaffCountryEntitySelectors<T>,\n DaffGeographySelectors,\n DaffGeographyFeatureSelector<T> {}\n\nexport const getDaffGeographySelectors = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographyAllSelectors<T> =>\n cache = cache || {\n ...getGeographySelectors<T>(),\n ...getDaffCountryEntitySelectors<T>(),\n ...getDaffGeographyFeatureStateSelector<T>(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport { Dictionary } from '@ngrx/entity';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../../reducers/public_api';\nimport {\n getDaffGeographySelectors,\n DaffGeographyAllSelectors,\n} from '../../selectors/public_api';\nimport { DaffGeographyFacadeInterface } from './geography-facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffGeographyFacade<T extends DaffCountry = DaffCountry> implements DaffGeographyFacadeInterface<T> {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n countries$: Observable<T[]>;\n countryIds$: Observable<T['id'][]>;\n countryCount$: Observable<number>;\n countryEntities$: Observable<Dictionary<T>>;\n\n private _selectCountry: DaffGeographyAllSelectors<T>['selectCountry'];\n private _selectCountrySubdivisions: DaffGeographyAllSelectors<T>['selectCountrySubdivisions'];\n private _selectIsCountryFullyLoaded: DaffGeographyAllSelectors<T>['selectIsCountryFullyLoaded'];\n\n constructor(private store: Store<DaffGeographyStateRootSlice<T>>) {\n const {\n selectCountryIds,\n selectCountryEntities,\n selectAllCountries,\n selectCountryTotal,\n selectGeographyLoading,\n selectGeographyErrors,\n selectCountry,\n selectCountrySubdivisions,\n selectIsCountryFullyLoaded,\n } = getDaffGeographySelectors<T>();\n\n this._selectCountry = selectCountry;\n this._selectCountrySubdivisions = selectCountrySubdivisions;\n this._selectIsCountryFullyLoaded = selectIsCountryFullyLoaded;\n\n this.loading$ = this.store.pipe(select(selectGeographyLoading));\n this.errors$ = this.store.pipe(select(selectGeographyErrors));\n\n this.countries$ = this.store.pipe(select(selectAllCountries));\n this.countryIds$ = this.store.pipe(select(selectCountryIds));\n this.countryCount$ = this.store.pipe(select(selectCountryTotal));\n this.countryEntities$ = this.store.pipe(select(selectCountryEntities));\n }\n\n getCountry(id: T['id']): Observable<T> {\n return this.store.pipe(select(this._selectCountry(id)));\n }\n\n getCountrySubdivisions(id: T['id']): Observable<T['subdivisions']> {\n return this.store.pipe(select(this._selectCountrySubdivisions(id)));\n }\n\n isCountryFullyLoaded(id: T['id']): Observable<boolean> {\n return this.store.pipe(select(this._selectIsCountryFullyLoaded(id)));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n Effect,\n ofType,\n} from '@ngrx/effects';\nimport { of } from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DaffCountry,\n DAFF_GEOGRAPHY_ERROR_MATCHER,\n} from '@daffodil/geography';\nimport {\n DaffGeographyServiceInterface,\n DaffGeographyDriver,\n} from '@daffodil/geography/driver';\n\nimport {\n DaffGeographyActionTypes,\n DaffCountryLoad,\n DaffCountryLoadSuccess,\n DaffCountryLoadFailure,\n DaffCountryList,\n DaffCountryListSuccess,\n DaffCountryListFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffGeographyEffects<T extends DaffCountry> {\n constructor(\n private actions$: Actions,\n @Inject(DaffGeographyDriver) private driver: DaffGeographyServiceInterface<T>,\n @Inject(DAFF_GEOGRAPHY_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n ) {}\n\n @Effect()\n get$ = this.actions$.pipe(\n ofType(DaffGeographyActionTypes.CountryLoadAction),\n switchMap((action: DaffCountryLoad<T>) => this.driver.get(action.payload).pipe(\n map(resp => new DaffCountryLoadSuccess(resp)),\n catchError((error: DaffError) => of(new DaffCountryLoadFailure(this.errorMatcher(error)))),\n )),\n );\n\n @Effect()\n list$ = this.actions$.pipe(\n ofType(DaffGeographyActionTypes.CountryListAction),\n switchMap((action: DaffCountryList) => this.driver.list().pipe(\n map(resp => new DaffCountryListSuccess(resp)),\n catchError((error: DaffError) => of(new DaffCountryListFailure(this.errorMatcher(error)))),\n )),\n );\n}\n","import { NgModule } from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport { DaffGeographyEffects } from './effects/geography.effects';\nimport {\n daffGeographyReducers,\n DAFF_GEOGRAPHY_STORE_FEATURE_KEY,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_GEOGRAPHY_STORE_FEATURE_KEY, daffGeographyReducers),\n EffectsModule.forFeature([\n DaffGeographyEffects,\n ]),\n ],\n})\nexport class DaffGeographyStateModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;MAKY,wBAAwB;IAClC,iBAAiB,uCAAwC;IACzD,wBAAwB,+CAAgD;IACxE,wBAAwB,+CAAgD;IACxE,iBAAiB,uCAAwC;IACzD,wBAAwB,+CAAgD;IACxE,wBAAwB,+CAAgD;EACzE;;;;MAEY,eAAe;;;;IAG1B,YAAmB,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;QAF1B,SAAI,GAAG,wBAAwB,CAAC,iBAAiB,CAAC;KAEpB;CACxC;;;IAHC,+BAA2D;;IAE/C,kCAAuB;;;;;MAGxB,sBAAsB;;;;IAGjC,YAAmB,OAAU;QAAV,YAAO,GAAP,OAAO,CAAG;QAFp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BAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAC3F,EAAC,CACH,CAAC;QAGF,UAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CACxB,MAAM,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,EAClD,SAAS;;;;QAAC,CAAC,MAAuB,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,CAC5D,GAAG;;;;QAAC,IAAI,IAAI,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAC,EAC7C,UAAU;;;;QAAC,CAAC,KAAgB,KAAK,EAAE,CAAC,IAAI,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,CAC3F,EAAC,CACH,CAAC;KAlBE;;;YANL,UAAU;;;;YAhCT,OAAO;4CAoCJ,MAAM,SAAC,mBAAmB;4CAC1B,MAAM,SAAC,4BAA4B;;AAItC;IADC,MAAM,EAAE;;kDAOP;AAGF;IADC,MAAM,EAAE;;mDAOP;;;IAhBF,oCAOE;;IAEF,qCAOE;;;;;IArBA,wCAAyB;;;;;IACzB,sCAA6E;;;;;IAC7E,4CAA4E;;;;;;;;MCxBnE,wBAAwB;;;YARpC,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,WAAW,CAAC,UAAU,CAAC,gCAAgC,EAAE,qBAAqB,CAAC;oBAC/E,aAAa,CAAC,UAAU,CAAC;wBACvB,oBAAoB;qBACrB,CAAC;iBACH;aACF;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"daffodil-geography-state.js","sources":["../../../libs/geography/state/src/actions/geography.actions.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities-adapter.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities-initial-state.ts","../../../libs/geography/state/src/reducers/country-entities/country-entities.reducer.ts","../../../libs/geography/state/src/reducers/geography/geography-initial-state.ts","../../../libs/geography/state/src/reducers/geography/geography.reducer.ts","../../../libs/geography/state/src/reducers/geography-reducers.ts","../../../libs/geography/state/src/reducers/geography-store-feature-key.ts","../../../libs/geography/state/src/selectors/geography-feature.selector.ts","../../../libs/geography/state/src/selectors/country-entities.selector.ts","../../../libs/geography/state/src/selectors/geography.selector.ts","../../../libs/geography/state/src/selectors/geography-all.selector.ts","../../../libs/geography/state/src/facades/geography/geography.facade.ts","../../../libs/geography/state/src/effects/geography.effects.ts","../../../libs/geography/state/src/geography-state.module.ts","../../../libs/geography/state/src/daffodil-geography-state.ts"],"sourcesContent":["import { Action } from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nexport enum DaffGeographyActionTypes {\n CountryLoadAction = '[DaffGeography] Country Load Action',\n CountryLoadSuccessAction = '[DaffGeography] Country Load Success Action',\n CountryLoadFailureAction = '[DaffGeography] Country Load Failure Action',\n CountryListAction = '[DaffGeography] Country List Action',\n CountryListSuccessAction = '[DaffGeography] Country List Success Action',\n CountryListFailureAction = '[DaffGeography] Country List Failure Action',\n}\n\nexport class DaffCountryLoad<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadAction;\n\n constructor(public payload: T['id']) {}\n}\n\nexport class DaffCountryLoadSuccess<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadSuccessAction;\n\n constructor(public payload: T) {}\n}\n\nexport class DaffCountryLoadFailure implements Action {\n readonly type = DaffGeographyActionTypes.CountryLoadFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\nexport class DaffCountryList implements Action {\n readonly type = DaffGeographyActionTypes.CountryListAction;\n}\n\nexport class DaffCountryListSuccess<T extends DaffCountry> implements Action {\n readonly type = DaffGeographyActionTypes.CountryListSuccessAction;\n\n constructor(public payload: T[]) {}\n}\n\nexport class DaffCountryListFailure implements Action {\n readonly type = DaffGeographyActionTypes.CountryListFailureAction;\n\n constructor(public payload: DaffStateError) {}\n}\n\nexport type DaffGeographyActions<T extends DaffCountry> =\n | DaffCountryLoad<T>\n | DaffCountryLoadSuccess<T>\n | DaffCountryLoadFailure\n | DaffCountryList\n | DaffCountryListSuccess<T>\n | DaffCountryListFailure;\n","import {\n EntityAdapter,\n createEntityAdapter,\n} from '@ngrx/entity';\n\nimport { DaffCountry } from '@daffodil/geography';\n\n/**\n * Country Adapter for changing/overwriting entity state.\n */\nexport const getCountryAdapter = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): EntityAdapter<T> =>\n cache = cache || createEntityAdapter<T>();\n})();\n","import { getCountryAdapter } from './country-entities-adapter';\nimport { DaffCountryEntityState } from './country-entities-state.interface';\n\n/**\n * Initial state for country entity state.\n */\nexport const daffCountryEntitiesInitialState: DaffCountryEntityState<any> = getCountryAdapter().getInitialState();\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffGeographyActions,\n DaffGeographyActionTypes,\n} from '../../actions/public_api';\nimport { getCountryAdapter } from './country-entities-adapter';\nimport { daffCountryEntitiesInitialState } from './country-entities-initial-state';\nimport { DaffCountryEntityState } from './country-entities-state.interface';\n\n/**\n * Reducer function that catches actions and changes/overwrites country entities state.\n */\nexport function daffCountryEntitiesReducer<T extends DaffCountry = DaffCountry>(\n state = daffCountryEntitiesInitialState,\n action: DaffGeographyActions<T>,\n): DaffCountryEntityState<T> {\n const adapter = getCountryAdapter<T>();\n\n switch (action.type) {\n case DaffGeographyActionTypes.CountryLoadSuccessAction:\n return adapter.upsertOne({\n ...action.payload,\n loaded: true,\n }, state);\n\n case DaffGeographyActionTypes.CountryListSuccessAction:\n return adapter.upsertMany(\n action.payload.map(country => ({\n ...country,\n // defer to the loaded state of the country already in state (if it exists) but init field to false if it does not\n loaded: (state.entities[country.id] && state.entities[country.id].loaded) || false,\n // if the country coming in has no subdivisions and the same country in state does, use the subdivisions in state\n subdivisions: country.subdivisions.length === 0 && state.entities[country.id] && state.entities[country.id].subdivisions.length > 0\n ? state.entities[country.id].subdivisions\n : country.subdivisions,\n })),\n state,\n );\n\n default:\n return state;\n }\n}\n","import { DaffGeographyReducerState } from './geography-state.interface';\n\nexport const daffGeographyInitialState: DaffGeographyReducerState = {\n loading: false,\n errors: [],\n};\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffGeographyActions,\n DaffGeographyActionTypes,\n} from '../../actions/public_api';\nimport { daffGeographyInitialState } from './geography-initial-state';\nimport { DaffGeographyReducerState } from './geography-state.interface';\n\nexport function daffGeographyReducer<T extends DaffCountry>(\n state = daffGeographyInitialState,\n action: DaffGeographyActions<T>,\n): DaffGeographyReducerState {\n switch (action.type) {\n case DaffGeographyActionTypes.CountryLoadAction:\n case DaffGeographyActionTypes.CountryListAction:\n return { ...state, loading: true };\n\n case DaffGeographyActionTypes.CountryLoadSuccessAction:\n case DaffGeographyActionTypes.CountryListSuccessAction:\n return {\n ...state,\n errors: [],\n loading: false,\n };\n\n case DaffGeographyActionTypes.CountryLoadFailureAction:\n case DaffGeographyActionTypes.CountryListFailureAction:\n return {\n ...state,\n errors: [\n ...state.errors,\n action.payload,\n ],\n loading: false,\n };\n\n default:\n return state;\n }\n}\n","import { daffCountryEntitiesReducer } from './country-entities/country-entities.reducer';\nimport { daffGeographyReducer } from './geography/geography.reducer';\n\nexport const daffGeographyReducers = {\n geography: daffGeographyReducer,\n countries: daffCountryEntitiesReducer,\n};\n","export const DAFF_GEOGRAPHY_STORE_FEATURE_KEY = 'daffGeography';\n","import {\n createFeatureSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport {\n DaffGeographyFeatureState,\n DAFF_GEOGRAPHY_STORE_FEATURE_KEY,\n} from '../reducers/public_api';\n\nexport interface DaffGeographyFeatureSelector<T extends DaffCountry = DaffCountry> {\n selectGeographyFeatureState: MemoizedSelector<DaffGeographyStateRootSlice<T>, DaffGeographyFeatureState<T>>;\n}\n\nexport const getDaffGeographyFeatureStateSelector = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographyFeatureSelector<T> =>\n cache = cache || {\n selectGeographyFeatureState: createFeatureSelector<DaffGeographyFeatureState<T>>(DAFF_GEOGRAPHY_STORE_FEATURE_KEY),\n };\n})();\n","import { Dictionary } from '@ngrx/entity';\nimport {\n createSelector,\n MemoizedSelector,\n defaultMemoize,\n} from '@ngrx/store';\n\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport {\n getCountryAdapter,\n DaffCountryEntityState,\n} from '../reducers/public_api';\nimport { getDaffGeographyFeatureStateSelector } from './geography-feature.selector';\n\nexport interface DaffCountryEntitySelectors<T extends DaffCountry = DaffCountry> {\n selectCountryEntitiesState: MemoizedSelector<DaffGeographyStateRootSlice<T>, DaffCountryEntityState<T>>;\n selectCountryIds: MemoizedSelector<DaffGeographyStateRootSlice<T>, T['id'][]>;\n selectCountryEntities: MemoizedSelector<DaffGeographyStateRootSlice<T>, Dictionary<T>>;\n selectAllCountries: MemoizedSelector<DaffGeographyStateRootSlice<T>, T[]>;\n selectCountryTotal: MemoizedSelector<DaffGeographyStateRootSlice<T>, number>;\n selectCountry: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, T>;\n selectCountrySubdivisions: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, T['subdivisions']>;\n selectIsCountryFullyLoaded: (id: T['id']) => MemoizedSelector<DaffGeographyStateRootSlice<T>, boolean>;\n}\n\nconst createCountryEntitySelectors = <T extends DaffCountry = DaffCountry>() => {\n const { selectGeographyFeatureState } = getDaffGeographyFeatureStateSelector<T>();\n const selectCountryEntitiesState = createSelector(\n selectGeographyFeatureState,\n state => state.countries,\n );\n const { selectIds, selectEntities, selectAll, selectTotal } = getCountryAdapter<T>().getSelectors(selectCountryEntitiesState);\n\n const selectCountry = defaultMemoize((countryId: T['id']) => createSelector(\n selectEntities,\n (countries: Dictionary<T>) => countries[countryId],\n )).memoized;\n\n const selectCountrySubdivisions = defaultMemoize((countryId: T['id']) => createSelector(\n selectCountry(countryId),\n (country: T) => country?.subdivisions || [],\n )).memoized;\n\n const selectIsCountryFullyLoaded = defaultMemoize((countryId: T['id']) => createSelector(\n selectCountry(countryId),\n (country: T) => country?.loaded,\n )).memoized;\n\n return {\n selectCountryEntitiesState,\n /**\n * Selector for country IDs.\n */\n selectCountryIds: selectIds,\n /**\n * Selector for country entities.\n */\n selectCountryEntities: selectEntities,\n /**\n * Selector for all countries.\n */\n selectAllCountries: selectAll,\n /**\n * Selector for total number of countries.\n */\n selectCountryTotal: selectTotal,\n /**\n * Selector for a specific country.\n */\n selectCountry,\n /**\n * Selector for a specific country's subdivisions.\n */\n selectCountrySubdivisions,\n /**\n * Selector for checking if a country has been fully loaded.\n * If true, then a country's subdivisions will be populated if any exist.\n */\n selectIsCountryFullyLoaded,\n };\n};\n\nexport const getDaffCountryEntitySelectors = (() => {\n let cache;\n return <T extends DaffCountry>(): DaffCountryEntitySelectors<T> =>\n cache = cache || createCountryEntitySelectors<T>();\n})();\n\n","import {\n createSelector,\n MemoizedSelector,\n} from '@ngrx/store';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../reducers/geography-reducers-state.interface';\nimport { DaffGeographyReducerState } from '../reducers/public_api';\nimport { getDaffGeographyFeatureStateSelector } from './geography-feature.selector';\n\nexport interface DaffGeographySelectors {\n selectGeographyState: MemoizedSelector<DaffGeographyStateRootSlice, DaffGeographyReducerState>;\n selectGeographyLoading: MemoizedSelector<DaffGeographyStateRootSlice, boolean>;\n selectGeographyErrors: MemoizedSelector<DaffGeographyStateRootSlice, DaffStateError[]>;\n}\n\nconst createGeographySelectors = <T extends DaffCountry = DaffCountry>() => {\n const { selectGeographyFeatureState } = getDaffGeographyFeatureStateSelector<T>();\n const selectGeographyState = createSelector(\n selectGeographyFeatureState,\n state => state.geography,\n );\n\n const selectGeographyLoading = createSelector(\n selectGeographyState,\n state => state.loading,\n );\n\n const selectGeographyErrors = createSelector(\n selectGeographyState,\n state => state.errors,\n );\n\n return {\n selectGeographyState,\n selectGeographyLoading,\n selectGeographyErrors,\n };\n};\n\nexport const getGeographySelectors = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographySelectors =>\n cache = cache || createGeographySelectors<T>();\n})();\n","import { DaffCountry } from '@daffodil/geography';\n\nimport {\n DaffCountryEntitySelectors,\n getDaffCountryEntitySelectors,\n} from './country-entities.selector';\nimport {\n DaffGeographyFeatureSelector,\n getDaffGeographyFeatureStateSelector,\n} from './geography-feature.selector';\nimport {\n DaffGeographySelectors,\n getGeographySelectors,\n} from './geography.selector';\n\nexport interface DaffGeographyAllSelectors<T extends DaffCountry = DaffCountry> extends\n DaffCountryEntitySelectors<T>,\n DaffGeographySelectors,\n DaffGeographyFeatureSelector<T> {}\n\nexport const getDaffGeographySelectors = (() => {\n let cache;\n return <T extends DaffCountry = DaffCountry>(): DaffGeographyAllSelectors<T> =>\n cache = cache || {\n ...getGeographySelectors<T>(),\n ...getDaffCountryEntitySelectors<T>(),\n ...getDaffGeographyFeatureStateSelector<T>(),\n };\n})();\n","import { Injectable } from '@angular/core';\nimport { Dictionary } from '@ngrx/entity';\nimport {\n Action,\n Store,\n select,\n} from '@ngrx/store';\nimport { Observable } from 'rxjs';\n\nimport { DaffStateError } from '@daffodil/core/state';\nimport { DaffCountry } from '@daffodil/geography';\n\nimport { DaffGeographyStateRootSlice } from '../../reducers/public_api';\nimport {\n getDaffGeographySelectors,\n DaffGeographyAllSelectors,\n} from '../../selectors/public_api';\nimport { DaffGeographyFacadeInterface } from './geography-facade.interface';\n\n/**\n * @inheritdoc\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffGeographyFacade<T extends DaffCountry = DaffCountry> implements DaffGeographyFacadeInterface<T> {\n loading$: Observable<boolean>;\n errors$: Observable<DaffStateError[]>;\n\n countries$: Observable<T[]>;\n countryIds$: Observable<T['id'][]>;\n countryCount$: Observable<number>;\n countryEntities$: Observable<Dictionary<T>>;\n\n private _selectCountry: DaffGeographyAllSelectors<T>['selectCountry'];\n private _selectCountrySubdivisions: DaffGeographyAllSelectors<T>['selectCountrySubdivisions'];\n private _selectIsCountryFullyLoaded: DaffGeographyAllSelectors<T>['selectIsCountryFullyLoaded'];\n\n constructor(private store: Store<DaffGeographyStateRootSlice<T>>) {\n const {\n selectCountryIds,\n selectCountryEntities,\n selectAllCountries,\n selectCountryTotal,\n selectGeographyLoading,\n selectGeographyErrors,\n selectCountry,\n selectCountrySubdivisions,\n selectIsCountryFullyLoaded,\n } = getDaffGeographySelectors<T>();\n\n this._selectCountry = selectCountry;\n this._selectCountrySubdivisions = selectCountrySubdivisions;\n this._selectIsCountryFullyLoaded = selectIsCountryFullyLoaded;\n\n this.loading$ = this.store.pipe(select(selectGeographyLoading));\n this.errors$ = this.store.pipe(select(selectGeographyErrors));\n\n this.countries$ = this.store.pipe(select(selectAllCountries));\n this.countryIds$ = this.store.pipe(select(selectCountryIds));\n this.countryCount$ = this.store.pipe(select(selectCountryTotal));\n this.countryEntities$ = this.store.pipe(select(selectCountryEntities));\n }\n\n getCountry(id: T['id']): Observable<T> {\n return this.store.pipe(select(this._selectCountry(id)));\n }\n\n getCountrySubdivisions(id: T['id']): Observable<T['subdivisions']> {\n return this.store.pipe(select(this._selectCountrySubdivisions(id)));\n }\n\n isCountryFullyLoaded(id: T['id']): Observable<boolean> {\n return this.store.pipe(select(this._selectIsCountryFullyLoaded(id)));\n }\n\n dispatch(action: Action) {\n this.store.dispatch(action);\n }\n}\n","import {\n Injectable,\n Inject,\n} from '@angular/core';\nimport {\n Actions,\n Effect,\n ofType,\n} from '@ngrx/effects';\nimport { of } from 'rxjs';\nimport {\n switchMap,\n map,\n catchError,\n} from 'rxjs/operators';\n\nimport { DaffError } from '@daffodil/core';\nimport { ErrorTransformer } from '@daffodil/core/state';\nimport {\n DaffCountry,\n DAFF_GEOGRAPHY_ERROR_MATCHER,\n} from '@daffodil/geography';\nimport {\n DaffGeographyServiceInterface,\n DaffGeographyDriver,\n} from '@daffodil/geography/driver';\n\nimport {\n DaffGeographyActionTypes,\n DaffCountryLoad,\n DaffCountryLoadSuccess,\n DaffCountryLoadFailure,\n DaffCountryList,\n DaffCountryListSuccess,\n DaffCountryListFailure,\n} from '../actions/public_api';\n\n@Injectable()\nexport class DaffGeographyEffects<T extends DaffCountry> {\n constructor(\n private actions$: Actions,\n @Inject(DaffGeographyDriver) private driver: DaffGeographyServiceInterface<T>,\n @Inject(DAFF_GEOGRAPHY_ERROR_MATCHER) private errorMatcher: ErrorTransformer,\n ) {}\n\n @Effect()\n get$ = this.actions$.pipe(\n ofType(DaffGeographyActionTypes.CountryLoadAction),\n switchMap((action: DaffCountryLoad<T>) => this.driver.get(action.payload).pipe(\n map(resp => new DaffCountryLoadSuccess(resp)),\n catchError((error: DaffError) => of(new DaffCountryLoadFailure(this.errorMatcher(error)))),\n )),\n );\n\n @Effect()\n list$ = this.actions$.pipe(\n ofType(DaffGeographyActionTypes.CountryListAction),\n switchMap((action: DaffCountryList) => this.driver.list().pipe(\n map(resp => new DaffCountryListSuccess(resp)),\n catchError((error: DaffError) => of(new DaffCountryListFailure(this.errorMatcher(error)))),\n )),\n );\n}\n","import { NgModule } from '@angular/core';\nimport { EffectsModule } from '@ngrx/effects';\nimport { StoreModule } from '@ngrx/store';\n\nimport { DaffGeographyEffects } from './effects/geography.effects';\nimport {\n daffGeographyReducers,\n DAFF_GEOGRAPHY_STORE_FEATURE_KEY,\n} from './reducers/public_api';\n\n@NgModule({\n imports: [\n StoreModule.forFeature(DAFF_GEOGRAPHY_STORE_FEATURE_KEY, daffGeographyReducers),\n EffectsModule.forFeature([\n DaffGeographyEffects,\n ]),\n ],\n})\nexport class DaffGeographyStateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {DaffGeographyEffects as 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EAClD,SAAS,CAAC,CAAC,MAAuB,KAAK,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,IAAI,CAC5D,GAAG,CAAC,IAAI,IAAI,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC,EAC7C,UAAU,CAAC,CAAC,KAAgB,KAAK,EAAE,CAAC,IAAI,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAC3F,CAAC,CACH,CAAC;KAlBE;;;YANL,UAAU;;;;YAhCT,OAAO;4CAoCJ,MAAM,SAAC,mBAAmB;4CAC1B,MAAM,SAAC,4BAA4B;;AAItC;IADC,MAAM,EAAE;;kDAOP;AAGF;IADC,MAAM,EAAE;;mDAOP;;MC3CS,wBAAwB;;;YARpC,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,WAAW,CAAC,UAAU,CAAC,gCAAgC,EAAE,qBAAqB,CAAC;oBAC/E,aAAa,CAAC,UAAU,CAAC;wBACvB,oBAAoB;qBACrB,CAAC;iBACH;aACF;;;ACjBD;;;;;;"}
@@ -1,12 +1,7 @@
1
- import { Injectable, ɵɵdefineInjectable } from '@angular/core';
1
+ import { ɵɵdefineInjectable, Injectable } from '@angular/core';
2
2
  import { address, name, internet, phone, datatype, random } from 'faker/locale/en_US';
3
3
  import { DaffModelFactory } from '@daffodil/core/testing';
4
4
 
5
- /**
6
- * @fileoverview added by tsickle
7
- * Generated from: factories/address.factory.ts
8
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9
- */
10
5
  class MockDaffAddress {
11
6
  constructor() {
12
7
  this.street = address.streetName();
@@ -17,25 +12,12 @@ class MockDaffAddress {
17
12
  this.country = address.zipCode();
18
13
  }
19
14
  }
20
- if (false) {
21
- /** @type {?} */
22
- MockDaffAddress.prototype.street;
23
- /** @type {?} */
24
- MockDaffAddress.prototype.street2;
25
- /** @type {?} */
26
- MockDaffAddress.prototype.city;
27
- /** @type {?} */
28
- MockDaffAddress.prototype.region;
29
- /** @type {?} */
30
- MockDaffAddress.prototype.postcode;
31
- /** @type {?} */
32
- MockDaffAddress.prototype.country;
33
- }
34
15
  class DaffAddressFactory extends DaffModelFactory {
35
16
  constructor() {
36
17
  super(MockDaffAddress);
37
18
  }
38
19
  }
20
+ /** @nocollapse */ DaffAddressFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffAddressFactory_Factory() { return new DaffAddressFactory(); }, token: DaffAddressFactory, providedIn: "root" });
39
21
  DaffAddressFactory.decorators = [
40
22
  { type: Injectable, args: [{
41
23
  providedIn: 'root',
@@ -43,13 +25,7 @@ DaffAddressFactory.decorators = [
43
25
  ];
44
26
  /** @nocollapse */
45
27
  DaffAddressFactory.ctorParameters = () => [];
46
- /** @nocollapse */ DaffAddressFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffAddressFactory_Factory() { return new DaffAddressFactory(); }, token: DaffAddressFactory, providedIn: "root" });
47
28
 
48
- /**
49
- * @fileoverview added by tsickle
50
- * Generated from: factories/personal-address.factory.ts
51
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
52
- */
53
29
  class MockDaffPersonalAddress extends MockDaffAddress {
54
30
  constructor() {
55
31
  super(...arguments);
@@ -62,27 +38,12 @@ class MockDaffPersonalAddress extends MockDaffAddress {
62
38
  this.telephone = phone.phoneNumber();
63
39
  }
64
40
  }
65
- if (false) {
66
- /** @type {?} */
67
- MockDaffPersonalAddress.prototype.prefix;
68
- /** @type {?} */
69
- MockDaffPersonalAddress.prototype.suffix;
70
- /** @type {?} */
71
- MockDaffPersonalAddress.prototype.firstname;
72
- /** @type {?} */
73
- MockDaffPersonalAddress.prototype.middlename;
74
- /** @type {?} */
75
- MockDaffPersonalAddress.prototype.lastname;
76
- /** @type {?} */
77
- MockDaffPersonalAddress.prototype.email;
78
- /** @type {?} */
79
- MockDaffPersonalAddress.prototype.telephone;
80
- }
81
41
  class DaffPersonalAddressFactory extends DaffModelFactory {
82
42
  constructor() {
83
43
  super(MockDaffPersonalAddress);
84
44
  }
85
45
  }
46
+ /** @nocollapse */ DaffPersonalAddressFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffPersonalAddressFactory_Factory() { return new DaffPersonalAddressFactory(); }, token: DaffPersonalAddressFactory, providedIn: "root" });
86
47
  DaffPersonalAddressFactory.decorators = [
87
48
  { type: Injectable, args: [{
88
49
  providedIn: 'root',
@@ -90,13 +51,7 @@ DaffPersonalAddressFactory.decorators = [
90
51
  ];
91
52
  /** @nocollapse */
92
53
  DaffPersonalAddressFactory.ctorParameters = () => [];
93
- /** @nocollapse */ DaffPersonalAddressFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffPersonalAddressFactory_Factory() { return new DaffPersonalAddressFactory(); }, token: DaffPersonalAddressFactory, providedIn: "root" });
94
54
 
95
- /**
96
- * @fileoverview added by tsickle
97
- * Generated from: factories/country.factory.ts
98
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
99
- */
100
55
  class MockCountry {
101
56
  constructor() {
102
57
  this.id = datatype.uuid();
@@ -107,25 +62,12 @@ class MockCountry {
107
62
  this.subdivisions = [];
108
63
  }
109
64
  }
110
- if (false) {
111
- /** @type {?} */
112
- MockCountry.prototype.id;
113
- /** @type {?} */
114
- MockCountry.prototype.name;
115
- /** @type {?} */
116
- MockCountry.prototype.name_en;
117
- /** @type {?} */
118
- MockCountry.prototype.alpha2;
119
- /** @type {?} */
120
- MockCountry.prototype.alpha3;
121
- /** @type {?} */
122
- MockCountry.prototype.subdivisions;
123
- }
124
65
  class DaffCountryFactory extends DaffModelFactory {
125
66
  constructor() {
126
67
  super(MockCountry);
127
68
  }
128
69
  }
70
+ /** @nocollapse */ DaffCountryFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffCountryFactory_Factory() { return new DaffCountryFactory(); }, token: DaffCountryFactory, providedIn: "root" });
129
71
  DaffCountryFactory.decorators = [
130
72
  { type: Injectable, args: [{
131
73
  providedIn: 'root',
@@ -133,13 +75,7 @@ DaffCountryFactory.decorators = [
133
75
  ];
134
76
  /** @nocollapse */
135
77
  DaffCountryFactory.ctorParameters = () => [];
136
- /** @nocollapse */ DaffCountryFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffCountryFactory_Factory() { return new DaffCountryFactory(); }, token: DaffCountryFactory, providedIn: "root" });
137
78
 
138
- /**
139
- * @fileoverview added by tsickle
140
- * Generated from: factories/subdivision.factory.ts
141
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
142
- */
143
79
  class MockSubdivision {
144
80
  constructor() {
145
81
  this.id = datatype.uuid();
@@ -147,19 +83,12 @@ class MockSubdivision {
147
83
  this.iso_3166_2 = random.alphaNumeric(2);
148
84
  }
149
85
  }
150
- if (false) {
151
- /** @type {?} */
152
- MockSubdivision.prototype.id;
153
- /** @type {?} */
154
- MockSubdivision.prototype.name;
155
- /** @type {?} */
156
- MockSubdivision.prototype.iso_3166_2;
157
- }
158
86
  class DaffSubdivisionFactory extends DaffModelFactory {
159
87
  constructor() {
160
88
  super(MockSubdivision);
161
89
  }
162
90
  }
91
+ /** @nocollapse */ DaffSubdivisionFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffSubdivisionFactory_Factory() { return new DaffSubdivisionFactory(); }, token: DaffSubdivisionFactory, providedIn: "root" });
163
92
  DaffSubdivisionFactory.decorators = [
164
93
  { type: Injectable, args: [{
165
94
  providedIn: 'root',
@@ -167,30 +96,9 @@ DaffSubdivisionFactory.decorators = [
167
96
  ];
168
97
  /** @nocollapse */
169
98
  DaffSubdivisionFactory.ctorParameters = () => [];
170
- /** @nocollapse */ DaffSubdivisionFactory.ɵprov = ɵɵdefineInjectable({ factory: function DaffSubdivisionFactory_Factory() { return new DaffSubdivisionFactory(); }, token: DaffSubdivisionFactory, providedIn: "root" });
171
-
172
- /**
173
- * @fileoverview added by tsickle
174
- * Generated from: factories/public_api.ts
175
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
176
- */
177
-
178
- /**
179
- * @fileoverview added by tsickle
180
- * Generated from: public_api.ts
181
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
182
- */
183
-
184
- /**
185
- * @fileoverview added by tsickle
186
- * Generated from: index.ts
187
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
188
- */
189
99
 
190
100
  /**
191
- * @fileoverview added by tsickle
192
- * Generated from: daffodil-geography-testing.ts
193
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
101
+ * Generated bundle index. Do not edit.
194
102
  */
195
103
 
196
104
  export { DaffAddressFactory, DaffCountryFactory, DaffPersonalAddressFactory, DaffSubdivisionFactory, MockCountry, MockDaffAddress, MockDaffPersonalAddress, MockSubdivision };
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-geography-testing.js","sources":["../../../libs/geography/testing/src/factories/address.factory.ts","../../../libs/geography/testing/src/factories/personal-address.factory.ts","../../../libs/geography/testing/src/factories/country.factory.ts","../../../libs/geography/testing/src/factories/subdivision.factory.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffAddress } from '@daffodil/geography';\n\n\nexport class MockDaffAddress implements DaffAddress {\n street = faker.address.streetName();\n street2 = faker.address.secondaryAddress();\n city = faker.address.city();\n region = faker.address.stateAbbr();\n postcode = faker.address.zipCode();\n country = faker.address.zipCode();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAddressFactory extends DaffModelFactory<DaffAddress>{\n constructor(){\n super(MockDaffAddress);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPersonalAddress } from '@daffodil/geography';\n\nimport { MockDaffAddress } from './address.factory';\n\nexport class MockDaffPersonalAddress extends MockDaffAddress implements DaffPersonalAddress {\n prefix = faker.name.prefix();\n suffix = faker.name.suffix();\n firstname = faker.name.firstName();\n middlename = faker.name.firstName();\n lastname = faker.name.lastName();\n email = faker.internet.email();\n telephone = faker.phone.phoneNumber();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPersonalAddressFactory extends DaffModelFactory<DaffPersonalAddress>{\n constructor() {\n super(MockDaffPersonalAddress);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffCountry } from '@daffodil/geography';\n\nexport class MockCountry implements DaffCountry {\n id = faker.datatype.uuid();\n name = faker.random.word();\n\tname_en = faker.random.word();\n\talpha2 = faker.random.alphaNumeric(2);\n\talpha3 = faker.random.alphaNumeric(3);\n\tsubdivisions = [];\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCountryFactory extends DaffModelFactory<DaffCountry> {\n constructor() {\n super(MockCountry);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffSubdivision } from '@daffodil/geography';\n\nexport class MockSubdivision implements DaffSubdivision {\n id = faker.datatype.uuid();\n name = faker.random.word();\n\tiso_3166_2 = faker.random.alphaNumeric(2);\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffSubdivisionFactory extends DaffModelFactory<DaffSubdivision> {\n constructor() {\n super(MockSubdivision);\n }\n}\n"],"names":["faker.address","faker.name","faker.internet","faker.phone","faker.datatype","faker.random"],"mappings":";;;;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CdY,WAAW;IAAxB;QACE,OAAE,GAAGC,QAAc,CAAC,IAAI,EAAE,CAAC;QAC3B,SAAI,GAAGC,MAAY,CAAC,IAAI,EAAE,CAAC;QAC5B,YAAO,GAAGA,MAAY,CAAC,IAAI,EAAE,CAAC;QAC9B,WAAM,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACtC,WAAM,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACtC,iBAAY,GAAG,EAAE,CAAC;KAClB;CAAA;;;IANC,yBAA2B;;IAC3B,2BAA2B;;IAC5B,8BAA8B;;IAC9B,6BAAsC;;IACtC,6BAAsC;;IACtC,mCAAkB;;MAMN,kBAAmB,SAAQ,gBAA6B;IACnE;QACE,KAAK,CAAC,WAAW,CAAC,CAAC;KACpB;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;;;;;;;MCXY,eAAe;IAA5B;QACE,OAAE,GAAGD,QAAc,CAAC,IAAI,EAAE,CAAC;QAC3B,SAAI,GAAGC,MAAY,CAAC,IAAI,EAAE,CAAC;QAC5B,eAAU,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;KAC1C;CAAA;;;IAHC,6BAA2B;;IAC3B,+BAA2B;;IAC5B,qCAA0C;;MAM9B,sBAAuB,SAAQ,gBAAiC;IAC3E;QACE,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"daffodil-geography-testing.js","sources":["../../../libs/geography/testing/src/factories/address.factory.ts","../../../libs/geography/testing/src/factories/personal-address.factory.ts","../../../libs/geography/testing/src/factories/country.factory.ts","../../../libs/geography/testing/src/factories/subdivision.factory.ts","../../../libs/geography/testing/src/daffodil-geography-testing.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffAddress } from '@daffodil/geography';\n\n\nexport class MockDaffAddress implements DaffAddress {\n street = faker.address.streetName();\n street2 = faker.address.secondaryAddress();\n city = faker.address.city();\n region = faker.address.stateAbbr();\n postcode = faker.address.zipCode();\n country = faker.address.zipCode();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffAddressFactory extends DaffModelFactory<DaffAddress>{\n constructor(){\n super(MockDaffAddress);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffPersonalAddress } from '@daffodil/geography';\n\nimport { MockDaffAddress } from './address.factory';\n\nexport class MockDaffPersonalAddress extends MockDaffAddress implements DaffPersonalAddress {\n prefix = faker.name.prefix();\n suffix = faker.name.suffix();\n firstname = faker.name.firstName();\n middlename = faker.name.firstName();\n lastname = faker.name.lastName();\n email = faker.internet.email();\n telephone = faker.phone.phoneNumber();\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffPersonalAddressFactory extends DaffModelFactory<DaffPersonalAddress>{\n constructor() {\n super(MockDaffPersonalAddress);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffCountry } from '@daffodil/geography';\n\nexport class MockCountry implements DaffCountry {\n id = faker.datatype.uuid();\n name = faker.random.word();\n\tname_en = faker.random.word();\n\talpha2 = faker.random.alphaNumeric(2);\n\talpha3 = faker.random.alphaNumeric(3);\n\tsubdivisions = [];\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffCountryFactory extends DaffModelFactory<DaffCountry> {\n constructor() {\n super(MockCountry);\n }\n}\n","import { Injectable } from '@angular/core';\nimport * as faker from 'faker/locale/en_US';\n\nimport { DaffModelFactory } from '@daffodil/core/testing';\nimport { DaffSubdivision } from '@daffodil/geography';\n\nexport class MockSubdivision implements DaffSubdivision {\n id = faker.datatype.uuid();\n name = faker.random.word();\n\tiso_3166_2 = faker.random.alphaNumeric(2);\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffSubdivisionFactory extends DaffModelFactory<DaffSubdivision> {\n constructor() {\n super(MockSubdivision);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["faker.address","faker.name","faker.internet","faker.phone","faker.datatype","faker.random"],"mappings":";;;;MAOa,eAAe;IAA5B;QACE,WAAM,GAAGA,OAAa,CAAC,UAAU,EAAE,CAAC;QACpC,YAAO,GAAGA,OAAa,CAAC,gBAAgB,EAAE,CAAC;QAC3C,SAAI,GAAGA,OAAa,CAAC,IAAI,EAAE,CAAC;QAC5B,WAAM,GAAGA,OAAa,CAAC,SAAS,EAAE,CAAC;QACnC,aAAQ,GAAGA,OAAa,CAAC,OAAO,EAAE,CAAC;QACnC,YAAO,GAAGA,OAAa,CAAC,OAAO,EAAE,CAAC;KACnC;CAAA;MAKY,kBAAmB,SAAQ,gBAA6B;IACnE;QACE,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCVY,uBAAwB,SAAQ,eAAe;IAA5D;;QACE,WAAM,GAAGC,IAAU,CAAC,MAAM,EAAE,CAAC;QAC7B,WAAM,GAAGA,IAAU,CAAC,MAAM,EAAE,CAAC;QAC7B,cAAS,GAAGA,IAAU,CAAC,SAAS,EAAE,CAAC;QACnC,eAAU,GAAGA,IAAU,CAAC,SAAS,EAAE,CAAC;QACpC,aAAQ,GAAGA,IAAU,CAAC,QAAQ,EAAE,CAAC;QACjC,UAAK,GAAGC,QAAc,CAAC,KAAK,EAAE,CAAC;QAC/B,cAAS,GAAGC,KAAW,CAAC,WAAW,EAAE,CAAC;KACvC;CAAA;MAKY,0BAA2B,SAAQ,gBAAqC;IACnF;QACE,KAAK,CAAC,uBAAuB,CAAC,CAAC;KAChC;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCdY,WAAW;IAAxB;QACE,OAAE,GAAGC,QAAc,CAAC,IAAI,EAAE,CAAC;QAC3B,SAAI,GAAGC,MAAY,CAAC,IAAI,EAAE,CAAC;QAC5B,YAAO,GAAGA,MAAY,CAAC,IAAI,EAAE,CAAC;QAC9B,WAAM,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACtC,WAAM,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QACtC,iBAAY,GAAG,EAAE,CAAC;KAClB;CAAA;MAKY,kBAAmB,SAAQ,gBAA6B;IACnE;QACE,KAAK,CAAC,WAAW,CAAC,CAAC;KACpB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;MCXY,eAAe;IAA5B;QACE,OAAE,GAAGD,QAAc,CAAC,IAAI,EAAE,CAAC;QAC3B,SAAI,GAAGC,MAAY,CAAC,IAAI,EAAE,CAAC;QAC5B,eAAU,GAAGA,MAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;KAC1C;CAAA;MAKY,sBAAuB,SAAQ,gBAAiC;IAC3E;QACE,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;;;;YANF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;ACdD;;;;;;"}
@@ -1,23 +1,11 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { daffTransformErrorToStateError } from '@daffodil/core/state';
3
3
 
4
- /**
5
- * @fileoverview added by tsickle
6
- * Generated from: models/public_api.ts
7
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8
- */
9
-
10
- /**
11
- * @fileoverview added by tsickle
12
- * Generated from: comparators/address.ts
13
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
14
- */
15
4
  /**
16
5
  * Compares two addresses and returns true if all of their fields are equal.
17
6
  *
18
- * @param {?} address0 An address.
19
- * @param {?} address1 An address.
20
- * @return {?}
7
+ * @param address0 An address.
8
+ * @param address1 An address.
21
9
  */
22
10
  function daffCompareAddresses(address0, address1) {
23
11
  return !!(address0 && address1 &&
@@ -30,17 +18,11 @@ function daffCompareAddresses(address0, address1) {
30
18
  address0.postcode === address1.postcode);
31
19
  }
32
20
 
33
- /**
34
- * @fileoverview added by tsickle
35
- * Generated from: comparators/personal-address.ts
36
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
37
- */
38
21
  /**
39
22
  * Compares two personal addresses and returns true if all of their fields are equal.
40
23
  *
41
- * @param {?} address0 A personal address.
42
- * @param {?} address1 A personal address.
43
- * @return {?}
24
+ * @param address0 A personal address.
25
+ * @param address1 A personal address.
44
26
  */
45
27
  function daffComparePersonalAddresses(address0, address1) {
46
28
  return !!(address0 && address1 &&
@@ -54,49 +36,18 @@ function daffComparePersonalAddresses(address0, address1) {
54
36
  daffCompareAddresses(address0, address1));
55
37
  }
56
38
 
57
- /**
58
- * @fileoverview added by tsickle
59
- * Generated from: comparators/public_api.ts
60
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
61
- */
62
-
63
- /**
64
- * @fileoverview added by tsickle
65
- * Generated from: injection-tokens/error-matcher.token.ts
66
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
67
- */
68
39
  /**
69
40
  * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.
70
41
  * Can be used to further refine Daffodil errors into more specific app errors.
71
- * @type {?}
72
- */
73
- const DAFF_GEOGRAPHY_ERROR_MATCHER = new InjectionToken('DAFF_GEOGRAPHY_ERROR_MATCHER', { factory: (/**
74
- * @return {?}
75
- */
76
- () => daffTransformErrorToStateError) });
77
-
78
- /**
79
- * @fileoverview added by tsickle
80
- * Generated from: injection-tokens/public_api.ts
81
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
82
42
  */
43
+ const DAFF_GEOGRAPHY_ERROR_MATCHER = new InjectionToken('DAFF_GEOGRAPHY_ERROR_MATCHER', { factory: () => daffTransformErrorToStateError });
83
44
 
84
- /**
85
- * @fileoverview added by tsickle
86
- * Generated from: public_api.ts
87
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
88
- */
89
-
90
- /**
91
- * @fileoverview added by tsickle
92
- * Generated from: index.ts
93
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
45
+ /*
46
+ * Public API Surface of @daffodil/geography
94
47
  */
95
48
 
96
49
  /**
97
- * @fileoverview added by tsickle
98
- * Generated from: daffodil-geography.ts
99
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
50
+ * Generated bundle index. Do not edit.
100
51
  */
101
52
 
102
53
  export { DAFF_GEOGRAPHY_ERROR_MATCHER, daffCompareAddresses, daffComparePersonalAddresses };
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-geography.js","sources":["../../../libs/geography/src/comparators/address.ts","../../../libs/geography/src/comparators/personal-address.ts","../../../libs/geography/src/injection-tokens/error-matcher.token.ts"],"sourcesContent":["import { DaffAddress } from '../models/address';\n\n/**\n * Compares two addresses and returns true if all of their fields are equal.\n *\n * @param address0 An address.\n * @param address1 An address.\n */\nexport function daffCompareAddresses(address0: DaffAddress, address1: DaffAddress): boolean {\n return !!(address0 && address1 &&\n address0.street === address1.street &&\n address0.street2 === address1.street2 &&\n address0.city === address1.city &&\n address0.region === address1.region &&\n address0.country === address1.country &&\n address0.country_id === address1.country_id &&\n address0.postcode === address1.postcode);\n}\n","import { DaffPersonalAddress } from '../models/personal-address';\nimport { daffCompareAddresses } from './address';\n\n/**\n * Compares two personal addresses and returns true if all of their fields are equal.\n *\n * @param address0 A personal address.\n * @param address1 A personal address.\n */\nexport function daffComparePersonalAddresses(address0: DaffPersonalAddress, address1: DaffPersonalAddress): boolean {\n return !!(address0 && address1 &&\n address0.prefix === address1.prefix &&\n address0.suffix === address1.suffix &&\n address0.firstname === address1.firstname &&\n address0.middlename === address1.middlename &&\n address0.lastname === address1.lastname &&\n address0.telephone === address1.telephone &&\n address0.email === address1.email &&\n daffCompareAddresses(address0, address1));\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_GEOGRAPHY_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_GEOGRAPHY_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;SAQgB,oBAAoB,CAAC,QAAqB,EAAE,QAAqB;IAC/E,OAAO,CAAC,EAAE,QAAQ,IAAI,QAAQ;QAC5B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACrC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;QAC/B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACrC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU;QAC3C,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC7C;;;;;;;;;;;;;;SCRgB,4BAA4B,CAAC,QAA6B,EAAE,QAA6B;IACvG,OAAO,CAAC,EAAE,QAAQ,IAAI,QAAQ;QAC5B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;QACzC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU;QAC3C,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;QACvC,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;QACzC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK;QACjC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC9C;;;;;;;;;;;;;;;;;;MCXa,4BAA4B,GAAG,IAAI,cAAc,CAC5D,8BAA8B,EAC9B,EAAE,OAAO;;;IAAE,MAAM,8BAA8B,CAAA,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"daffodil-geography.js","sources":["../../../libs/geography/src/comparators/address.ts","../../../libs/geography/src/comparators/personal-address.ts","../../../libs/geography/src/injection-tokens/error-matcher.token.ts","../../../libs/geography/src/public_api.ts","../../../libs/geography/src/daffodil-geography.ts"],"sourcesContent":["import { DaffAddress } from '../models/address';\n\n/**\n * Compares two addresses and returns true if all of their fields are equal.\n *\n * @param address0 An address.\n * @param address1 An address.\n */\nexport function daffCompareAddresses(address0: DaffAddress, address1: DaffAddress): boolean {\n return !!(address0 && address1 &&\n address0.street === address1.street &&\n address0.street2 === address1.street2 &&\n address0.city === address1.city &&\n address0.region === address1.region &&\n address0.country === address1.country &&\n address0.country_id === address1.country_id &&\n address0.postcode === address1.postcode);\n}\n","import { DaffPersonalAddress } from '../models/personal-address';\nimport { daffCompareAddresses } from './address';\n\n/**\n * Compares two personal addresses and returns true if all of their fields are equal.\n *\n * @param address0 A personal address.\n * @param address1 A personal address.\n */\nexport function daffComparePersonalAddresses(address0: DaffPersonalAddress, address1: DaffPersonalAddress): boolean {\n return !!(address0 && address1 &&\n address0.prefix === address1.prefix &&\n address0.suffix === address1.suffix &&\n address0.firstname === address1.firstname &&\n address0.middlename === address1.middlename &&\n address0.lastname === address1.lastname &&\n address0.telephone === address1.telephone &&\n address0.email === address1.email &&\n daffCompareAddresses(address0, address1));\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_GEOGRAPHY_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_GEOGRAPHY_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/*\n * Public API Surface of @daffodil/geography\n */\nexport * from './models/public_api';\nexport * from './comparators/public_api';\nexport * from './injection-tokens/public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;;;;;SAMgB,oBAAoB,CAAC,QAAqB,EAAE,QAAqB;IAC/E,OAAO,CAAC,EAAE,QAAQ,IAAI,QAAQ;QAC5B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACrC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;QAC/B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;QACrC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU;QAC3C,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC7C;;ACdA;;;;;;SAMgB,4BAA4B,CAAC,QAA6B,EAAE,QAA6B;IACvG,OAAO,CAAC,EAAE,QAAQ,IAAI,QAAQ;QAC5B,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;QACnC,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;QACzC,QAAQ,CAAC,UAAU,KAAK,QAAQ,CAAC,UAAU;QAC3C,QAAQ,CAAC,QAAQ,KAAK,QAAQ,CAAC,QAAQ;QACvC,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,SAAS;QACzC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,KAAK;QACjC,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC9C;;ACfA;;;;MAIa,4BAA4B,GAAG,IAAI,cAAc,CAC5D,8BAA8B,EAC9B,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACVnD;;;;ACAA;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daffodil/geography",
3
- "version": "0.38.9",
3
+ "version": "0.39.0",
4
4
  "description": "A package for interacting with platforms that provide geographic data information like States and Countries",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,10 +14,10 @@
14
14
  "homepage": "https://github.com/graycoreio/daffodil",
15
15
  "peerDependencies": {
16
16
  "@angular/core": "^11.0.0",
17
- "@daffodil/core": "0.38.9"
17
+ "@daffodil/core": "0.39.0"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@daffodil/driver": "0.38.9"
20
+ "@daffodil/driver": "0.39.0"
21
21
  },
22
22
  "main": "bundles/daffodil-geography.umd.js",
23
23
  "module": "fesm2015/daffodil-geography.js",
@@ -8,4 +8,4 @@
8
8
  "typings": "daffodil-geography-state.d.ts",
9
9
  "metadata": "daffodil-geography-state.metadata.json",
10
10
  "sideEffects": false
11
- }
11
+ }
@@ -8,4 +8,4 @@
8
8
  "typings": "daffodil-geography-state-testing.d.ts",
9
9
  "metadata": "daffodil-geography-state-testing.metadata.json",
10
10
  "sideEffects": false
11
- }
11
+ }
@@ -8,4 +8,4 @@
8
8
  "typings": "daffodil-geography-testing.d.ts",
9
9
  "metadata": "daffodil-geography-testing.metadata.json",
10
10
  "sideEffects": false
11
- }
11
+ }