@daffodil/geography 0.66.1 → 0.67.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.
- package/{esm2020 → esm2022}/driver/in-memory/backend/geography.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/geography-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/in-memory/drivers/geography.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/geography-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/geography.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/responses/country.service.mjs +5 -5
- package/{esm2020 → esm2022}/driver/magento/transforms/responses/subdivision.service.mjs +4 -4
- package/{esm2020 → esm2022}/driver/testing/drivers/geography-driver.module.mjs +5 -5
- package/{esm2020 → esm2022}/driver/testing/drivers/geography.service.mjs +5 -5
- package/{esm2020 → esm2022}/state/effects/geography.effects.mjs +6 -6
- package/{esm2020 → esm2022}/state/facades/geography/geography.facade.mjs +5 -5
- package/esm2022/state/geography-state.module.mjs +28 -0
- package/{esm2020 → esm2022}/state/testing/geography-testing.module.mjs +7 -7
- package/{esm2020 → esm2022}/state/testing/mock-geography-facade.mjs +4 -4
- package/{esm2020 → esm2022}/testing/factories/address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/country.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/personal-address.factory.mjs +5 -5
- package/{esm2020 → esm2022}/testing/factories/subdivision.factory.mjs +5 -5
- package/{fesm2015 → fesm2022}/daffodil-geography-driver-in-memory.mjs +13 -13
- package/{fesm2020 → fesm2022}/daffodil-geography-driver-in-memory.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-geography-driver-magento.mjs +15 -15
- package/{fesm2020 → fesm2022}/daffodil-geography-driver-magento.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-geography-driver-testing.mjs +8 -8
- package/{fesm2020 → fesm2022}/daffodil-geography-driver-testing.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/daffodil-geography-state-testing.mjs +9 -9
- package/{fesm2020 → fesm2022}/daffodil-geography-state-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/daffodil-geography-state.mjs +16 -16
- package/{fesm2020 → fesm2022}/daffodil-geography-state.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/daffodil-geography-testing.mjs +16 -16
- package/{fesm2020 → fesm2022}/daffodil-geography-testing.mjs.map +1 -1
- package/package.json +1 -1
- package/state/actions/geography.actions.d.ts +1 -1
- package/state/reducers/country-entities/country-entities-state.interface.d.ts +1 -1
- package/esm2020/state/geography-state.module.mjs +0 -28
- package/fesm2015/daffodil-geography-driver-in-memory.mjs.map +0 -1
- package/fesm2015/daffodil-geography-driver-magento.mjs +0 -194
- package/fesm2015/daffodil-geography-driver-magento.mjs.map +0 -1
- package/fesm2015/daffodil-geography-driver-testing.mjs +0 -65
- package/fesm2015/daffodil-geography-driver-testing.mjs.map +0 -1
- package/fesm2015/daffodil-geography-driver.mjs.map +0 -1
- package/fesm2015/daffodil-geography-state-testing.mjs.map +0 -1
- package/fesm2015/daffodil-geography-state.mjs +0 -289
- package/fesm2015/daffodil-geography-state.mjs.map +0 -1
- package/fesm2015/daffodil-geography-testing.mjs.map +0 -1
- package/fesm2020/daffodil-geography-driver-in-memory.mjs +0 -119
- package/fesm2020/daffodil-geography-driver.mjs +0 -27
- package/fesm2020/daffodil-geography-state-testing.mjs +0 -58
- package/fesm2020/daffodil-geography-testing.mjs +0 -108
- package/fesm2020/daffodil-geography.mjs +0 -48
- package/fesm2020/daffodil-geography.mjs.map +0 -1
- /package/{esm2020 → esm2022}/comparators/address.mjs +0 -0
- /package/{esm2020 → esm2022}/comparators/personal-address.mjs +0 -0
- /package/{esm2020 → esm2022}/comparators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/daffodil-geography.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/daffodil-geography-driver.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/country-not-found.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/invalid-api-response.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/errors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/daffodil-geography-driver-in-memory.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/drivers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/in-memory/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/interfaces/geography-service.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/daffodil-geography-driver-magento.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/codes.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/map.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/errors/transform.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/country.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/models/responses/region.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/country.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/fragments/region.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-countries.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/get-country.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/responses/get-countries.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/responses/get-country.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/queries/responses/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/validators/get-countries.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/magento/validators/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/daffodil-geography-driver-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/drivers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/driver/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/models/address.mjs +0 -0
- /package/{esm2020 → esm2022}/models/country.mjs +0 -0
- /package/{esm2020 → esm2022}/models/personal-address.mjs +0 -0
- /package/{esm2020 → esm2022}/models/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/models/subdivision.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/geography.actions.mjs +0 -0
- /package/{esm2020 → esm2022}/state/actions/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/daffodil-geography-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/facades/geography/geography-facade.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/injection-tokens/error-matcher.token.mjs +0 -0
- /package/{esm2020 → esm2022}/state/injection-tokens/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities-initial-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/country-entities/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography/geography-initial-state.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography/geography-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography/geography.reducer.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography-reducers-state.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography-reducers.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/geography-store-feature-key.mjs +0 -0
- /package/{esm2020 → esm2022}/state/reducers/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/country-entities.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/geography-all.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/geography-feature.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/geography.selector.mjs +0 -0
- /package/{esm2020 → esm2022}/state/selectors/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/daffodil-geography-state-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/state/testing/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/daffodil-geography-testing.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/factories/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/index.mjs +0 -0
- /package/{esm2020 → esm2022}/testing/public_api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/daffodil-geography-driver.mjs +0 -0
- /package/{fesm2020 → fesm2022}/daffodil-geography-driver.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/daffodil-geography.mjs +0 -0
- /package/{fesm2015 → fesm2022}/daffodil-geography.mjs.map +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, NgModule } from '@angular/core';
|
|
3
|
-
import { DaffGeographyFacade } from '@daffodil/geography/state';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @inheritdoc
|
|
8
|
-
*/
|
|
9
|
-
class MockDaffGeographyFacade {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.loading$ = new BehaviorSubject(null);
|
|
12
|
-
this.errors$ = new BehaviorSubject([]);
|
|
13
|
-
this.countries$ = new BehaviorSubject([]);
|
|
14
|
-
this.countryIds$ = new BehaviorSubject([]);
|
|
15
|
-
this.countryCount$ = new BehaviorSubject(null);
|
|
16
|
-
this.countryEntities$ = new BehaviorSubject(null);
|
|
17
|
-
}
|
|
18
|
-
getCountry(id) {
|
|
19
|
-
return new BehaviorSubject(null);
|
|
20
|
-
}
|
|
21
|
-
getCountrySubdivisions(id) {
|
|
22
|
-
return new BehaviorSubject([]);
|
|
23
|
-
}
|
|
24
|
-
isCountryFullyLoaded(id) {
|
|
25
|
-
return new BehaviorSubject(false);
|
|
26
|
-
}
|
|
27
|
-
dispatch(action) { }
|
|
28
|
-
;
|
|
29
|
-
}
|
|
30
|
-
/** @nocollapse */ MockDaffGeographyFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffGeographyFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
/** @nocollapse */ MockDaffGeographyFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffGeographyFacade, providedIn: 'root' });
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockDaffGeographyFacade, decorators: [{
|
|
33
|
-
type: Injectable,
|
|
34
|
-
args: [{ providedIn: 'root' }]
|
|
35
|
-
}] });
|
|
36
|
-
|
|
37
|
-
class DaffGeographyStateTestingModule {
|
|
38
|
-
}
|
|
39
|
-
/** @nocollapse */ DaffGeographyStateTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffGeographyStateTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
40
|
-
/** @nocollapse */ DaffGeographyStateTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DaffGeographyStateTestingModule });
|
|
41
|
-
/** @nocollapse */ DaffGeographyStateTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffGeographyStateTestingModule, providers: [
|
|
42
|
-
{ provide: DaffGeographyFacade, useExisting: MockDaffGeographyFacade },
|
|
43
|
-
] });
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffGeographyStateTestingModule, decorators: [{
|
|
45
|
-
type: NgModule,
|
|
46
|
-
args: [{
|
|
47
|
-
providers: [
|
|
48
|
-
{ provide: DaffGeographyFacade, useExisting: MockDaffGeographyFacade },
|
|
49
|
-
],
|
|
50
|
-
}]
|
|
51
|
-
}] });
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Generated bundle index. Do not edit.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
export { DaffGeographyStateTestingModule, MockDaffGeographyFacade };
|
|
58
|
-
//# sourceMappingURL=daffodil-geography-state-testing.mjs.map
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { faker } from '@faker-js/faker/locale/en_US';
|
|
4
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
|
5
|
-
|
|
6
|
-
class MockDaffAddress {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.street = faker.address.streetName();
|
|
9
|
-
this.street2 = faker.address.secondaryAddress();
|
|
10
|
-
this.city = faker.address.city();
|
|
11
|
-
this.region = faker.datatype.uuid();
|
|
12
|
-
this.region_code = faker.address.stateAbbr();
|
|
13
|
-
this.postcode = faker.address.zipCode();
|
|
14
|
-
this.country = faker.address.countryCode();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
class DaffAddressFactory extends DaffModelFactory {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(MockDaffAddress);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/** @nocollapse */ DaffAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
23
|
-
/** @nocollapse */ DaffAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, providedIn: 'root' });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffAddressFactory, decorators: [{
|
|
25
|
-
type: Injectable,
|
|
26
|
-
args: [{
|
|
27
|
-
providedIn: 'root',
|
|
28
|
-
}]
|
|
29
|
-
}], ctorParameters: function () { return []; } });
|
|
30
|
-
|
|
31
|
-
class MockDaffPersonalAddress extends MockDaffAddress {
|
|
32
|
-
constructor() {
|
|
33
|
-
super(...arguments);
|
|
34
|
-
this.prefix = faker.name.prefix();
|
|
35
|
-
this.suffix = faker.name.suffix();
|
|
36
|
-
this.firstname = faker.name.firstName();
|
|
37
|
-
this.middlename = faker.name.firstName();
|
|
38
|
-
this.lastname = faker.name.lastName();
|
|
39
|
-
this.email = faker.internet.email();
|
|
40
|
-
this.telephone = faker.phone.phoneNumber();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
class DaffPersonalAddressFactory extends DaffModelFactory {
|
|
44
|
-
constructor() {
|
|
45
|
-
super(MockDaffPersonalAddress);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/** @nocollapse */ DaffPersonalAddressFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPersonalAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
49
|
-
/** @nocollapse */ DaffPersonalAddressFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPersonalAddressFactory, providedIn: 'root' });
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffPersonalAddressFactory, decorators: [{
|
|
51
|
-
type: Injectable,
|
|
52
|
-
args: [{
|
|
53
|
-
providedIn: 'root',
|
|
54
|
-
}]
|
|
55
|
-
}], ctorParameters: function () { return []; } });
|
|
56
|
-
|
|
57
|
-
class MockSubdivision {
|
|
58
|
-
constructor() {
|
|
59
|
-
this.id = faker.datatype.uuid();
|
|
60
|
-
this.name = faker.random.word();
|
|
61
|
-
this.iso_3166_2 = faker.random.alphaNumeric(2);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
class DaffSubdivisionFactory extends DaffModelFactory {
|
|
65
|
-
constructor() {
|
|
66
|
-
super(MockSubdivision);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/** @nocollapse */ DaffSubdivisionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSubdivisionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
70
|
-
/** @nocollapse */ DaffSubdivisionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSubdivisionFactory, providedIn: 'root' });
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffSubdivisionFactory, decorators: [{
|
|
72
|
-
type: Injectable,
|
|
73
|
-
args: [{
|
|
74
|
-
providedIn: 'root',
|
|
75
|
-
}]
|
|
76
|
-
}], ctorParameters: function () { return []; } });
|
|
77
|
-
|
|
78
|
-
class MockCountry {
|
|
79
|
-
constructor(subdivisionFactory) {
|
|
80
|
-
this.subdivisionFactory = subdivisionFactory;
|
|
81
|
-
this.id = faker.datatype.uuid();
|
|
82
|
-
this.name = faker.random.word();
|
|
83
|
-
this.name_en = faker.random.word();
|
|
84
|
-
this.alpha2 = faker.random.alphaNumeric(2);
|
|
85
|
-
this.alpha3 = faker.random.alphaNumeric(3);
|
|
86
|
-
this.subdivisions = this.subdivisionFactory.createMany(faker.datatype.number({ min: 0, max: 10 }));
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
class DaffCountryFactory extends DaffModelFactory {
|
|
90
|
-
constructor(subdivisionFactory) {
|
|
91
|
-
super(MockCountry, subdivisionFactory);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
/** @nocollapse */ DaffCountryFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCountryFactory, deps: [{ token: DaffSubdivisionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
95
|
-
/** @nocollapse */ DaffCountryFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCountryFactory, providedIn: 'root' });
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DaffCountryFactory, decorators: [{
|
|
97
|
-
type: Injectable,
|
|
98
|
-
args: [{
|
|
99
|
-
providedIn: 'root',
|
|
100
|
-
}]
|
|
101
|
-
}], ctorParameters: function () { return [{ type: DaffSubdivisionFactory }]; } });
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Generated bundle index. Do not edit.
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
export { DaffAddressFactory, DaffCountryFactory, DaffPersonalAddressFactory, DaffSubdivisionFactory, MockCountry, MockDaffAddress, MockDaffPersonalAddress, MockSubdivision };
|
|
108
|
-
//# sourceMappingURL=daffodil-geography-testing.mjs.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { shallowCompare } from '@daffodil/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Compares two addresses and returns true if all of their fields are equal.
|
|
5
|
-
*
|
|
6
|
-
* @param address0 An address.
|
|
7
|
-
* @param address1 An address.
|
|
8
|
-
*/
|
|
9
|
-
function daffCompareAddresses(address0, address1) {
|
|
10
|
-
return shallowCompare(address0, address1, [
|
|
11
|
-
'street',
|
|
12
|
-
'street2',
|
|
13
|
-
'city',
|
|
14
|
-
'region',
|
|
15
|
-
'country',
|
|
16
|
-
'country_id',
|
|
17
|
-
'postcode',
|
|
18
|
-
]);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Compares two personal addresses and returns true if all of their fields are equal.
|
|
23
|
-
*
|
|
24
|
-
* @param address0 A personal address.
|
|
25
|
-
* @param address1 A personal address.
|
|
26
|
-
*/
|
|
27
|
-
function daffComparePersonalAddresses(address0, address1) {
|
|
28
|
-
return shallowCompare(address0, address1, [
|
|
29
|
-
'prefix',
|
|
30
|
-
'suffix',
|
|
31
|
-
'firstname',
|
|
32
|
-
'middlename',
|
|
33
|
-
'lastname',
|
|
34
|
-
'telephone',
|
|
35
|
-
'email',
|
|
36
|
-
]) && daffCompareAddresses(address0, address1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/*
|
|
40
|
-
* Public API Surface of @daffodil/geography
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Generated bundle index. Do not edit.
|
|
45
|
-
*/
|
|
46
|
-
|
|
47
|
-
export { daffCompareAddresses, daffComparePersonalAddresses };
|
|
48
|
-
//# sourceMappingURL=daffodil-geography.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daffodil-geography.mjs","sources":["../../../libs/geography/src/comparators/address.ts","../../../libs/geography/src/comparators/personal-address.ts","../../../libs/geography/src/public_api.ts","../../../libs/geography/src/daffodil-geography.ts"],"sourcesContent":["import { shallowCompare } from '@daffodil/core';\n\nimport { 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 shallowCompare(\n address0,\n address1,\n [\n 'street',\n 'street2',\n 'city',\n 'region',\n 'country',\n 'country_id',\n 'postcode',\n ],\n );\n}\n","import { shallowCompare } from '@daffodil/core';\n\nimport { daffCompareAddresses } from './address';\nimport { DaffPersonalAddress } from '../models/personal-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 shallowCompare(\n address0,\n address1,\n [\n 'prefix',\n 'suffix',\n 'firstname',\n 'middlename',\n 'lastname',\n 'telephone',\n 'email',\n ],\n ) && daffCompareAddresses(address0, address1);\n}\n","/*\n * Public API Surface of @daffodil/geography\n */\nexport * from './models/public_api';\nexport * from './comparators/public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAIA;;;;;AAKG;AACa,SAAA,oBAAoB,CAAC,QAAqB,EAAE,QAAqB,EAAA;AAC/E,IAAA,OAAO,cAAc,CACnB,QAAQ,EACR,QAAQ,EACR;QACE,QAAQ;QACR,SAAS;QACT,MAAM;QACN,QAAQ;QACR,SAAS;QACT,YAAY;QACZ,UAAU;AACX,KAAA,CACF,CAAC;AACJ;;ACnBA;;;;;AAKG;AACa,SAAA,4BAA4B,CAAC,QAA6B,EAAE,QAA6B,EAAA;AACvG,IAAA,OAAO,cAAc,CACnB,QAAQ,EACR,QAAQ,EACR;QACE,QAAQ;QACR,QAAQ;QACR,WAAW;QACX,YAAY;QACZ,UAAU;QACV,WAAW;QACX,OAAO;AACR,KAAA,CACF,IAAI,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAChD;;ACzBA;;AAEG;;ACFH;;AAEG;;;;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities-initial-state.mjs
RENAMED
|
File without changes
|
/package/{esm2020 → esm2022}/state/reducers/country-entities/country-entities-state.interface.mjs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|