All files / sn-client-js/src/Repository SnRepository.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 1/1
100% Lines 6/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21        1x 1x 1x 1x             1x         3x  
/**
 * @module Repository
 */
/** */
import { BaseRepository } from './';
import { SnConfigModel } from '../Config/snconfigmodel';
import { JwtService } from '../Authentication/JwtService';
import { RxAjaxHttpProvider } from '../HttpProviders/RxAjaxHttpProvider';
 
/**
 * This class defines a defaul sense NET ECM Repository implementation
 * that uses an RxJs based Ajax HTTP Provider and a JWT Token Authentication Service
 */
export class SnRepository extends BaseRepository<RxAjaxHttpProvider, JwtService>{
    /**
     * @param {Partial<SnConfigModel>} config The partial config entry used by the repository
     */
    constructor(config?: Partial<SnConfigModel>) {
        super(new SnConfigModel(config), RxAjaxHttpProvider, JwtService);
    }
}