@asor-studio/asor-core 1.0.11 → 1.0.13
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/README.md +2 -2
- package/fesm2022/asor-studio-asor-core.mjs +1 -1
- package/index.d.ts +30 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { OnInit, OnDestroy, QueryList, Type, PipeTransform } from '@angular/core
|
|
|
3
3
|
import { ActivatedRoute, CanActivate, Data, Router, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, RedirectCommand } from '@angular/router';
|
|
4
4
|
import { Location } from '@angular/common';
|
|
5
5
|
import { Observable, BehaviorSubject, ReplaySubject } from 'rxjs';
|
|
6
|
-
import { HttpParams, HttpHeaders, HttpResponse, HttpRequest, HttpErrorResponse, HttpStatusCode,
|
|
6
|
+
import { HttpParams, HttpHeaders, HttpResponse, HttpRequest, HttpErrorResponse, HttpStatusCode, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
|
|
7
7
|
import * as _asor_studio_asor_core from '@asor-studio/asor-core';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -584,10 +584,10 @@ declare class StateConst {
|
|
|
584
584
|
static readonly CMPLX12 = 12;
|
|
585
585
|
static readonly CMPLX6 = 6;
|
|
586
586
|
}
|
|
587
|
-
type EncryptType = typeof StateConst.EncryptType[keyof typeof StateConst.EncryptType];
|
|
588
|
-
type GenerateType = typeof StateConst.Generate[keyof typeof StateConst.Generate];
|
|
589
|
-
type StoreType = typeof StateConst.StoreType[keyof typeof StateConst.StoreType];
|
|
590
|
-
type DataMethod = typeof StateConst.Data[keyof typeof StateConst.Data];
|
|
587
|
+
type EncryptType = (typeof StateConst.EncryptType)[keyof typeof StateConst.EncryptType];
|
|
588
|
+
type GenerateType = (typeof StateConst.Generate)[keyof typeof StateConst.Generate];
|
|
589
|
+
type StoreType = (typeof StateConst.StoreType)[keyof typeof StateConst.StoreType];
|
|
590
|
+
type DataMethod = (typeof StateConst.Data)[keyof typeof StateConst.Data];
|
|
591
591
|
|
|
592
592
|
type StateConstants_d_DataMethod = DataMethod;
|
|
593
593
|
type StateConstants_d_EncryptType = EncryptType;
|
|
@@ -1060,6 +1060,12 @@ interface IHttpResponseError {
|
|
|
1060
1060
|
*/
|
|
1061
1061
|
interface IConsoleLoggable {
|
|
1062
1062
|
}
|
|
1063
|
+
interface IRequestMapping {
|
|
1064
|
+
className?: string;
|
|
1065
|
+
controller?: any;
|
|
1066
|
+
path: string;
|
|
1067
|
+
method: IHttpMethod;
|
|
1068
|
+
}
|
|
1063
1069
|
|
|
1064
1070
|
/**
|
|
1065
1071
|
* Base cache path configuration class for the asor-core library.
|
|
@@ -1199,6 +1205,8 @@ declare class ConsoleLogsConfig {
|
|
|
1199
1205
|
static reset(): void;
|
|
1200
1206
|
}
|
|
1201
1207
|
|
|
1208
|
+
declare function MockRequestMapping(data: IRequestMapping): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
1209
|
+
|
|
1202
1210
|
/**
|
|
1203
1211
|
* Utility class for managing routing and navigation in Angular applications.
|
|
1204
1212
|
* Provides methods for navigation, parameter retrieval, and route checking.
|
|
@@ -2403,6 +2411,14 @@ declare class NotifyErrorService implements IConsoleLoggable {
|
|
|
2403
2411
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotifyErrorService>;
|
|
2404
2412
|
}
|
|
2405
2413
|
|
|
2414
|
+
declare class MockOrchestratorService {
|
|
2415
|
+
private get requestMappings();
|
|
2416
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
2417
|
+
registryController(className: string, controller: any): void;
|
|
2418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockOrchestratorService, never>;
|
|
2419
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockOrchestratorService>;
|
|
2420
|
+
}
|
|
2421
|
+
|
|
2406
2422
|
declare class AuthGuard implements CanActivate, IConsoleLoggable {
|
|
2407
2423
|
static readonly className: string;
|
|
2408
2424
|
private routingUtility;
|
|
@@ -2431,6 +2447,13 @@ declare class CacheInterceptor implements HttpInterceptor, IConsoleLoggable {
|
|
|
2431
2447
|
static ɵprov: i0.ɵɵInjectableDeclaration<CacheInterceptor>;
|
|
2432
2448
|
}
|
|
2433
2449
|
|
|
2450
|
+
declare class MockHttpInterceptor implements HttpInterceptor {
|
|
2451
|
+
private orchestratorService;
|
|
2452
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
2453
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockHttpInterceptor, never>;
|
|
2454
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockHttpInterceptor>;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2434
2457
|
declare class TranslatePipe implements PipeTransform, OnDestroy {
|
|
2435
2458
|
private translateUtility;
|
|
2436
2459
|
private changeDetectorRef;
|
|
@@ -2640,5 +2663,5 @@ declare class AsorWidgetComponent {
|
|
|
2640
2663
|
static ɵcmp: i0.ɵɵComponentDeclaration<AsorWidgetComponent, "asor-core-widget", never, { "mode": { "alias": "mode"; "required": false; }; }, {}, never, never, true, never>;
|
|
2641
2664
|
}
|
|
2642
2665
|
|
|
2643
|
-
export { GlobalEnum_d as AsorGlobalEnum, StateConstants_d as AsorStorage, AsorWidgetComponent, AuthGuard, AuthUtility, BaseComponent, BaseHandlerMixin, BaseMolecule, BaseStorageComponent, BaseStorageMolecule, CacheInterceptor, CachePathUtility, CacheUtility, CollectionUtils, ConfigCache, ConfigConst, ConsoleLogsConfig, ConsoleLogsUtility, CookieUtils, ErrorInterceptor, HttpRequestHandler, NotifyErrorService, ObjectUtils, RandomUtils, RoutingUtility, StateConst, StateService, StringUtils, TranslatePipe, TranslateUtility, createFlattenedReactiveProxy };
|
|
2644
|
-
export type { AsorWidgetMode, Constructor, CreateDataSetOption, DataElement, DataMethod, EncryptType, GenerateType, IAsorRoute, IAuth, IBaseMolecule, IComp, ICompStatic, IComponent, IConnectDataSet, IConsoleLoggable, ICreateDataSet, IHttpAuthSubscribe, IHttpFormError, IHttpRequest, IHttpRequestHandlerConfig, IHttpResponseError, IHttpSubscribe, IMolecule, IPath, IStorageHandler, LogClassConfig, LogEntry, LogLevel, RegistryElement, RegistryEntry, StateHandlerConfig, StoreType, UpdateDataSetOption };
|
|
2666
|
+
export { GlobalEnum_d as AsorGlobalEnum, StateConstants_d as AsorStorage, AsorWidgetComponent, AuthGuard, AuthUtility, BaseComponent, BaseHandlerMixin, BaseMolecule, BaseStorageComponent, BaseStorageMolecule, CacheInterceptor, CachePathUtility, CacheUtility, CollectionUtils, ConfigCache, ConfigConst, ConsoleLogsConfig, ConsoleLogsUtility, CookieUtils, ErrorInterceptor, HttpRequestHandler, MockHttpInterceptor, MockOrchestratorService, MockRequestMapping, NotifyErrorService, ObjectUtils, RandomUtils, RoutingUtility, StateConst, StateService, StringUtils, TranslatePipe, TranslateUtility, createFlattenedReactiveProxy };
|
|
2667
|
+
export type { AsorWidgetMode, Constructor, CreateDataSetOption, DataElement, DataMethod, EncryptType, GenerateType, IAsorRoute, IAuth, IBaseMolecule, IComp, ICompStatic, IComponent, IConnectDataSet, IConsoleLoggable, ICreateDataSet, IHttpAuthSubscribe, IHttpFormError, IHttpRequest, IHttpRequestHandlerConfig, IHttpResponseError, IHttpSubscribe, IMolecule, IPath, IRequestMapping, IStorageHandler, LogClassConfig, LogEntry, LogLevel, RegistryElement, RegistryEntry, StateHandlerConfig, StoreType, UpdateDataSetOption };
|