UNPKG

@ctodev/cclibrary-typings

Version:

Library typings for use with CLARC INFINITY

34 lines (33 loc) 2.33 kB
import { ODataServiceFactory, ODataConfiguration, ODataService } from '@mgrcto/angular-odata-v401'; import { HttpClient } from '@angular/common/http'; import { TccAuthService } from '../../services/tcc-auth/tcc-auth.service'; import { TccODataSettings, TccApiSection } from '../../tccodatasettings.token'; import { TccODataService } from '../../services/tcc-odata/tcc-odata.service'; import { TccBrowserCacheService } from '../../../core/services/tcc-browser-cache/tcc-browser-cache.service'; import { IKeyValue } from '../../models/shared.model'; export declare class TccODataServiceFactory extends ODataServiceFactory { private cchttp; private ccconfig; private Auth; private odatasettings; private cacheService; private headers; private section; constructor(cchttp: HttpClient, ccconfig: ODataConfiguration, Auth: TccAuthService, odatasettings: TccODataSettings, cacheService: TccBrowserCacheService); private get configuration(); private get authConfig(); private get baseConfig(); private setConfig; private setBaseConfig; private getCustomConfig; CreateCustomService<T>(tccservice: true, section: TccApiSection, entitypath: string): TccODataService<T>; CreateCustomService<T>(tccservice: true, section: TccApiSection, entitypath: string, customHttpHeader: IKeyValue<string> | IKeyValue<string>[]): TccODataService<T>; CreateCustomService<T>(tccservice: true, section: TccApiSection, entitypath: string, customHttpHeader: IKeyValue<string> | IKeyValue<string>[], uniqueId: string): TccODataService<T>; CreateCustomService<T>(tccservice: false, section: TccApiSection, entitypath: string): ODataService<T>; CreateCustomService<T>(tccservice: false, section: TccApiSection, entitypath: string, customHttpHeader: IKeyValue<string> | IKeyValue<string>[]): ODataService<T>; CreateNoAuthService<T>(entitypath: string): ODataService<T>; CreateService<T>(entitypath: string): ODataService<T>; CreateLoadService<T>(entitypath: string, uniqueId?: string): TccODataService<T>; CreateCustomLoadService<T>(entitypath: string, uniqueId: string, customHttpHeader: IKeyValue<string> | IKeyValue<string>[]): TccODataService<T>; CreateServiceEx<T>(entitypath: string, customHttpHeader: IKeyValue<string> | IKeyValue<string>[]): ODataService<T>; }