@osovitny/anatoly 3.17.81 → 3.17.83
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/esm2022/lib/core/consts/storageKeys.mjs +23 -0
- package/esm2022/lib/core/services/appcontext.service.mjs +40 -1
- package/esm2022/lib/data/data.module.mjs +7 -1
- package/esm2022/lib/data/exports.mjs +3 -1
- package/esm2022/lib/data/services/billing/currencies-api.service.mjs +41 -0
- package/esm2022/lib/data/services/billing/currencies-storage.service.mjs +92 -0
- package/fesm2022/osovitny-anatoly.mjs +188 -1
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/consts/storageKeys.d.ts +6 -0
- package/lib/core/services/appcontext.service.d.ts +11 -0
- package/lib/data/exports.d.ts +2 -0
- package/lib/data/services/billing/currencies-api.service.d.ts +12 -0
- package/lib/data/services/billing/currencies-storage.service.d.ts +22 -0
- package/package.json +1 -1
|
@@ -31,6 +31,17 @@ export declare class AppContextService extends ApiServiceBase {
|
|
|
31
31
|
get current(): any;
|
|
32
32
|
set current(value: any);
|
|
33
33
|
get user(): any;
|
|
34
|
+
get version(): any;
|
|
35
|
+
set version(value: any);
|
|
36
|
+
get currency(): any;
|
|
37
|
+
set currency(value: any);
|
|
38
|
+
clearCurrency(): void;
|
|
39
|
+
get countries(): any;
|
|
40
|
+
set countries(value: any);
|
|
41
|
+
clearCountries(): void;
|
|
42
|
+
get languages(): any;
|
|
43
|
+
set languages(value: any);
|
|
44
|
+
clearLanguages(): void;
|
|
34
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppContextService, never>;
|
|
35
46
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppContextService>;
|
|
36
47
|
}
|
package/lib/data/exports.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './base/api.service';
|
|
2
2
|
export * from './base/grid/grid-read.service';
|
|
3
3
|
export * from './base/grid/grid-edit.service';
|
|
4
|
+
export * from './services/billing/currencies-api.service';
|
|
5
|
+
export * from './services/billing/currencies-storage.service';
|
|
4
6
|
export * from './services/billing/discountcodes-api.service';
|
|
5
7
|
export * from './services/billing/payments-api.service';
|
|
6
8
|
export * from './services/core-api.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ApiServiceBase } from '../../base/api.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CurrenciesApiService extends ApiServiceBase {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
getCurrencies(): Observable<any>;
|
|
9
|
+
getRates(): Observable<any>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrenciesApiService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrenciesApiService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CurrenciesApiService } from './currencies-api.service';
|
|
2
|
+
import { AppContextService } from '../../../core/services/appcontext.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CurrenciesStorageService {
|
|
5
|
+
private appContext;
|
|
6
|
+
private api;
|
|
7
|
+
rates: any;
|
|
8
|
+
private _currencyUpdated;
|
|
9
|
+
private _ratesLoaded;
|
|
10
|
+
readonly currencyUpdated$: import("rxjs").Observable<string>;
|
|
11
|
+
readonly ratesLoaded$: import("rxjs").Observable<string>;
|
|
12
|
+
defaultCurrency: string;
|
|
13
|
+
constructor(appContext: AppContextService, api: CurrenciesApiService);
|
|
14
|
+
private setValues;
|
|
15
|
+
private fireUpdated;
|
|
16
|
+
private fireRatesLoaded;
|
|
17
|
+
changeCurrency(currency: string): void;
|
|
18
|
+
toDisplayPrice(price: any): any;
|
|
19
|
+
get currentCurrencyRateOrDefault(): any;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrenciesStorageService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrenciesStorageService>;
|
|
22
|
+
}
|