<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
  <edmx:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/Common.xml">
    <edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
  </edmx:Reference>
  <edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
    <edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="DocumentService" xmlns="http://docs.oasis-open.org/odata/ns/edm">
      <Annotation Term="Core.Links">
        <Collection>
          <Record>
            <PropertyValue Property="rel" String="author"/>
            <PropertyValue Property="href" String="https://cap.cloud.sap"/>
          </Record>
        </Collection>
      </Annotation>
      <EntityContainer Name="EntityContainer">
        <EntitySet Name="Documents" EntityType="DocumentService.Documents"/>
        <ActionImport Name="createDocument" Action="DocumentService.createDocument"/>
        <ActionImport Name="updateDocument" Action="DocumentService.updateDocument"/>
        <ActionImport Name="deleteDocument" Action="DocumentService.deleteDocument"/>
        <ActionImport Name="getDocument" Action="DocumentService.getDocument" EntitySet="Documents"/>
        <ActionImport Name="getDocumentsForCandidate" Action="DocumentService.getDocumentsForCandidate" EntitySet="Documents"/>
        <ActionImport Name="uploadDocumentFile" Action="DocumentService.uploadDocumentFile"/>
        <ActionImport Name="verifyDocument" Action="DocumentService.verifyDocument"/>
        <ActionImport Name="getAllDocuments" Action="DocumentService.getAllDocuments" EntitySet="Documents"/>
        <ActionImport Name="deleteDocumentFile" Action="DocumentService.deleteDocumentFile"/>
      </EntityContainer>
      <EntityType Name="Documents">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="candidateID" Type="Edm.Guid"/>
        <Property Name="candidateName" Type="Edm.String" MaxLength="200"/>
        <Property Name="applicationID" Type="Edm.String" MaxLength="100"/>
        <Property Name="documentType" Type="Edm.String" MaxLength="200"/>
        <Property Name="owner" Type="Edm.String" MaxLength="100"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="fileRef" Type="Edm.String" MaxLength="255"/>
        <Property Name="notes" Type="Edm.String" MaxLength="500"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="updatedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="dependentName" Type="Edm.String" MaxLength="255"/>
      </EntityType>
      <ComplexType Name="return_DocumentService_createDocument">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_DocumentService_updateDocument">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_DocumentService_deleteDocument">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_DocumentService_uploadDocumentFile">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="file" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_DocumentService_verifyDocument">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <ComplexType Name="return_DocumentService_deleteDocumentFile">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="createDocument" IsBound="false">
        <Parameter Name="candidateID" Type="Edm.String"/>
        <Parameter Name="candidateName" Type="Edm.String"/>
        <Parameter Name="applicationID" Type="Edm.String"/>
        <Parameter Name="documentType" Type="Edm.String"/>
        <Parameter Name="owner" Type="Edm.String"/>
        <Parameter Name="status" Type="Edm.String"/>
        <Parameter Name="notes" Type="Edm.String"/>
        <Parameter Name="dependentName" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_createDocument"/>
      </Action>
      <Action Name="updateDocument" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <Parameter Name="candidateID" Type="Edm.String"/>
        <Parameter Name="candidateName" Type="Edm.String"/>
        <Parameter Name="applicationID" Type="Edm.String"/>
        <Parameter Name="documentType" Type="Edm.String"/>
        <Parameter Name="owner" Type="Edm.String"/>
        <Parameter Name="status" Type="Edm.String"/>
        <Parameter Name="notes" Type="Edm.String"/>
        <Parameter Name="dependentName" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_updateDocument"/>
      </Action>
      <Action Name="deleteDocument" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_deleteDocument"/>
      </Action>
      <Action Name="getDocument" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <ReturnType Type="DocumentService.Documents"/>
      </Action>
      <Action Name="getDocumentsForCandidate" IsBound="false">
        <Parameter Name="candidateID" Type="Edm.String"/>
        <ReturnType Type="Collection(DocumentService.Documents)"/>
      </Action>
      <Action Name="uploadDocumentFile" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <Parameter Name="fileRef" Type="Edm.String"/>
        <Parameter Name="fileName" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_uploadDocumentFile"/>
      </Action>
      <Action Name="verifyDocument" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <Parameter Name="status" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_verifyDocument"/>
      </Action>
      <Action Name="getAllDocuments" IsBound="false">
        <ReturnType Type="Collection(DocumentService.Documents)"/>
      </Action>
      <Action Name="deleteDocumentFile" IsBound="false">
        <Parameter Name="ID" Type="Edm.String"/>
        <ReturnType Type="DocumentService.return_DocumentService_deleteDocumentFile"/>
      </Action>
      <Annotations Target="DocumentService.Documents/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="DocumentService.Documents/createdAt">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>