elioria-sst-x
    Preparing search index...

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Generated

      Returns the result of findByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<SipatEvent[]>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through findByCompany.

      Behavior: Async; accepts tenantId and companyId; returns a value; invokes this.db .select() .from(sipatEvents) .where(and(eq(sipatEven.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<SipatEvent | null>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through findById.

      Behavior: Async; accepts id and tenantId and companyId; returns a value; invokes this.db .select() .from(sipatEvents) .where(and(eq(sipatEven.

    • Generated

      Returns the result of findCheckinToken.

      Parameters

      • tokenHash: string

        The tokenHash value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • now: Date

        The now value.

      Returns Promise<
          | {
              active: boolean;
              activityId: string;
              expiresAt: Date;
              sipatEventId: string;
          }
          | null,
      >

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through findCheckinToken.

      Behavior: Async; accepts tokenHash and tenantId and companyId and now; returns a value; invokes this.db.select().from(sipatCheckinTokens).where(and(eq(sipat.

    • Generated

      Returns the result of listAttendance.

      Parameters

      • eventId: string

        The eventId value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<any>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through listAttendance.

      Behavior: Async; accepts eventId and tenantId and companyId; returns a value; invokes this.db.select().from(sipatAttendance).where(and(eq(sipatAtt.

    • Generated

      Returns the result of listAudit.

      Parameters

      • eventId: string

        The eventId value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<any>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through listAudit.

      Behavior: Async; accepts eventId and tenantId and companyId; returns a value; invokes this.db.select().from(sipatAudit).where(and(eq(sipatAudit.si.

    • Generated

      Returns the result of listEvidence.

      Parameters

      • eventId: string

        The eventId value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<any>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, retrieve data through listEvidence.

      Behavior: Async; accepts eventId and tenantId and companyId; returns a value; invokes this.db.select().from(sipatEvidence).where(and(eq(sipatEvide.

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      • data: Partial<CreateSipatEventData>

        The data value.

      Returns Promise<SipatEvent | null>

      The function result.

      Objective: In module packages/db/src/repositories/sipat.repository.ts, run update.

      Behavior: Async; accepts id and tenantId and companyId and data; returns a value; invokes this.db .update(sipatEvents) .set(payload) .where(and(eq(sip.