ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          req: NextRequest,
      ): Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  action: "clockIn"
                  | "clockOut";
                  message: string;
                  employee: {
                      id: string;
                      name: string | null;
                      employeeNumber: string | undefined;
                      position: string | null | undefined;
                      department: string | null | undefined;
                  };
                  timeTracking: {
                      id: string;
                      date: Date;
                      clockIn: Date;
                      clockOut: Date
                      | null;
                      totalWorkTime: number | null;
                      totalBreakTime: number | null;
                      status: string;
                  };
              },
          >,
      >

      Parameters

      • req: NextRequest

      Returns Promise<
          | NextResponse<{ error: string }>
          | NextResponse<
              {
                  success: boolean;
                  action: "clockIn"
                  | "clockOut";
                  message: string;
                  employee: {
                      id: string;
                      name: string | null;
                      employeeNumber: string | undefined;
                      position: string | null | undefined;
                      department: string | null | undefined;
                  };
                  timeTracking: {
                      id: string;
                      date: Date;
                      clockIn: Date;
                      clockOut: Date
                      | null;
                      totalWorkTime: number | null;
                      totalBreakTime: number | null;
                      status: string;
                  };
              },
          >,
      >