@infrab4a/connect-angular 3.8.0-beta.3 → 3.8.0-beta.5
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/angular-connect.module.d.ts +2 -2
- package/angular-elastic-search.module.d.ts +2 -2
- package/bundles/infrab4a-connect-angular.umd.js +4 -4
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/esm2015/angular-connect.module.js +1 -1
- package/esm2015/angular-elastic-search.module.js +6 -6
- package/fesm2015/infrab4a-connect-angular.js +5 -5
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
|
|
3
|
-
import {
|
|
3
|
+
import { AxiosElasticSearchConfig, Shops } from '@infrab4a/connect';
|
|
4
4
|
import { HasuraGraphQLOptions } from './angular-hasura-graphql.module';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@angular/fire";
|
|
@@ -9,7 +9,7 @@ import * as i3 from "./angular-hasura-graphql.module";
|
|
|
9
9
|
export declare class AngularConnectModule {
|
|
10
10
|
static initializeApp(defaultShop: Shops, options: {
|
|
11
11
|
firebase: FirebaseOptions;
|
|
12
|
-
elasticSearch:
|
|
12
|
+
elasticSearch: AxiosElasticSearchConfig;
|
|
13
13
|
hasura: HasuraGraphQLOptions;
|
|
14
14
|
backendUrl: string;
|
|
15
15
|
}, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { AxiosElasticSearchConfig } from '@infrab4a/connect';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AngularElasticSeachModule {
|
|
5
|
-
static initializeApp(options:
|
|
5
|
+
static initializeApp(options: AxiosElasticSearchConfig): ModuleWithProviders<AngularElasticSeachModule>;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularElasticSeachModule, never>;
|
|
7
7
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularElasticSeachModule, never, never, never>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<AngularElasticSeachModule>;
|
|
@@ -1418,8 +1418,8 @@
|
|
|
1418
1418
|
{
|
|
1419
1419
|
provide: i1$1.ProductsIndex,
|
|
1420
1420
|
useFactory: function (configuration) {
|
|
1421
|
-
|
|
1422
|
-
return new
|
|
1421
|
+
return new i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
|
|
1422
|
+
// return new ProductsIndex(new ElasticSearchAdapter(configuration))
|
|
1423
1423
|
},
|
|
1424
1424
|
deps: [ES_CONFIG],
|
|
1425
1425
|
},
|
|
@@ -1431,8 +1431,8 @@
|
|
|
1431
1431
|
{
|
|
1432
1432
|
provide: i1$1.ProductsIndex,
|
|
1433
1433
|
useFactory: function (configuration) {
|
|
1434
|
-
|
|
1435
|
-
return new
|
|
1434
|
+
return new i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
|
|
1435
|
+
// return new ProductsIndex(new ElasticSearchAdapter(configuration))
|
|
1436
1436
|
},
|
|
1437
1437
|
deps: [ES_CONFIG],
|
|
1438
1438
|
},
|