@infrab4a/connect-angular 3.4.3-beta.0 → 3.4.3-beta.1
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/bundles/infrab4a-connect-angular.umd.js +76 -11
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/esm2015/angular-connect.module.js +5 -5
- package/esm2015/angular-hasura-graphql.module.js +74 -8
- package/esm2015/services/shipping.service.js +7 -8
- package/fesm2015/infrab4a-connect-angular.js +81 -16
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +2 -2
|
@@ -1299,9 +1299,8 @@
|
|
|
1299
1299
|
var _this = this;
|
|
1300
1300
|
return rxjs.combineLatest([
|
|
1301
1301
|
this.homeService.getHomeData(),
|
|
1302
|
-
this.http.get(this.apiUrl + "open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams)
|
|
1303
|
-
])
|
|
1304
|
-
.pipe(operators.map(function (_a) {
|
|
1302
|
+
this.http.get(this.apiUrl + "open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams),
|
|
1303
|
+
]).pipe(operators.map(function (_a) {
|
|
1305
1304
|
var _b = __read(_a, 2), datas = _b[0], shippingMethodsResponse = _b[1];
|
|
1306
1305
|
var shippingMethods = shippingMethodsResponse.result;
|
|
1307
1306
|
if (!shippingMethods.length)
|
|
@@ -1927,10 +1926,10 @@
|
|
|
1927
1926
|
},
|
|
1928
1927
|
{
|
|
1929
1928
|
provide: i1$1.CategoryHasuraGraphQLRepository,
|
|
1930
|
-
useFactory: function (options, productRepository) {
|
|
1931
|
-
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
|
|
1929
|
+
useFactory: function (options, productRepository, categoryFilterRepository) {
|
|
1930
|
+
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
|
|
1932
1931
|
},
|
|
1933
|
-
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
|
|
1932
|
+
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1934
1933
|
},
|
|
1935
1934
|
{
|
|
1936
1935
|
provide: 'ProductRepository',
|
|
@@ -1954,6 +1953,39 @@
|
|
|
1954
1953
|
},
|
|
1955
1954
|
deps: [HASURA_OPTIONS],
|
|
1956
1955
|
},
|
|
1956
|
+
{
|
|
1957
|
+
provide: 'CategoryFilterRepository',
|
|
1958
|
+
useExisting: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
provide: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
1962
|
+
useFactory: function (options) {
|
|
1963
|
+
return new i1$1.CategoryFilterHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
1964
|
+
},
|
|
1965
|
+
deps: [HASURA_OPTIONS],
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
provide: 'FilterOptionRepository',
|
|
1969
|
+
useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
provide: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
1973
|
+
useFactory: function (options) {
|
|
1974
|
+
return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
1975
|
+
},
|
|
1976
|
+
deps: [HASURA_OPTIONS],
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
provide: 'FilterRepository',
|
|
1980
|
+
useExisting: i1$1.FilterHasuraGraphQLRepository,
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
provide: i1$1.FilterHasuraGraphQLRepository,
|
|
1984
|
+
useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
|
|
1985
|
+
return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
|
|
1986
|
+
},
|
|
1987
|
+
deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1988
|
+
},
|
|
1957
1989
|
] });
|
|
1958
1990
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularHasuraGraphQLModule, decorators: [{
|
|
1959
1991
|
type: i0.NgModule,
|
|
@@ -1965,10 +1997,10 @@
|
|
|
1965
1997
|
},
|
|
1966
1998
|
{
|
|
1967
1999
|
provide: i1$1.CategoryHasuraGraphQLRepository,
|
|
1968
|
-
useFactory: function (options, productRepository) {
|
|
1969
|
-
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
|
|
2000
|
+
useFactory: function (options, productRepository, categoryFilterRepository) {
|
|
2001
|
+
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
|
|
1970
2002
|
},
|
|
1971
|
-
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
|
|
2003
|
+
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1972
2004
|
},
|
|
1973
2005
|
{
|
|
1974
2006
|
provide: 'ProductRepository',
|
|
@@ -1992,6 +2024,39 @@
|
|
|
1992
2024
|
},
|
|
1993
2025
|
deps: [HASURA_OPTIONS],
|
|
1994
2026
|
},
|
|
2027
|
+
{
|
|
2028
|
+
provide: 'CategoryFilterRepository',
|
|
2029
|
+
useExisting: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
2030
|
+
},
|
|
2031
|
+
{
|
|
2032
|
+
provide: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
2033
|
+
useFactory: function (options) {
|
|
2034
|
+
return new i1$1.CategoryFilterHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
2035
|
+
},
|
|
2036
|
+
deps: [HASURA_OPTIONS],
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
provide: 'FilterOptionRepository',
|
|
2040
|
+
useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
provide: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
2044
|
+
useFactory: function (options) {
|
|
2045
|
+
return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
2046
|
+
},
|
|
2047
|
+
deps: [HASURA_OPTIONS],
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
provide: 'FilterRepository',
|
|
2051
|
+
useExisting: i1$1.FilterHasuraGraphQLRepository,
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
provide: i1$1.FilterHasuraGraphQLRepository,
|
|
2055
|
+
useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
|
|
2056
|
+
return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
|
|
2057
|
+
},
|
|
2058
|
+
deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
2059
|
+
},
|
|
1995
2060
|
],
|
|
1996
2061
|
}]
|
|
1997
2062
|
}] });
|
|
@@ -2017,7 +2082,7 @@
|
|
|
2017
2082
|
CouponService,
|
|
2018
2083
|
HomeShopService,
|
|
2019
2084
|
OrderService,
|
|
2020
|
-
ShippingService
|
|
2085
|
+
ShippingService,
|
|
2021
2086
|
], imports: [[fire.AngularFireModule, AngularFirestoreModule, AngularHasuraGraphQLModule]] });
|
|
2022
2087
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularConnectModule, decorators: [{
|
|
2023
2088
|
type: i0.NgModule,
|
|
@@ -2031,7 +2096,7 @@
|
|
|
2031
2096
|
CouponService,
|
|
2032
2097
|
HomeShopService,
|
|
2033
2098
|
OrderService,
|
|
2034
|
-
ShippingService
|
|
2099
|
+
ShippingService,
|
|
2035
2100
|
],
|
|
2036
2101
|
}]
|
|
2037
2102
|
}] });
|