@transcommerce/cwm-shared 1.1.35 → 1.1.36
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/fesm2022/transcommerce-cwm-shared.mjs +183 -183
- package/fesm2022/transcommerce-cwm-shared.mjs.map +1 -1
- package/lib/services/base-api.service.d.ts +3 -3
- package/lib/services/config.service.d.ts +3 -3
- package/lib/services/ibase-api.service.d.ts +2 -2
- package/lib/services/inventory-api.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,16 +2,16 @@ import { IBaseApiService } from './ibase-api.service';
|
|
|
2
2
|
import { ApiConfig } from '../models/config/api-config';
|
|
3
3
|
import { ConfigService } from './config.service';
|
|
4
4
|
import { HttpClient } from '@angular/common/http';
|
|
5
|
-
import {
|
|
5
|
+
import { ClassLoggerService } from './class-logger.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class BaseApiService implements IBaseApiService {
|
|
8
8
|
configService: ConfigService;
|
|
9
9
|
httpClient: HttpClient;
|
|
10
|
-
|
|
10
|
+
logger: ClassLoggerService;
|
|
11
11
|
config: ApiConfig;
|
|
12
12
|
get apiBaseUrl(): string;
|
|
13
13
|
get apiFullUrl(): string;
|
|
14
|
-
constructor(configService: ConfigService, httpClient: HttpClient,
|
|
14
|
+
constructor(configService: ConfigService, httpClient: HttpClient, logger: ClassLoggerService);
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseApiService, never>;
|
|
16
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<BaseApiService>;
|
|
17
17
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Configuration } from '../models/config/configuration';
|
|
2
|
-
import {
|
|
2
|
+
import { ClassLoggerService } from './class-logger.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ConfigService {
|
|
5
|
-
private
|
|
5
|
+
private logger;
|
|
6
6
|
mockData: boolean;
|
|
7
7
|
private readonly configClient;
|
|
8
8
|
private readonly configConnectString;
|
|
9
9
|
private _configCache;
|
|
10
10
|
protected get configCache(): Configuration;
|
|
11
11
|
protected set configCache(value: Configuration);
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(logger: ClassLoggerService);
|
|
13
13
|
getConfigurationSettingAsync(key: string, label: string): Promise<string | undefined>;
|
|
14
14
|
setConfigurationSettingAsync(templateName: string, label: string, setting: any, contentType?: "Text" | "HTML" | "JSON" | "XML"): Promise<void>;
|
|
15
15
|
getConfigAsync(company: string): Promise<Configuration>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ConfigService } from './config.service';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { ApiConfig } from '../models/config/api-config';
|
|
4
|
-
import {
|
|
4
|
+
import { ClassLoggerService } from './class-logger.service';
|
|
5
5
|
export interface IBaseApiService {
|
|
6
6
|
config: ApiConfig;
|
|
7
7
|
get apiBaseUrl(): string;
|
|
8
8
|
get apiFullUrl(): string;
|
|
9
9
|
configService: ConfigService;
|
|
10
|
-
|
|
10
|
+
logger: ClassLoggerService;
|
|
11
11
|
httpClient: HttpClient;
|
|
12
12
|
}
|
|
@@ -4,11 +4,11 @@ import { InventoryApiResponse } from '../models/inventory-api-response';
|
|
|
4
4
|
import { Product } from '../models/product';
|
|
5
5
|
import { BaseApiService } from './base-api.service';
|
|
6
6
|
import { ConfigService } from './config.service';
|
|
7
|
-
import {
|
|
7
|
+
import { ClassLoggerService } from './class-logger.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class InventoryApiService extends BaseApiService {
|
|
10
10
|
useMockData: boolean;
|
|
11
|
-
constructor(configService: ConfigService, httpClient: HttpClient,
|
|
11
|
+
constructor(configService: ConfigService, httpClient: HttpClient, logger: ClassLoggerService);
|
|
12
12
|
private get httpHeaders();
|
|
13
13
|
get apiFullUrl(): string;
|
|
14
14
|
getProductsAsync(companyName: string): Promise<InventoryApiResponse>;
|