elioria-sst-x
    Preparing search index...

    Implements

    • EpiDeliveryRpc
    Index
    supabase: PostgrestClient

    The supabase value.

    • Generated

      Executes deliverEpi.

      Parameters

      • params: {
            p_ca_expiry_at_delivery: string | null;
            p_ca_number_at_delivery: string | null;
            p_ca_status_at_delivery: string | null;
            p_collaborator_id: string;
            p_company_id: string | null;
            p_data_previs_substituicao: string | null;
            p_delivery_date: string | null;
            p_delivery_location: string | null;
            p_epi_catalog_id: string;
            p_epi_catalog_variant_id: string | null;
            p_epi_name_snapshot: string | null;
            p_ghe_id: string | null;
            p_item_status: string | null;
            p_manufacturer_snapshot: string | null;
            p_model_snapshot: string | null;
            p_notes: string | null;
            p_periodicidade_troca: number | null;
            p_protection_need_id: string | null;
            p_quantity: number;
            p_reason: string;
            p_requirement_id: string | null;
            p_requires_cleaning: boolean;
            p_requires_nr6_training: boolean;
            p_requires_return: boolean;
            p_signature_status: string | null;
            p_signature_url: string | null;
            p_tenant_id: string;
            p_treinamento_uso_id: string | null;
            p_unit_id: string;
            p_user_id: string;
        }

        The params value.

      Returns Promise<DeliverEpiRpcResult>

      The function result.

      Objective: In module packages/db/src/repositories/epi-delivery-rpc.ts, run deliverEpi.

      Behavior: Async; accepts params; returns a value; invokes this.supabase.rpc; may throw.

      When the function cannot complete normally.