<?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://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
    <edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
  </edmx:Reference>
  <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:Reference Uri="https://sap.github.io/odata-vocabularies/vocabularies/UI.xml">
    <edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
  </edmx:Reference>
  <edmx:DataServices>
    <Schema Namespace="IqamaRenewalService" 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="Cases" EntityType="IqamaRenewalService.Cases"/>
        <EntitySet Name="Activities" EntityType="IqamaRenewalService.Activities">
          <NavigationPropertyBinding Path="iqamaRenewalCase" Target="Cases"/>
        </EntitySet>
        <EntitySet Name="Documents" EntityType="IqamaRenewalService.Documents">
          <NavigationPropertyBinding Path="iqamaRenewalCase" Target="Cases"/>
        </EntitySet>
        <EntitySet Name="Queue" EntityType="IqamaRenewalService.Queue"/>
        <ActionImport Name="submitStep" Action="IqamaRenewalService.submitStep"/>
        <ActionImport Name="getDocumentPreview" Action="IqamaRenewalService.getDocumentPreview"/>
      </EntityContainer>
      <EntityType Name="Cases">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="applicationId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="mobile" Type="Edm.String" MaxLength="50"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="companyCode" Type="Edm.String" MaxLength="50"/>
        <Property Name="graded" Type="Edm.String" MaxLength="50"/>
        <Property Name="departmentClient" Type="Edm.String" MaxLength="255"/>
        <Property Name="employeeType" Type="Edm.String" MaxLength="100"/>
        <Property Name="professionName" Type="Edm.String" MaxLength="255"/>
        <Property Name="professionCode" Type="Edm.String" MaxLength="100"/>
        <Property Name="contractStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="numberOfDependents" Type="Edm.Int32"/>
        <Property Name="caseType" Type="Edm.String" MaxLength="100"/>
        <Property Name="initiationSource" Type="Edm.String" MaxLength="100"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="createdOn" Type="Edm.Date"/>
        <Property Name="iqamaNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaIssueDate" Type="Edm.Date"/>
        <Property Name="iqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="contractEndDate" Type="Edm.Date"/>
        <Property Name="offboardingStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="leaveStatus" Type="Edm.String" MaxLength="50"/>
        <Property Name="existingRenewalInProgress" Type="Edm.Boolean"/>
        <Property Name="renewalDuration" Type="Edm.String" MaxLength="50"/>
        <Property Name="levyPaid" Type="Edm.String" MaxLength="10"/>
        <Property Name="sceValid" Type="Edm.String" MaxLength="30"/>
        <Property Name="penaltyAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="deductionAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="coordinatorComments" Type="Edm.String"/>
        <Property Name="workPermitSadadNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="workPermitPaymentAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="workPermitComments" Type="Edm.String"/>
        <Property Name="iqamaSadadNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaPaymentAmount" Type="Edm.Decimal" Precision="15" Scale="2"/>
        <Property Name="iqamaSadadComments" Type="Edm.String"/>
        <Property Name="paymentReferenceNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="paymentStatus" Type="Edm.String" MaxLength="30"/>
        <Property Name="transactionDate" Type="Edm.Date"/>
        <Property Name="paymentComments" Type="Edm.String"/>
        <Property Name="previousDriverCardNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="previousDriverIssueDate" Type="Edm.Date"/>
        <Property Name="previousDriverExpiryDate" Type="Edm.Date"/>
        <Property Name="driverCardNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="driverCardIssueDate" Type="Edm.Date"/>
        <Property Name="driverCardExpiryDate" Type="Edm.Date"/>
        <Property Name="logistiComments" Type="Edm.String"/>
        <Property Name="newIqamaIssueDate" Type="Edm.Date"/>
        <Property Name="newIqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="iqamaAttachmentFile" Type="Edm.String" MaxLength="500"/>
        <Property Name="iqamaAttachmentFiles" Type="Edm.String"/>
        <Property Name="renewalUpdateComments" Type="Edm.String"/>
        <Property Name="hrVerificationStatus" Type="Edm.String" MaxLength="30"/>
        <Property Name="hrComments" Type="Edm.String"/>
      </EntityType>
      <EntityType Name="Activities">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <NavigationProperty Name="iqamaRenewalCase" Type="IqamaRenewalService.Cases">
          <ReferentialConstraint Property="iqamaRenewalCase_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="iqamaRenewalCase_ID" Type="Edm.Guid"/>
        <Property Name="description" Type="Edm.String" MaxLength="255"/>
        <Property Name="performedBy" Type="Edm.String" MaxLength="100"/>
        <Property Name="performedAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <EntityType Name="Documents">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="createdAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="createdBy" Type="Edm.String" MaxLength="255"/>
        <Property Name="modifiedAt" Type="Edm.DateTimeOffset" Precision="7"/>
        <Property Name="modifiedBy" Type="Edm.String" MaxLength="255"/>
        <NavigationProperty Name="iqamaRenewalCase" Type="IqamaRenewalService.Cases">
          <ReferentialConstraint Property="iqamaRenewalCase_ID" ReferencedProperty="ID"/>
        </NavigationProperty>
        <Property Name="iqamaRenewalCase_ID" Type="Edm.Guid"/>
        <Property Name="iqamaMedicalTestCase_ID" Type="Edm.Guid"/>
        <Property Name="medicalInsuranceCase_ID" Type="Edm.Guid"/>
        <Property Name="sourceType" Type="Edm.String" MaxLength="100"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="docName" Type="Edm.String" MaxLength="100"/>
        <Property Name="fileName" Type="Edm.String" MaxLength="255"/>
        <Property Name="mimeType" Type="Edm.String" MaxLength="100"/>
        <Property Name="fileContent" Type="Edm.String"/>
        <Property Name="uploaded" Type="Edm.Boolean" DefaultValue="false"/>
        <Property Name="uploadedBy" Type="Edm.String" MaxLength="100"/>
        <Property Name="uploadedAt" Type="Edm.DateTimeOffset" Precision="7"/>
      </EntityType>
      <EntityType Name="Queue">
        <Key>
          <PropertyRef Name="ID"/>
        </Key>
        <Property Name="ID" Type="Edm.Guid" Nullable="false"/>
        <Property Name="caseNo" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeId" Type="Edm.String" MaxLength="50"/>
        <Property Name="employeeName" Type="Edm.String" MaxLength="255"/>
        <Property Name="email" Type="Edm.String" MaxLength="200"/>
        <Property Name="nationality" Type="Edm.String" MaxLength="100"/>
        <Property Name="companyCode" Type="Edm.String" MaxLength="50"/>
        <Property Name="departmentClient" Type="Edm.String" MaxLength="255"/>
        <Property Name="professionName" Type="Edm.String" MaxLength="255"/>
        <Property Name="caseType" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaNumber" Type="Edm.String" MaxLength="100"/>
        <Property Name="iqamaExpiryDate" Type="Edm.Date"/>
        <Property Name="currentStage" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentOwner" Type="Edm.String" MaxLength="150"/>
        <Property Name="currentStep" Type="Edm.Int32"/>
        <Property Name="status" Type="Edm.String" MaxLength="50"/>
        <Property Name="createdOn" Type="Edm.Date"/>
      </EntityType>
      <ComplexType Name="IqamaRenewalResult">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="caseId" Type="Edm.Guid"/>
        <Property Name="message" Type="Edm.String"/>
        <Property Name="nextStep" Type="Edm.Int32"/>
      </ComplexType>
      <ComplexType Name="return_IqamaRenewalService_getDocumentPreview">
        <Property Name="success" Type="Edm.Boolean"/>
        <Property Name="documentId" Type="Edm.Guid"/>
        <Property Name="fileName" Type="Edm.String"/>
        <Property Name="mimeType" Type="Edm.String"/>
        <Property Name="fileBase64" Type="Edm.String"/>
        <Property Name="message" Type="Edm.String"/>
      </ComplexType>
      <Action Name="submitStep" IsBound="false">
        <Parameter Name="caseId" Type="Edm.Guid"/>
        <Parameter Name="step" Type="Edm.Int32"/>
        <Parameter Name="outcome" Type="Edm.String"/>
        <Parameter Name="payload" Type="Edm.String"/>
        <Parameter Name="performedBy" Type="Edm.String"/>
        <ReturnType Type="IqamaRenewalService.IqamaRenewalResult"/>
      </Action>
      <Action Name="getDocumentPreview" IsBound="false">
        <Parameter Name="documentId" Type="Edm.Guid"/>
        <ReturnType Type="IqamaRenewalService.return_IqamaRenewalService_getDocumentPreview"/>
      </Action>
      <Annotations Target="IqamaRenewalService.Cases/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Cases/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Cases/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Cases/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Cases/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Activities/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Activities/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Activities/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Activities/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Activities/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Documents/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Documents/createdAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Created On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Documents/createdBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Immutable" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Created By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Documents/modifiedAt">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Common.Label" String="Changed On"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Documents/modifiedBy">
        <Annotation Term="UI.HiddenFilter" Bool="true"/>
        <Annotation Term="UI.ExcludeFromNavigationContext" Bool="true"/>
        <Annotation Term="Core.Computed" Bool="true"/>
        <Annotation Term="Core.Description" String="User's unique ID"/>
        <Annotation Term="Common.Label" String="Changed By"/>
      </Annotations>
      <Annotations Target="IqamaRenewalService.EntityContainer/Queue">
        <Annotation Term="Capabilities.DeleteRestrictions">
          <Record Type="Capabilities.DeleteRestrictionsType">
            <PropertyValue Property="Deletable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.InsertRestrictions">
          <Record Type="Capabilities.InsertRestrictionsType">
            <PropertyValue Property="Insertable" Bool="false"/>
          </Record>
        </Annotation>
        <Annotation Term="Capabilities.UpdateRestrictions">
          <Record Type="Capabilities.UpdateRestrictionsType">
            <PropertyValue Property="Updatable" Bool="false"/>
          </Record>
        </Annotation>
      </Annotations>
      <Annotations Target="IqamaRenewalService.Queue/ID">
        <Annotation Term="Core.ComputedDefaultValue" Bool="true"/>
      </Annotations>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>