@infrab4a/connect-angular 3.7.0-beta.0 → 3.7.0-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 +147 -15
- 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
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
32
32
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
/******************************************************************************
|
|
35
35
|
Copyright (c) Microsoft Corporation.
|
|
36
36
|
|
|
37
37
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -98,6 +98,64 @@
|
|
|
98
98
|
function __param(paramIndex, decorator) {
|
|
99
99
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
100
100
|
}
|
|
101
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
102
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
103
|
+
throw new TypeError("Function expected"); return f; }
|
|
104
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
105
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
106
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
107
|
+
var _, done = false;
|
|
108
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
109
|
+
var context = {};
|
|
110
|
+
for (var p in contextIn)
|
|
111
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
112
|
+
for (var p in contextIn.access)
|
|
113
|
+
context.access[p] = contextIn.access[p];
|
|
114
|
+
context.addInitializer = function (f) { if (done)
|
|
115
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
116
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
117
|
+
if (kind === "accessor") {
|
|
118
|
+
if (result === void 0)
|
|
119
|
+
continue;
|
|
120
|
+
if (result === null || typeof result !== "object")
|
|
121
|
+
throw new TypeError("Object expected");
|
|
122
|
+
if (_ = accept(result.get))
|
|
123
|
+
descriptor.get = _;
|
|
124
|
+
if (_ = accept(result.set))
|
|
125
|
+
descriptor.set = _;
|
|
126
|
+
if (_ = accept(result.init))
|
|
127
|
+
initializers.push(_);
|
|
128
|
+
}
|
|
129
|
+
else if (_ = accept(result)) {
|
|
130
|
+
if (kind === "field")
|
|
131
|
+
initializers.push(_);
|
|
132
|
+
else
|
|
133
|
+
descriptor[key] = _;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (target)
|
|
137
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
138
|
+
done = true;
|
|
139
|
+
}
|
|
140
|
+
;
|
|
141
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
142
|
+
var useValue = arguments.length > 2;
|
|
143
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
144
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
145
|
+
}
|
|
146
|
+
return useValue ? value : void 0;
|
|
147
|
+
}
|
|
148
|
+
;
|
|
149
|
+
function __propKey(x) {
|
|
150
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
151
|
+
}
|
|
152
|
+
;
|
|
153
|
+
function __setFunctionName(f, name, prefix) {
|
|
154
|
+
if (typeof name === "symbol")
|
|
155
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
156
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
157
|
+
}
|
|
158
|
+
;
|
|
101
159
|
function __metadata(metadataKey, metadataValue) {
|
|
102
160
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
103
161
|
return Reflect.metadata(metadataKey, metadataValue);
|
|
@@ -129,7 +187,7 @@
|
|
|
129
187
|
function step(op) {
|
|
130
188
|
if (f)
|
|
131
189
|
throw new TypeError("Generator is already executing.");
|
|
132
|
-
while (_)
|
|
190
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
133
191
|
try {
|
|
134
192
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
135
193
|
return t;
|
|
@@ -193,7 +251,11 @@
|
|
|
193
251
|
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
194
252
|
if (k2 === undefined)
|
|
195
253
|
k2 = k;
|
|
196
|
-
Object.
|
|
254
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
255
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
256
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
257
|
+
}
|
|
258
|
+
Object.defineProperty(o, k2, desc);
|
|
197
259
|
}) : (function (o, m, k, k2) {
|
|
198
260
|
if (k2 === undefined)
|
|
199
261
|
k2 = k;
|
|
@@ -293,7 +355,7 @@
|
|
|
293
355
|
function __asyncDelegator(o) {
|
|
294
356
|
var i, p;
|
|
295
357
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
296
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done:
|
|
358
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
297
359
|
}
|
|
298
360
|
function __asyncValues(o) {
|
|
299
361
|
if (!Symbol.asyncIterator)
|
|
@@ -347,6 +409,11 @@
|
|
|
347
409
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
348
410
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
349
411
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
412
|
+
}
|
|
413
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
414
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
415
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
416
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
350
417
|
}
|
|
351
418
|
|
|
352
419
|
var AuthService = /** @class */ (function () {
|
|
@@ -1232,9 +1299,8 @@
|
|
|
1232
1299
|
var _this = this;
|
|
1233
1300
|
return rxjs.combineLatest([
|
|
1234
1301
|
this.homeService.getHomeData(),
|
|
1235
|
-
this.http.get(this.apiUrl + "open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams)
|
|
1236
|
-
])
|
|
1237
|
-
.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) {
|
|
1238
1304
|
var _b = __read(_a, 2), datas = _b[0], shippingMethodsResponse = _b[1];
|
|
1239
1305
|
var shippingMethods = shippingMethodsResponse.result;
|
|
1240
1306
|
if (!shippingMethods.length)
|
|
@@ -1846,10 +1912,10 @@
|
|
|
1846
1912
|
},
|
|
1847
1913
|
{
|
|
1848
1914
|
provide: i1$1.CategoryHasuraGraphQLRepository,
|
|
1849
|
-
useFactory: function (options, productRepository) {
|
|
1850
|
-
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
|
|
1915
|
+
useFactory: function (options, productRepository, categoryFilterRepository) {
|
|
1916
|
+
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
|
|
1851
1917
|
},
|
|
1852
|
-
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
|
|
1918
|
+
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1853
1919
|
},
|
|
1854
1920
|
{
|
|
1855
1921
|
provide: 'ProductRepository',
|
|
@@ -1873,6 +1939,39 @@
|
|
|
1873
1939
|
},
|
|
1874
1940
|
deps: [HASURA_OPTIONS],
|
|
1875
1941
|
},
|
|
1942
|
+
{
|
|
1943
|
+
provide: 'CategoryFilterRepository',
|
|
1944
|
+
useExisting: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
provide: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
1948
|
+
useFactory: function (options) {
|
|
1949
|
+
return new i1$1.CategoryFilterHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
1950
|
+
},
|
|
1951
|
+
deps: [HASURA_OPTIONS],
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
provide: 'FilterOptionRepository',
|
|
1955
|
+
useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
provide: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
1959
|
+
useFactory: function (options) {
|
|
1960
|
+
return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
1961
|
+
},
|
|
1962
|
+
deps: [HASURA_OPTIONS],
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
provide: 'FilterRepository',
|
|
1966
|
+
useExisting: i1$1.FilterHasuraGraphQLRepository,
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
provide: i1$1.FilterHasuraGraphQLRepository,
|
|
1970
|
+
useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
|
|
1971
|
+
return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
|
|
1972
|
+
},
|
|
1973
|
+
deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1974
|
+
},
|
|
1876
1975
|
] });
|
|
1877
1976
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularHasuraGraphQLModule, decorators: [{
|
|
1878
1977
|
type: i0.NgModule,
|
|
@@ -1884,10 +1983,10 @@
|
|
|
1884
1983
|
},
|
|
1885
1984
|
{
|
|
1886
1985
|
provide: i1$1.CategoryHasuraGraphQLRepository,
|
|
1887
|
-
useFactory: function (options, productRepository) {
|
|
1888
|
-
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
|
|
1986
|
+
useFactory: function (options, productRepository, categoryFilterRepository) {
|
|
1987
|
+
return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
|
|
1889
1988
|
},
|
|
1890
|
-
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
|
|
1989
|
+
deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
1891
1990
|
},
|
|
1892
1991
|
{
|
|
1893
1992
|
provide: 'ProductRepository',
|
|
@@ -1911,6 +2010,39 @@
|
|
|
1911
2010
|
},
|
|
1912
2011
|
deps: [HASURA_OPTIONS],
|
|
1913
2012
|
},
|
|
2013
|
+
{
|
|
2014
|
+
provide: 'CategoryFilterRepository',
|
|
2015
|
+
useExisting: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
provide: i1$1.CategoryFilterHasuraGraphQLRepository,
|
|
2019
|
+
useFactory: function (options) {
|
|
2020
|
+
return new i1$1.CategoryFilterHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
2021
|
+
},
|
|
2022
|
+
deps: [HASURA_OPTIONS],
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
provide: 'FilterOptionRepository',
|
|
2026
|
+
useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
2027
|
+
},
|
|
2028
|
+
{
|
|
2029
|
+
provide: i1$1.FilterOptionHasuraGraphQLRepository,
|
|
2030
|
+
useFactory: function (options) {
|
|
2031
|
+
return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
|
|
2032
|
+
},
|
|
2033
|
+
deps: [HASURA_OPTIONS],
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
provide: 'FilterRepository',
|
|
2037
|
+
useExisting: i1$1.FilterHasuraGraphQLRepository,
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
provide: i1$1.FilterHasuraGraphQLRepository,
|
|
2041
|
+
useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
|
|
2042
|
+
return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
|
|
2043
|
+
},
|
|
2044
|
+
deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
|
|
2045
|
+
},
|
|
1914
2046
|
],
|
|
1915
2047
|
}]
|
|
1916
2048
|
}] });
|
|
@@ -1936,7 +2068,7 @@
|
|
|
1936
2068
|
CouponService,
|
|
1937
2069
|
HomeShopService,
|
|
1938
2070
|
OrderService,
|
|
1939
|
-
ShippingService
|
|
2071
|
+
ShippingService,
|
|
1940
2072
|
], imports: [[fire.AngularFireModule, AngularFirestoreModule, AngularHasuraGraphQLModule]] });
|
|
1941
2073
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularConnectModule, decorators: [{
|
|
1942
2074
|
type: i0.NgModule,
|
|
@@ -1950,7 +2082,7 @@
|
|
|
1950
2082
|
CouponService,
|
|
1951
2083
|
HomeShopService,
|
|
1952
2084
|
OrderService,
|
|
1953
|
-
ShippingService
|
|
2085
|
+
ShippingService,
|
|
1954
2086
|
],
|
|
1955
2087
|
}]
|
|
1956
2088
|
}] });
|