@infrab4a/connect-angular 4.17.3-beta.15 → 4.17.3-beta.16

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 (112) hide show
  1. package/angular-connect.module.d.ts +32 -29
  2. package/angular-elastic-search.module.d.ts +9 -9
  3. package/angular-firebase-auth.module.d.ts +11 -11
  4. package/angular-firestore.module.d.ts +17 -17
  5. package/angular-hasura-graphql.module.d.ts +16 -16
  6. package/angular-vertex-search.module.d.ts +9 -9
  7. package/consts/backend-url.const.d.ts +1 -1
  8. package/consts/category-structure.d.ts +1 -1
  9. package/consts/default-shop.const.d.ts +1 -1
  10. package/consts/es-config.const.d.ts +1 -1
  11. package/consts/firebase-const.d.ts +4 -3
  12. package/consts/hasura-options.const.d.ts +1 -1
  13. package/consts/index.d.ts +8 -8
  14. package/consts/persistence.const.d.ts +1 -1
  15. package/consts/storage-base-url.const.d.ts +1 -1
  16. package/consts/vertex-config.const.d.ts +1 -1
  17. package/esm2020/angular-connect.module.mjs +189 -144
  18. package/esm2020/angular-elastic-search.module.mjs +34 -34
  19. package/esm2020/angular-firebase-auth.module.mjs +141 -115
  20. package/esm2020/angular-firestore.module.mjs +527 -527
  21. package/esm2020/angular-hasura-graphql.module.mjs +331 -309
  22. package/esm2020/angular-vertex-search.module.mjs +34 -34
  23. package/esm2020/consts/backend-url.const.mjs +1 -1
  24. package/esm2020/consts/category-structure.mjs +2 -2
  25. package/esm2020/consts/default-shop.const.mjs +2 -2
  26. package/esm2020/consts/es-config.const.mjs +2 -2
  27. package/esm2020/consts/firebase-const.mjs +5 -4
  28. package/esm2020/consts/hasura-options.const.mjs +2 -2
  29. package/esm2020/consts/index.mjs +9 -9
  30. package/esm2020/consts/persistence.const.mjs +2 -2
  31. package/esm2020/consts/storage-base-url.const.mjs +2 -2
  32. package/esm2020/consts/vertex-config.const.mjs +2 -2
  33. package/esm2020/helpers/index.mjs +2 -2
  34. package/esm2020/helpers/mobile-operation-system-checker.helper.mjs +7 -7
  35. package/esm2020/index.mjs +7 -7
  36. package/esm2020/infrab4a-connect-angular.mjs +4 -4
  37. package/esm2020/persistence/cookie-data-persistence.mjs +22 -22
  38. package/esm2020/persistence/data-persistence.mjs +2 -2
  39. package/esm2020/persistence/index.mjs +3 -3
  40. package/esm2020/services/auth.service.mjs +37 -37
  41. package/esm2020/services/cart.service.mjs +293 -191
  42. package/esm2020/services/catalog/adapters/category-structure.adapter.mjs +2 -2
  43. package/esm2020/services/catalog/adapters/index.mjs +4 -4
  44. package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +43 -43
  45. package/esm2020/services/catalog/adapters/old-category-structure.adapter.mjs +23 -23
  46. package/esm2020/services/catalog/catalog.service.mjs +295 -295
  47. package/esm2020/services/catalog/category.service.mjs +51 -51
  48. package/esm2020/services/catalog/enums/index.mjs +2 -2
  49. package/esm2020/services/catalog/enums/product-sorts.enum.mjs +11 -11
  50. package/esm2020/services/catalog/index.mjs +8 -8
  51. package/esm2020/services/catalog/models/category-with-tree.model.mjs +10 -10
  52. package/esm2020/services/catalog/models/index.mjs +2 -2
  53. package/esm2020/services/catalog/types/index.mjs +2 -2
  54. package/esm2020/services/catalog/types/product-sort.type.mjs +2 -2
  55. package/esm2020/services/catalog/wishlist.service.mjs +235 -235
  56. package/esm2020/services/checkout-subscription.service.mjs +50 -50
  57. package/esm2020/services/checkout.service.mjs +68 -118
  58. package/esm2020/services/coupon.service.mjs +284 -272
  59. package/esm2020/services/helpers/index.mjs +2 -2
  60. package/esm2020/services/helpers/util.helper.mjs +18 -18
  61. package/esm2020/services/home-shop.service.mjs +125 -125
  62. package/esm2020/services/index.mjs +11 -10
  63. package/esm2020/services/order.service.mjs +30 -30
  64. package/esm2020/services/shipping.service.mjs +96 -0
  65. package/esm2020/services/types/index.mjs +3 -3
  66. package/esm2020/services/types/required-checkout-data.type.mjs +2 -2
  67. package/esm2020/services/types/required-checkout-subscription-data.type.mjs +2 -2
  68. package/esm2020/services/types/shipping-methods.type.mjs +2 -0
  69. package/esm2020/types/firebase-app-config.type.mjs +2 -2
  70. package/esm2020/types/index.mjs +2 -2
  71. package/fesm2015/infrab4a-connect-angular.mjs +2827 -2579
  72. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
  73. package/fesm2020/infrab4a-connect-angular.mjs +2779 -2533
  74. package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
  75. package/helpers/index.d.ts +1 -1
  76. package/helpers/mobile-operation-system-checker.helper.d.ts +3 -3
  77. package/index.d.ts +6 -6
  78. package/package.json +2 -2
  79. package/persistence/cookie-data-persistence.d.ts +10 -10
  80. package/persistence/data-persistence.d.ts +6 -6
  81. package/persistence/index.d.ts +2 -2
  82. package/services/auth.service.d.ts +18 -18
  83. package/services/cart.service.d.ts +43 -31
  84. package/services/catalog/adapters/category-structure.adapter.d.ts +4 -4
  85. package/services/catalog/adapters/index.d.ts +3 -3
  86. package/services/catalog/adapters/new-category-structure.adapter.d.ts +12 -12
  87. package/services/catalog/adapters/old-category-structure.adapter.d.ts +10 -10
  88. package/services/catalog/catalog.service.d.ts +93 -93
  89. package/services/catalog/category.service.d.ts +20 -20
  90. package/services/catalog/enums/index.d.ts +1 -1
  91. package/services/catalog/enums/product-sorts.enum.d.ts +9 -9
  92. package/services/catalog/index.d.ts +7 -7
  93. package/services/catalog/models/category-with-tree.model.d.ts +4 -4
  94. package/services/catalog/models/index.d.ts +1 -1
  95. package/services/catalog/types/index.d.ts +1 -1
  96. package/services/catalog/types/product-sort.type.d.ts +2 -2
  97. package/services/catalog/wishlist.service.d.ts +50 -50
  98. package/services/checkout-subscription.service.d.ts +19 -19
  99. package/services/checkout.service.d.ts +27 -33
  100. package/services/coupon.service.d.ts +33 -27
  101. package/services/helpers/index.d.ts +1 -1
  102. package/services/helpers/util.helper.d.ts +3 -3
  103. package/services/home-shop.service.d.ts +26 -26
  104. package/services/index.d.ts +10 -9
  105. package/services/order.service.d.ts +13 -13
  106. package/services/shipping.service.d.ts +19 -0
  107. package/services/types/index.d.ts +2 -2
  108. package/services/types/required-checkout-data.type.d.ts +2 -2
  109. package/services/types/required-checkout-subscription-data.type.d.ts +2 -2
  110. package/services/types/shipping-methods.type.d.ts +12 -0
  111. package/types/firebase-app-config.type.d.ts +1 -1
  112. package/types/index.d.ts +1 -1
@@ -1,29 +1,32 @@
1
- import { ModuleWithProviders, Type } from '@angular/core';
2
- import { FirebaseOptions } from '@angular/fire/app';
3
- import { AxiosElasticSearchConfig, Shops, VertexSearchConfig } from '@infrab4a/connect';
4
- import { HasuraGraphQLOptions } from './angular-hasura-graphql.module';
5
- import { DataPersistence } from './persistence';
6
- import { FirebaseAppConfig } from './types';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/fire/app";
9
- import * as i2 from "@angular/fire/storage";
10
- import * as i3 from "./angular-elastic-search.module";
11
- import * as i4 from "./angular-vertex-search.module";
12
- import * as i5 from "./angular-firebase-auth.module";
13
- import * as i6 from "./angular-firestore.module";
14
- import * as i7 from "./angular-hasura-graphql.module";
15
- export declare class AngularConnectModule {
16
- static initializeApp(defaultShop: Shops, options: {
17
- firebase: FirebaseOptions;
18
- elasticSearch?: AxiosElasticSearchConfig;
19
- vertexConfig?: VertexSearchConfig;
20
- hasura: HasuraGraphQLOptions;
21
- backendUrl: string;
22
- oldCategoryStructure?: boolean;
23
- storageBaseUrl?: string;
24
- persistenceProvider?: Type<DataPersistence>;
25
- }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularConnectModule>;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularConnectModule, never>;
27
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularConnectModule, never, [typeof i1.FirebaseAppModule, typeof i2.StorageModule, typeof i3.AngularElasticSeachModule, typeof i4.AngularVertexSeachModule, typeof i5.AngularFirebaseAuthModule, typeof i6.AngularFirestoreModule, typeof i7.AngularHasuraGraphQLModule], never>;
28
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularConnectModule>;
29
- }
1
+ import { ModuleWithProviders, Type } from '@angular/core';
2
+ import { FirebaseOptions } from '@angular/fire/app';
3
+ import { AppCheckOptions } from '@angular/fire/app-check';
4
+ import { AxiosElasticSearchConfig, Shops, VertexSearchConfig } from '@infrab4a/connect';
5
+ import { HasuraGraphQLOptions } from './angular-hasura-graphql.module';
6
+ import { DataPersistence } from './persistence';
7
+ import { FirebaseAppConfig } from './types';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@angular/fire/app";
10
+ import * as i2 from "@angular/fire/app-check";
11
+ import * as i3 from "@angular/fire/storage";
12
+ import * as i4 from "./angular-elastic-search.module";
13
+ import * as i5 from "./angular-vertex-search.module";
14
+ import * as i6 from "./angular-firebase-auth.module";
15
+ import * as i7 from "./angular-firestore.module";
16
+ import * as i8 from "./angular-hasura-graphql.module";
17
+ export declare class AngularConnectModule {
18
+ static initializeApp(defaultShop: Shops, options: {
19
+ firebase?: FirebaseOptions;
20
+ elasticSearch?: AxiosElasticSearchConfig;
21
+ vertexConfig?: VertexSearchConfig;
22
+ hasura: HasuraGraphQLOptions;
23
+ backendUrl: string;
24
+ oldCategoryStructure?: boolean;
25
+ storageBaseUrl?: string;
26
+ persistenceProvider?: Type<DataPersistence>;
27
+ appCheckProvider?: AppCheckOptions['provider'];
28
+ }, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularConnectModule>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularConnectModule, never>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularConnectModule, never, [typeof i1.FirebaseAppModule, typeof i2.AppCheckModule, typeof i3.StorageModule, typeof i4.AngularElasticSeachModule, typeof i5.AngularVertexSeachModule, typeof i6.AngularFirebaseAuthModule, typeof i7.AngularFirestoreModule, typeof i8.AngularHasuraGraphQLModule], never>;
31
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularConnectModule>;
32
+ }
@@ -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,11 +1,11 @@
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/auth";
6
- export declare class AngularFirebaseAuthModule {
7
- static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFirebaseAuthModule>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirebaseAuthModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirebaseAuthModule, never, [typeof i1.AuthModule], never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirebaseAuthModule>;
11
- }
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/auth";
6
+ export declare class AngularFirebaseAuthModule {
7
+ static initializeApp(options: FirebaseOptions, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFirebaseAuthModule>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirebaseAuthModule, never>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirebaseAuthModule, never, [typeof i1.AuthModule], never>;
10
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirebaseAuthModule>;
11
+ }
@@ -1,17 +1,17 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { FirebaseOptions } from '@angular/fire/app';
3
- import { AxiosElasticSearchConfig, FirestoreConstructorParams } 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/firestore";
8
- export type FirestoreOptions = Pick<FirestoreConstructorParams<any>, 'firestore' | 'interceptors'>;
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.FirestoreModule], never>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
17
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { FirebaseOptions } from '@angular/fire/app';
3
+ import { AxiosElasticSearchConfig, FirestoreConstructorParams } 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/firestore";
8
+ export type FirestoreOptions = Pick<FirestoreConstructorParams<any>, 'firestore' | 'interceptors'>;
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.FirestoreModule], never>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
17
+ }
@@ -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 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 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,9 +1,9 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { VertexSearchConfig } from '@infrab4a/connect';
3
- import * as i0 from "@angular/core";
4
- export declare class AngularVertexSeachModule {
5
- static initializeApp(options: VertexSearchConfig): ModuleWithProviders<AngularVertexSeachModule>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularVertexSeachModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularVertexSeachModule, never, never, never>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularVertexSeachModule>;
9
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { VertexSearchConfig } from '@infrab4a/connect';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AngularVertexSeachModule {
5
+ static initializeApp(options: VertexSearchConfig): ModuleWithProviders<AngularVertexSeachModule>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularVertexSeachModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularVertexSeachModule, never, never, never>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularVertexSeachModule>;
9
+ }
@@ -1 +1 @@
1
- export declare const BACKEND_URL = "BACKEND_URL";
1
+ export declare const BACKEND_URL = "BACKEND_URL";
@@ -1 +1 @@
1
- export declare const CATEGORY_STRUCTURE = "CATEGORY_STRUCTURE";
1
+ export declare const CATEGORY_STRUCTURE = "CATEGORY_STRUCTURE";
@@ -1 +1 @@
1
- export declare const DEFAULT_SHOP = "DEFAULT_SHOP";
1
+ export declare const DEFAULT_SHOP = "DEFAULT_SHOP";
@@ -1 +1 @@
1
- export declare const ES_CONFIG = "ES_CONFIG";
1
+ export declare const ES_CONFIG = "ES_CONFIG";
@@ -1,3 +1,4 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const FIREBASE_APP_NAME: InjectionToken<unknown>;
3
- export declare const FIREBASE_OPTIONS: InjectionToken<unknown>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const FIREBASE_APP_NAME: InjectionToken<unknown>;
3
+ export declare const FIREBASE_OPTIONS: InjectionToken<unknown>;
4
+ export declare const APP_CHECK_PROVIDER: InjectionToken<unknown>;
@@ -1 +1 @@
1
- export declare const HASURA_OPTIONS = "HASURA_OPTIONS";
1
+ export declare const HASURA_OPTIONS = "HASURA_OPTIONS";
package/consts/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export * from './backend-url.const';
2
- export * from './category-structure';
3
- export * from './default-shop.const';
4
- export * from './es-config.const';
5
- export * from './firebase-const';
6
- export * from './hasura-options.const';
7
- export * from './persistence.const';
8
- export * from './vertex-config.const';
1
+ export * from './backend-url.const';
2
+ export * from './category-structure';
3
+ export * from './default-shop.const';
4
+ export * from './es-config.const';
5
+ export * from './firebase-const';
6
+ export * from './hasura-options.const';
7
+ export * from './persistence.const';
8
+ export * from './vertex-config.const';
@@ -1 +1 @@
1
- export declare const PERSISTENCE_PROVIDER = "PERSISTENCE_PROVIDER";
1
+ export declare const PERSISTENCE_PROVIDER = "PERSISTENCE_PROVIDER";
@@ -1 +1 @@
1
- export declare const STORAGE_BASE_URL = "STORAGE_BASE_URL";
1
+ export declare const STORAGE_BASE_URL = "STORAGE_BASE_URL";
@@ -1 +1 @@
1
- export declare const VERTEX_CONFIG = "VERTEX_CONFIG";
1
+ export declare const VERTEX_CONFIG = "VERTEX_CONFIG";