@infrab4a/connect-angular 3.4.3-beta.1 → 3.5.0-beta.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.
@@ -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,64 +98,6 @@
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
- ;
159
101
  function __metadata(metadataKey, metadataValue) {
160
102
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
161
103
  return Reflect.metadata(metadataKey, metadataValue);
@@ -187,7 +129,7 @@
187
129
  function step(op) {
188
130
  if (f)
189
131
  throw new TypeError("Generator is already executing.");
190
- while (g && (g = 0, op[0] && (_ = 0)), _)
132
+ while (_)
191
133
  try {
192
134
  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)
193
135
  return t;
@@ -251,11 +193,7 @@
251
193
  var __createBinding = Object.create ? (function (o, m, k, k2) {
252
194
  if (k2 === undefined)
253
195
  k2 = k;
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);
196
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
259
197
  }) : (function (o, m, k, k2) {
260
198
  if (k2 === undefined)
261
199
  k2 = k;
@@ -355,7 +293,7 @@
355
293
  function __asyncDelegator(o) {
356
294
  var i, p;
357
295
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
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; }
296
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
359
297
  }
360
298
  function __asyncValues(o) {
361
299
  if (!Symbol.asyncIterator)
@@ -409,11 +347,6 @@
409
347
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
410
348
  throw new TypeError("Cannot write private member to an object whose class did not declare it");
411
349
  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);
417
350
  }
418
351
 
419
352
  var AuthService = /** @class */ (function () {
@@ -1299,8 +1232,9 @@
1299
1232
  var _this = this;
1300
1233
  return rxjs.combineLatest([
1301
1234
  this.homeService.getHomeData(),
1302
- this.http.get(this.apiUrl + "open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams),
1303
- ]).pipe(operators.map(function (_a) {
1235
+ this.http.get(this.apiUrl + "open/checkshippingcompany?personId=" + personId + "&postalCode=" + zip + "&weightGrams=" + weightGrams)
1236
+ ])
1237
+ .pipe(operators.map(function (_a) {
1304
1238
  var _b = __read(_a, 2), datas = _b[0], shippingMethodsResponse = _b[1];
1305
1239
  var shippingMethods = shippingMethodsResponse.result;
1306
1240
  if (!shippingMethods.length)
@@ -1590,20 +1524,6 @@
1590
1524
  },
1591
1525
  deps: [i1$2.AngularFirestore],
1592
1526
  },
1593
- {
1594
- provide: 'CampaignHashtagRepository',
1595
- useFactory: function (firestore) {
1596
- return new i1$1.CampaignHashtagFirestoreRepository(firestore.firestore);
1597
- },
1598
- deps: [i1$2.AngularFirestore],
1599
- },
1600
- {
1601
- provide: 'CampaignDashboardRepository',
1602
- useFactory: function (firestore) {
1603
- return new i1$1.CampaignDashboardFirestoreRepository(firestore.firestore);
1604
- },
1605
- deps: [i1$2.AngularFirestore],
1606
- },
1607
1527
  {
1608
1528
  provide: 'EditionRepository',
1609
1529
  useFactory: function (firestore, subscriptionRepository) {
@@ -1770,20 +1690,6 @@
1770
1690
  },
1771
1691
  deps: [i1$2.AngularFirestore],
1772
1692
  },
1773
- {
1774
- provide: 'CampaignHashtagRepository',
1775
- useFactory: function (firestore) {
1776
- return new i1$1.CampaignHashtagFirestoreRepository(firestore.firestore);
1777
- },
1778
- deps: [i1$2.AngularFirestore],
1779
- },
1780
- {
1781
- provide: 'CampaignDashboardRepository',
1782
- useFactory: function (firestore) {
1783
- return new i1$1.CampaignDashboardFirestoreRepository(firestore.firestore);
1784
- },
1785
- deps: [i1$2.AngularFirestore],
1786
- },
1787
1693
  {
1788
1694
  provide: 'EditionRepository',
1789
1695
  useFactory: function (firestore, subscriptionRepository) {
@@ -1926,10 +1832,10 @@
1926
1832
  },
1927
1833
  {
1928
1834
  provide: i1$1.CategoryHasuraGraphQLRepository,
1929
- useFactory: function (options, productRepository, categoryFilterRepository) {
1930
- return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
1835
+ useFactory: function (options, productRepository) {
1836
+ return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
1931
1837
  },
1932
- deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
1838
+ deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
1933
1839
  },
1934
1840
  {
1935
1841
  provide: 'ProductRepository',
@@ -1953,23 +1859,12 @@
1953
1859
  },
1954
1860
  deps: [HASURA_OPTIONS],
1955
1861
  },
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
1862
  {
1968
1863
  provide: 'FilterOptionRepository',
1969
- useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
1864
+ useExisting: i1$1.FilterOptionHasuraGraphQL,
1970
1865
  },
1971
1866
  {
1972
- provide: i1$1.FilterOptionHasuraGraphQLRepository,
1867
+ provide: i1$1.FilterOptionHasuraGraphQL,
1973
1868
  useFactory: function (options) {
1974
1869
  return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
1975
1870
  },
@@ -1981,10 +1876,10 @@
1981
1876
  },
1982
1877
  {
1983
1878
  provide: i1$1.FilterHasuraGraphQLRepository,
1984
- useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
1985
- return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
1879
+ useFactory: function (options, filterOptionRepository) {
1880
+ return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository);
1986
1881
  },
1987
- deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
1882
+ deps: [HASURA_OPTIONS],
1988
1883
  },
1989
1884
  ] });
1990
1885
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularHasuraGraphQLModule, decorators: [{
@@ -1997,10 +1892,10 @@
1997
1892
  },
1998
1893
  {
1999
1894
  provide: i1$1.CategoryHasuraGraphQLRepository,
2000
- useFactory: function (options, productRepository, categoryFilterRepository) {
2001
- return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository, categoryFilterRepository);
1895
+ useFactory: function (options, productRepository) {
1896
+ return new i1$1.CategoryHasuraGraphQLRepository(options.endpoint, options.credentials, productRepository);
2002
1897
  },
2003
- deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
1898
+ deps: [HASURA_OPTIONS, i1$1.ProductHasuraGraphQLRepository],
2004
1899
  },
2005
1900
  {
2006
1901
  provide: 'ProductRepository',
@@ -2024,23 +1919,12 @@
2024
1919
  },
2025
1920
  deps: [HASURA_OPTIONS],
2026
1921
  },
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
1922
  {
2039
1923
  provide: 'FilterOptionRepository',
2040
- useExisting: i1$1.FilterOptionHasuraGraphQLRepository,
1924
+ useExisting: i1$1.FilterOptionHasuraGraphQL,
2041
1925
  },
2042
1926
  {
2043
- provide: i1$1.FilterOptionHasuraGraphQLRepository,
1927
+ provide: i1$1.FilterOptionHasuraGraphQL,
2044
1928
  useFactory: function (options) {
2045
1929
  return new i1$1.FilterOptionHasuraGraphQLRepository(options.endpoint, options.credentials);
2046
1930
  },
@@ -2052,10 +1936,10 @@
2052
1936
  },
2053
1937
  {
2054
1938
  provide: i1$1.FilterHasuraGraphQLRepository,
2055
- useFactory: function (options, filterOptionRepository, categoryFilterRepository) {
2056
- return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository, categoryFilterRepository);
1939
+ useFactory: function (options, filterOptionRepository) {
1940
+ return new i1$1.FilterHasuraGraphQLRepository(options.endpoint, options.credentials, filterOptionRepository);
2057
1941
  },
2058
- deps: [HASURA_OPTIONS, i1$1.FilterOptionHasuraGraphQLRepository, i1$1.CategoryFilterHasuraGraphQLRepository],
1942
+ deps: [HASURA_OPTIONS],
2059
1943
  },
2060
1944
  ],
2061
1945
  }]
@@ -2082,7 +1966,7 @@
2082
1966
  CouponService,
2083
1967
  HomeShopService,
2084
1968
  OrderService,
2085
- ShippingService,
1969
+ ShippingService
2086
1970
  ], imports: [[fire.AngularFireModule, AngularFirestoreModule, AngularHasuraGraphQLModule]] });
2087
1971
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularConnectModule, decorators: [{
2088
1972
  type: i0.NgModule,
@@ -2096,7 +1980,7 @@
2096
1980
  CouponService,
2097
1981
  HomeShopService,
2098
1982
  OrderService,
2099
- ShippingService,
1983
+ ShippingService
2100
1984
  ],
2101
1985
  }]
2102
1986
  }] });