Documentation
    Preparing search index...

    Hierarchy

    • BaseService
      • export=
    Index

    Constructors

    • Returns export=

    Methods

    • Generate method to add a many record to a table of DB together

      Parameters

      • data: any

      Returns Promise<any>

    • Generate method to add a new record to the DB

      Parameters

      • data: any

      Returns Promise<any>

    • Generate method to remove a record from the DB

      Parameters

      • id: any

      Returns Promise<any>

    • Generate method to create a new record to the DB only if always doesn't exist else this record is return

      Parameters

      • data: any
      • filters: {} = {}

      Returns Promise<any[]>

    • Parameters

      • salesPointId: number

      Returns Promise<
          {
              canal: ("NDC" | "LCC")[];
              status: ("Ticketed" | "Booked" | "Supp")[];
              type: string;
              value: string;
          }[],
      >

    • Generate method to get a record by id

      Parameters

      • id: any

      Returns Promise<any>

    • Generate method to get all records from a table of DB

      Returns Promise<Model[]>

    • Allow to get all attributes from a table with their types

      Returns Promise<any>

    • Generate method to update a record to the DB

      Parameters

      • data: any
      • salesPointId: any

      Returns Promise<any[]>