@infrab4a/connect-angular 3.8.0-beta.10 → 3.8.0-beta.2

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.
@@ -1,6 +1,6 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
2
  import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
3
- import { AxiosElasticSearchConfig, Shops } from '@infrab4a/connect';
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: AxiosElasticSearchConfig;
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 { AxiosElasticSearchConfig } from '@infrab4a/connect';
2
+ import { ESClientOptions } from '@infrab4a/connect';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class AngularElasticSeachModule {
5
- static initializeApp(options: AxiosElasticSearchConfig): ModuleWithProviders<AngularElasticSeachModule>;
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 i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
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 i1$1.ProductsIndex(new i1$1.AxiosAdapter(configuration));
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
  },