Can someone provide me sample code snippet or api for creating the New Custom type using DFC.
You can create a type in Composer or by DQL. If you need to do it from DFC, just invoke from DFC the DQL statement: CREATE TYPE...