how to get NX joint type from joint object

Forums: 

Hi,
I have written a python journal, which gets a joint objects from file and then I need information on joint like what is the Type of joint. But I am not getting a way. please Help.
Below is the journal :

# NX 12.0.2.9
# Journal created by swatil on Wed Apr 7 11:24:26 2021 India Standard Time
#
import math
import NXOpen
import NXOpen.Assemblies

def main() :

theSession = NXOpen.Session.GetSession()
workPart = theSession.Parts.Work
displayPart = theSession.Parts.Display

motionMgr = workPart.MotionManager
for joint in motionMgr.Joints:
namejoin = joint.Name
# ??????????????
# Need info on how to get the joint type from joint object??

# ----------------------------------------------
# Menu: Tools->Journal->Stop Recording
# ----------------------------------------------

if __name__ == '__main__':
main()