@infrab4a/connect-angular 4.0.0-beta.8 → 4.0.1-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.
Files changed (83) hide show
  1. package/angular-connect.module.d.ts +19 -19
  2. package/angular-elastic-search.module.d.ts +9 -9
  3. package/angular-firebase-auth.module.d.ts +10 -12
  4. package/angular-firestore.module.d.ts +15 -17
  5. package/angular-hasura-graphql.module.d.ts +16 -16
  6. package/bundles/infrab4a-connect-angular.umd.js +1978 -0
  7. package/bundles/infrab4a-connect-angular.umd.js.map +1 -0
  8. package/consts/backend-url.const.d.ts +1 -0
  9. package/consts/default-shop.const.d.ts +1 -1
  10. package/consts/es-config.const.d.ts +1 -1
  11. package/consts/hasura-options.const.d.ts +1 -1
  12. package/consts/index.d.ts +4 -4
  13. package/esm2015/angular-connect.module.js +52 -0
  14. package/{esm2020/angular-elastic-search.module.mjs → esm2015/angular-elastic-search.module.js} +38 -38
  15. package/esm2015/angular-firebase-auth.module.js +113 -0
  16. package/esm2015/angular-firestore.module.js +366 -0
  17. package/esm2015/angular-hasura-graphql.module.js +90 -0
  18. package/esm2015/consts/backend-url.const.js +2 -0
  19. package/{esm2020/consts/default-shop.const.mjs → esm2015/consts/default-shop.const.js} +2 -2
  20. package/{esm2020/consts/es-config.const.mjs → esm2015/consts/es-config.const.js} +2 -2
  21. package/{esm2020/consts/hasura-options.const.mjs → esm2015/consts/hasura-options.const.js} +2 -2
  22. package/esm2015/consts/index.js +5 -0
  23. package/{esm2020/index.mjs → esm2015/index.js} +6 -6
  24. package/{esm2020/infrab4a-connect-angular.mjs → esm2015/infrab4a-connect-angular.js} +4 -4
  25. package/esm2015/services/auth.service.js +42 -0
  26. package/esm2015/services/cart.service.js +148 -0
  27. package/esm2015/services/checkout-subscription.service.js +51 -0
  28. package/esm2015/services/checkout.service.js +75 -0
  29. package/esm2015/services/coupon.service.js +266 -0
  30. package/{esm2020/services/errors/group-invalid-coupon.error.mjs → esm2015/services/errors/group-invalid-coupon.error.js} +8 -8
  31. package/{esm2020/services/errors/index.mjs → esm2015/services/errors/index.js} +3 -3
  32. package/{esm2020/services/errors/invalid-coupon.error.mjs → esm2015/services/errors/invalid-coupon.error.js} +8 -7
  33. package/esm2015/services/home-shop.service.js +116 -0
  34. package/esm2015/services/index.js +9 -0
  35. package/esm2015/services/order.service.js +32 -0
  36. package/esm2015/services/shipping.service.js +99 -0
  37. package/{esm2020/services/types/index.mjs → esm2015/services/types/index.js} +3 -3
  38. package/{esm2020/services/types/required-checkout-data.type.mjs → esm2015/services/types/required-checkout-data.type.js} +2 -2
  39. package/{esm2020/services/types/required-checkout-subscription-data.type.mjs → esm2015/services/types/required-checkout-subscription-data.type.js} +2 -2
  40. package/esm2015/services/types/shipping-methods.type.js +2 -0
  41. package/fesm2015/{infrab4a-connect-angular.mjs → infrab4a-connect-angular.js} +1397 -1348
  42. package/fesm2015/infrab4a-connect-angular.js.map +1 -0
  43. package/index.d.ts +5 -5
  44. package/infrab4a-connect-angular.d.ts +5 -0
  45. package/package.json +13 -25
  46. package/services/auth.service.d.ts +19 -18
  47. package/services/cart.service.d.ts +35 -35
  48. package/services/checkout-subscription.service.d.ts +18 -18
  49. package/services/checkout.service.d.ts +23 -23
  50. package/services/coupon.service.d.ts +26 -25
  51. package/services/errors/group-invalid-coupon.error.d.ts +6 -6
  52. package/services/errors/index.d.ts +2 -2
  53. package/services/errors/invalid-coupon.error.d.ts +5 -4
  54. package/services/home-shop.service.d.ts +25 -25
  55. package/services/index.d.ts +8 -7
  56. package/services/order.service.d.ts +13 -13
  57. package/services/shipping.service.d.ts +19 -0
  58. package/services/types/index.d.ts +2 -2
  59. package/services/types/required-checkout-data.type.d.ts +2 -2
  60. package/services/types/required-checkout-subscription-data.type.d.ts +2 -2
  61. package/services/types/shipping-methods.type.d.ts +12 -0
  62. package/consts/firebase-const.d.ts +0 -3
  63. package/esm2020/angular-connect.module.mjs +0 -49
  64. package/esm2020/angular-firebase-auth.module.mjs +0 -130
  65. package/esm2020/angular-firestore.module.mjs +0 -358
  66. package/esm2020/angular-hasura-graphql.module.mjs +0 -137
  67. package/esm2020/consts/firebase-const.mjs +0 -4
  68. package/esm2020/consts/index.mjs +0 -5
  69. package/esm2020/services/auth.service.mjs +0 -37
  70. package/esm2020/services/cart.service.mjs +0 -143
  71. package/esm2020/services/checkout-subscription.service.mjs +0 -51
  72. package/esm2020/services/checkout.service.mjs +0 -73
  73. package/esm2020/services/coupon.service.mjs +0 -226
  74. package/esm2020/services/home-shop.service.mjs +0 -114
  75. package/esm2020/services/index.mjs +0 -8
  76. package/esm2020/services/order.service.mjs +0 -30
  77. package/esm2020/types/firebase-app-config.type.mjs +0 -2
  78. package/esm2020/types/index.mjs +0 -2
  79. package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
  80. package/fesm2020/infrab4a-connect-angular.mjs +0 -1338
  81. package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
  82. package/types/firebase-app-config.type.d.ts +0 -1
  83. package/types/index.d.ts +0 -1
@@ -1,19 +1,19 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { FirebaseOptions } from '@angular/fire/app';
3
- import { AxiosElasticSearchConfig, Shops } from '@infrab4a/connect';
4
- import { HasuraGraphQLOptions } from './angular-hasura-graphql.module';
5
- import { FirebaseAppConfig } from './types';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "./angular-firebase-auth.module";
8
- import * as i2 from "./angular-firestore.module";
9
- import * as i3 from "./angular-hasura-graphql.module";
10
- export declare class AngularConnectModule {
11
- static initializeApp(defaultShop: Shops, options: {
12
- firebase: FirebaseOptions;
13
- elasticSearch: AxiosElasticSearchConfig;
14
- hasura: HasuraGraphQLOptions;
15
- }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularConnectModule>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularConnectModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularConnectModule, never, [typeof i1.AngularFirebaseAuthModule, typeof i2.AngularFirestoreModule, typeof i3.AngularHasuraGraphQLModule], never>;
18
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularConnectModule>;
19
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
3
+ import { AxiosElasticSearchConfig, Shops } from '@infrab4a/connect';
4
+ import { HasuraGraphQLOptions } from './angular-hasura-graphql.module';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/fire";
7
+ import * as i2 from "./angular-firestore.module";
8
+ import * as i3 from "./angular-hasura-graphql.module";
9
+ export declare class AngularConnectModule {
10
+ static initializeApp(defaultShop: Shops, options: {
11
+ firebase: FirebaseOptions;
12
+ elasticSearch: AxiosElasticSearchConfig;
13
+ hasura: HasuraGraphQLOptions;
14
+ backendUrl: string;
15
+ }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularConnectModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularConnectModule, never, [typeof i1.AngularFireModule, typeof i2.AngularFirestoreModule, typeof i3.AngularHasuraGraphQLModule], never>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularConnectModule>;
19
+ }
@@ -1,9 +1,9 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { AxiosElasticSearchConfig } from '@infrab4a/connect';
3
- import * as i0 from "@angular/core";
4
- export declare class AngularElasticSeachModule {
5
- static initializeApp(options: AxiosElasticSearchConfig): ModuleWithProviders<AngularElasticSeachModule>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularElasticSeachModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularElasticSeachModule, never, never, never>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularElasticSeachModule>;
9
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { AxiosElasticSearchConfig } from '@infrab4a/connect';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AngularElasticSeachModule {
5
+ static initializeApp(options: AxiosElasticSearchConfig): ModuleWithProviders<AngularElasticSeachModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularElasticSeachModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularElasticSeachModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularElasticSeachModule>;
9
+ }
@@ -1,12 +1,10 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { FirebaseOptions } from '@angular/fire/app';
3
- import { FirebaseAppConfig } from './types';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/fire/app";
6
- import * as i2 from "@angular/fire/auth";
7
- export declare class AngularFirebaseAuthModule {
8
- static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFirebaseAuthModule>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirebaseAuthModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirebaseAuthModule, never, [typeof i1.FirebaseAppModule, typeof i2.AuthModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirebaseAuthModule>;
12
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "@angular/fire";
5
+ export declare class AngularFirebaseAuthModule {
6
+ static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirebaseAuthModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirebaseAuthModule, never, [typeof i1.AngularFireModule], never>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirebaseAuthModule>;
10
+ }
@@ -1,17 +1,15 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { FirebaseOptions } from '@angular/fire/app';
3
- import { AxiosElasticSearchConfig } from '@infrab4a/connect';
4
- import { FirebaseAppConfig } from './types';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "./angular-elastic-search.module";
7
- import * as i2 from "@angular/fire/app";
8
- import * as i3 from "@angular/fire/firestore";
9
- export declare class AngularFirestoreModule {
10
- static initializeApp(options: {
11
- firebase: FirebaseOptions;
12
- elasticSearch: AxiosElasticSearchConfig;
13
- }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFirestoreModule>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirestoreModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirestoreModule, never, [typeof i1.AngularElasticSeachModule, typeof i2.FirebaseAppModule, typeof i3.FirestoreModule], never>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
17
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
3
+ import { AxiosElasticSearchConfig } from '@infrab4a/connect';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/fire";
6
+ import * as i2 from "./angular-elastic-search.module";
7
+ export declare class AngularFirestoreModule {
8
+ static initializeApp(options: {
9
+ firebase: FirebaseOptions;
10
+ elasticSearch: AxiosElasticSearchConfig;
11
+ }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirestoreModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirestoreModule, never, [typeof i1.AngularFireModule, typeof i2.AngularElasticSeachModule], never>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
15
+ }
@@ -1,16 +1,16 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { HasuraGraphQLAuthOptions } from '@infrab4a/connect';
3
- import * as i0 from "@angular/core";
4
- export declare type HasuraGraphQLOptions = {
5
- endpoint: string;
6
- credentials: HasuraGraphQLAuthOptions;
7
- };
8
- export declare class AngularHasuraGraphQLModule {
9
- static initializeApp(options: {
10
- endpoint: string;
11
- credentials: HasuraGraphQLAuthOptions;
12
- }): ModuleWithProviders<AngularHasuraGraphQLModule>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularHasuraGraphQLModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularHasuraGraphQLModule, never, never, never>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularHasuraGraphQLModule>;
16
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { HasuraGraphQLAuthOptions } from '@infrab4a/connect';
3
+ import * as i0 from "@angular/core";
4
+ export declare type HasuraGraphQLOptions = {
5
+ endpoint: string;
6
+ credentials: HasuraGraphQLAuthOptions;
7
+ };
8
+ export declare class AngularHasuraGraphQLModule {
9
+ static initializeApp(options: {
10
+ endpoint: string;
11
+ credentials: HasuraGraphQLAuthOptions;
12
+ }): ModuleWithProviders<AngularHasuraGraphQLModule>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularHasuraGraphQLModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularHasuraGraphQLModule, never, never, never>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularHasuraGraphQLModule>;
16
+ }