@infrab4a/connect-angular 3.8.0-beta.11 → 3.8.0-beta.3
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 -2
- 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 -4
- package/fesm2015/infrab4a-connect-angular.js +5 -3
- 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 { ESClientOptions, 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: ESClientOptions;
|
|
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 { ESClientOptions } 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: ESClientOptions): 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,7 +1418,8 @@
|
|
|
1418
1418
|
{
|
|
1419
1419
|
provide: i1$1.ProductsIndex,
|
|
1420
1420
|
useFactory: function (configuration) {
|
|
1421
|
-
return new
|
|
1421
|
+
// return new ProductsIndex(new AxiosAdapter(configuration))
|
|
1422
|
+
return new i1$1.ProductsIndex(new i1$1.ElasticSearchAdapter(configuration));
|
|
1422
1423
|
},
|
|
1423
1424
|
deps: [ES_CONFIG],
|
|
1424
1425
|
},
|
|
@@ -1430,7 +1431,8 @@
|
|
|
1430
1431
|
{
|
|
1431
1432
|
provide: i1$1.ProductsIndex,
|
|
1432
1433
|
useFactory: function (configuration) {
|
|
1433
|
-
return new
|
|
1434
|
+
// return new ProductsIndex(new AxiosAdapter(configuration))
|
|
1435
|
+
return new i1$1.ProductsIndex(new i1$1.ElasticSearchAdapter(configuration));
|
|
1434
1436
|
},
|
|
1435
1437
|
deps: [ES_CONFIG],
|
|
1436
1438
|
},
|