1.0.5 • Published 3 years ago

@inclouded/tmf-resulttable v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

TMF ResultTable Firestore SDK

npm install --save @inclouded/tmf-resulttable

Introduction

In the repository the Firebase Cloud Firestore SDK can be found that was made for the TMF ResultTable resource in an installable Angular folder form. The SDK can be installed for every Angular 2+ project. The SDK accomplishes the necessary CRUD operations.

Usage

  1. For using the SDK an Angular 2+ project is needed, in which we can establish a connection to a Firestore database instance. (configured in environments.ts)

  2. The SDK can be used in a Service in the following way:

import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { AngularFirestore } from '@angular/fire/firestore';
import { ResultTableApi } from '@inclouded/tmf-resulttable'

@Injectable()
export class ResultTableService {

    ResultTableApi: ResultTableApi;
    constructor(private afs: AngularFirestore) {
        this.ResultTableApi = new ResultTableApi(this.afs);
    }

    getAllResultTable() {
        return this.ResultTableApi.getAll();
    }

    deleteResultTable(resultTableId: string) {
        return this.ResultTableApi.delete(resultTableId);
    }

    getOvervierwResults(resultTableType: string, releatedPartyId: string, partyId?:string, customertId?: string, status?: string, orderBy?: OrderBy, paging?: Paging) {
        return this.ResultTableApi.getOvervierwResults(resultTableType, releatedPartyId, partyId, customertId, status);
    }
}

Developer: Zoltán R. Jánki (jankiz@inf.u-szeged.hu), Gábor Simon (simonovszkij@gmail.com)