ng-easycommerce-v18 0.3.17-beta.2 → 0.3.17-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.
@@ -1,48 +1,37 @@
1
1
  import * as i0 from "@angular/core";
2
2
  /**
3
- * Servicio que provee de datos que estan relacionado con las peticiones a la API
4
- * @export
5
- * @class ApiConstantsService
3
+ * Servicio que provee de datos relacionados con las peticiones a la API
6
4
  */
7
5
  export declare class ApiConstantsService {
6
+ private ssrApiUrl;
8
7
  private _localStorage;
9
8
  private _translate;
10
- /**
11
- * Contiene los datos provisto por el frontend en el archivo environment.ts
12
- */
13
9
  private environment;
14
- /**
15
- * Canal actual del frontend
16
- */
17
- get CHANNEL(): string;
18
- set CHANNEL(value: string);
10
+ private platformId;
19
11
  private _channel;
20
- /**
21
- * Locale actual del frontend
22
- */
23
12
  LOCALE: string;
24
- /**
25
- * URL para las peticiones a shop-api
26
- */
27
13
  readonly SHOP_API_URL: string;
14
+ readonly CMS_URL: string;
15
+ constructor(ssrApiUrl: string);
28
16
  /**
29
- * URL para las peticiones a cms
17
+ * Canal actual del frontend
30
18
  */
31
- readonly CMS_URL: string;
32
- constructor();
19
+ get CHANNEL(): string;
20
+ set CHANNEL(value: string);
33
21
  /**
34
22
  * URL del backend para realizar las peticiones
35
23
  */
36
24
  get API_URL(): string;
37
25
  /**
38
- * Retorna la url base
39
- * @returns {string}
26
+ * URL base completa para shop-api con channel y locale
27
+ */
28
+ getShopApiBase(): string;
29
+ /**
30
+ * Retorna la url base general (sin shop-api)
40
31
  */
41
32
  getUrlBase(): string;
42
33
  /**
43
34
  * Cambia el canal actual
44
- * @param code
45
- * @returns
46
35
  */
47
36
  setChannel(code: string): void;
48
37
  setLocale(locale: string): void;
@@ -16,13 +16,13 @@ export declare class HeaderEcComponent extends MenuEcComponent {
16
16
  private _channelService;
17
17
  private changeDetector;
18
18
  private appRouter;
19
- protected platformId: Object;
20
19
  logged$: Observable<boolean>;
21
20
  isAuthenticated$: boolean;
22
21
  constructor();
23
22
  private coreConstantsService;
24
23
  private router;
25
24
  private cdr;
25
+ protected platformId: Object;
26
26
  ngOnInit(): void;
27
27
  ngAfterViewInit(): void;
28
28
  /**
@@ -11,6 +11,10 @@ export declare class OptionsService {
11
11
  * Maneja las peticiones a la API
12
12
  */
13
13
  private connection;
14
+ /**
15
+ * Platform ID para verificar si estamos en el navegador
16
+ */
17
+ private platformId;
14
18
  /**
15
19
  * Constantes del core
16
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-easycommerce-v18",
3
- "version": "0.3.17-beta.2",
3
+ "version": "0.3.17-beta.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"