diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateClient.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateClient.cs
deleted file mode 100644
index 229d6a36..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateClient.cs
+++ /dev/null
@@ -1,313 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-namespace HR.TA.BusinessLibrary.EmailTemplates
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using Microsoft.Extensions.Logging;
- using HR.TA.Common.Email.Contracts;
- using HR.TA.Common.Email.Exceptions;
- using HR.TA.CommonDataService.Common.Internal;
- using HR.TA.Data.DataAccess;
- using HR.TA.ServicePlatform.Context;
- using HR.TA.ServicePlatform.Tracing;
- using HR.TA.Common.Email;
- using HR.TA.Common.Common.Common.Email;
-
- /// Email Template Client class
- ///
- public class EmailTemplateClient : IEmailTemplateClient
- {
- private const string LoggerPrefix = "EmailTemplateClient";
-
- private readonly ITraceSource trace;
- private readonly ILogger logger;
- private readonly IEmailTemplateDataAccess emailTemplateDataAccess;
-
- public EmailTemplateClient(
- ITraceSource traceSource,
- ILogger logger,
- IEmailTemplateDataAccess emailTemplateDataAccess
- )
- {
- Contract.CheckValue(traceSource, nameof(traceSource));
- Contract.CheckValue(logger, nameof(logger));
- Contract.CheckValue(emailTemplateDataAccess, nameof(emailTemplateDataAccess));
-
- this.trace = traceSource;
- this.logger = logger;
- this.emailTemplateDataAccess = emailTemplateDataAccess;
- }
-
- public Task GetDefaultTemplate(string templateType, bool useAdminClient = false)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(GetDefaultTemplate)}",
- async () =>
- {
- Contract.CheckNonEmpty(templateType, nameof(templateType));
- this.trace.TraceInformation($"Getting regional default template for {templateType}");
-
- var defaultTemplate = await this.emailTemplateDataAccess.GetDefaultTemplateForType(templateType);
- if (defaultTemplate == null)
- {
- this.trace.TraceInformation($"No default template found");
- }
-
- if (defaultTemplate != null)
- {
- defaultTemplate.IsDefault = true;
- await this.InjectHeaderAndFooter(defaultTemplate);
- }
-
- return defaultTemplate;
- });
- }
-
- public Task> GetTemplatesByType(string templateType)
- {
- return this.logger.ExecuteAsync>(
- $"{LoggerPrefix}_{nameof(GetTemplatesByType)}",
- async () =>
- {
- Contract.CheckNonEmpty(templateType, nameof(templateType));
-
- var regionalTemplatesTask = this.emailTemplateDataAccess.GetTemplatesByType(templateType);
-
- var results = await Task.WhenAll(regionalTemplatesTask);
- var allTemplates = results.SelectMany(template => template).OrderBy(t => t.TemplateName).ToList();
-
- this.SetGlobalTemplatesToDefault(allTemplates);
- await this.InjectHeaderAndFooter(allTemplates);
-
- return allTemplates;
- });
- }
-
- public Task> GetTemplatesByAppName(string appName)
- {
- return this.logger.ExecuteAsync>(
- $"{LoggerPrefix}_{nameof(GetTemplatesByAppName)}",
- async () =>
- {
- Contract.CheckNonEmpty(appName, nameof(appName));
-
- var regionalTemplatesTask = this.emailTemplateDataAccess.GetTemplatesByAppName(appName);
-
- var results = await Task.WhenAll(regionalTemplatesTask);
- var allTemplates = results.SelectMany(template => template)
- .OrderBy(t => t.TemplateType)
- .ThenBy(t => t.TemplateName)
- .ToList();
-
- this.SetGlobalTemplatesToDefault(allTemplates);
- await this.InjectHeaderAndFooter(allTemplates);
-
- return allTemplates;
- });
- }
-
- public Task GetTemplate(string templateId)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(GetTemplate)}",
- async () =>
- {
- Contract.CheckNonEmpty(templateId, nameof(templateId));
-
- var template = await this.emailTemplateDataAccess.GetTemplate(templateId);
- if (template == null)
- {
- this.trace.TraceInformation($"Template {templateId} not found in database");
- return null;
- }
-
- await this.InjectHeaderAndFooter(template);
- return template;
- });
- }
-
- public Task SetDefaultTemplate(string templateType, string templateId)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(SetDefaultTemplate)}",
- async () =>
- {
- Contract.CheckNonEmpty(templateType, nameof(templateType));
- Contract.CheckNonEmpty(templateId, nameof(templateId));
- this.trace.TraceInformation($"Setting default template for {templateType} to {templateId}");
-
- var template = await this.GetTemplate(templateId);
- if (template == null)
- {
- throw new EmailTemplateNotFoundException(nameof(template));
- }
-
- if (template.TemplateType != templateType)
- {
- throw new EmailTemplateInvalidOperationException($"Template {templateId} is not type {templateType} (has value {template.TemplateType}");
- }
-
- if (template.IsGlobal)
- {
- await this.emailTemplateDataAccess.ClearDefaultTemplateSettings(templateType);
- }
- else
- {
- template.IsDefault = true;
- await this.emailTemplateDataAccess.UpdateTemplate(template);
- }
- });
- }
-
- public Task CreateTemplate(EmailTemplate emailTemplate)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(CreateTemplate)}",
- async () =>
- {
- Contract.CheckValue(emailTemplate, nameof(emailTemplate));
-
- emailTemplate.Id = null;
- emailTemplate.IsGlobal = false;
- return await this.emailTemplateDataAccess.CreateTemplate(emailTemplate);
- });
- }
-
- public Task UpdateTemplate(string templateId, EmailTemplate emailTemplate)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(UpdateTemplate)}",
- async () =>
- {
- Contract.CheckValue(emailTemplate, nameof(emailTemplate));
- Contract.CheckNonEmpty(templateId, nameof(templateId));
-
- var oldTemplateValue = await this.emailTemplateDataAccess.GetTemplate(templateId);
- if (oldTemplateValue == null)
- {
- throw new EmailTemplateNotFoundException(templateId);
- }
-
- emailTemplate.Id = templateId;
- emailTemplate.IsGlobal = false;
- return await this.emailTemplateDataAccess.UpdateTemplate(emailTemplate);
- });
- }
-
- public Task DeleteTemplate(string templateId)
- {
- return this.logger.ExecuteAsync(
- $"{LoggerPrefix}_{nameof(DeleteTemplate)}",
- async () =>
- {
- Contract.CheckNonEmpty(templateId, nameof(templateId));
-
- return await this.emailTemplateDataAccess.DeleteTemplate(templateId);
- });
- }
-
- private void SetGlobalTemplatesToDefault(IList templates)
- {
- if (templates == null)
- {
- return;
- }
-
- foreach (var globalTemplate in templates.Where(t => t.IsGlobal))
- {
- globalTemplate.IsDefault = !templates.Any(t => t.TemplateType == globalTemplate.TemplateType && t.IsDefault);
- }
- }
-
- private async Task InjectHeaderAndFooter(EmailTemplate template)
- {
- if (template == null)
- {
- return;
- }
-
- var emailSettings = await this.GetEmailTemplateSettings();
-
- template.Header = this.FormatHeader(emailSettings);
- template.Footer = this.FormatFooter(Constants.CompanyName, emailSettings);
- }
-
- private async Task InjectHeaderAndFooter(IList templates)
- {
- if (templates == null)
- {
- return;
- }
-
- var emailSettings = await this.GetEmailTemplateSettings();
-
- string header = this.FormatHeader(emailSettings);
- string footer = this.FormatFooter(Constants.CompanyName, emailSettings);
- foreach (var template in templates)
- {
- template.Header = header;
- template.Footer = footer;
- }
- }
-
- private async Task GetEmailTemplateSettings()
- {
- try
- {
- return await this.emailTemplateDataAccess.GetEmailTemplateSettings();
- }
- catch (Exception e)
- {
- trace.TraceError($"Failed to get email template settings. Exception message: {e.Message}");
- }
-
- return null;
- }
-
- private string FormatHeader(EmailTemplateSettings settings)
- {
- if (string.IsNullOrEmpty(settings?.EmailTemplateHeaderImgUrl))
- {
- return string.Empty;
- }
-
- return EmailStrings.EmailTemplate_HeaderHtml.Replace("{Header_Image_Url}", settings.EmailTemplateHeaderImgUrl);
- }
-
- private string FormatFooter(string companyName, EmailTemplateSettings settings)
- {
- if (settings == null)
- {
- return string.Empty;
- }
-
- var footerStrings = new List();
- if (!string.IsNullOrEmpty(companyName) && !string.IsNullOrEmpty(settings.EmailTemplatePrivacyPolicyLink))
- {
- footerStrings.Add(EmailStrings.EmailTemplate_PrivacyHtml
- .Replace("{Company_Name}", companyName)
- .Replace("{Privacy_Policy_Link}", settings.EmailTemplatePrivacyPolicyLink));
- }
-
- if (!string.IsNullOrEmpty(settings.EmailTemplateTermsAndConditionsLink))
- {
- footerStrings.Add(EmailStrings.EmailTemplate_TermsHtml
- .Replace("{Terms_And_Conditions_Link}", settings.EmailTemplateTermsAndConditionsLink));
- }
-
- if (footerStrings.Count > 0)
- {
- return EmailStrings.EmailTemplate_FooterHtml.Replace("{Footer_Text}", string.Join(" ", footerStrings));
- }
-
- return string.Empty;
- }
- }
-
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateExtensions.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateExtensions.cs
deleted file mode 100644
index d3360b66..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/EmailTemplateExtensions.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-namespace HR.TA.BusinessLibrary.EmailTemplates
-{
- using CommonDataService.Common.Internal;
- using Microsoft.Extensions.DependencyInjection;
- using HR.TA.Data.DataAccess;
-
- /// Email Template Extensions class
- public static class EmailTemplateExtensions
- {
- public static IServiceCollection AddEmailTemplateClient(this IServiceCollection services)
- {
- Contract.CheckValue(services, nameof(services));
-
- services.AddScoped();
- services.AddScoped();
-
- return services;
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/IEmailTemplateClient.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/IEmailTemplateClient.cs
deleted file mode 100644
index 0eb99a1f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/EmailTemplates/IEmailTemplateClient.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-namespace HR.TA.BusinessLibrary.EmailTemplates
-{
- using System.Threading.Tasks;
-
- using HR.TA.Common.Email.Contracts;
- using System.Collections.Generic;
-
- public interface IEmailTemplateClient
- {
- Task> GetTemplatesByType(string templateType);
-
- Task> GetTemplatesByAppName(string appName);
-
- Task GetTemplate(string templateId);
-
- Task GetDefaultTemplate(string templateType, bool useAdminClient = false);
-
- Task SetDefaultTemplate(string templateType, string templateId);
-
- Task CreateTemplate(EmailTemplate emailTemplate);
-
- Task UpdateTemplate(string id, EmailTemplate emailTemplate);
-
- Task DeleteTemplate(string id);
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorization.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorization.cs
deleted file mode 100644
index 45535257..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorization.cs
+++ /dev/null
@@ -1,138 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-
-namespace HR.TA.BusinessLibrary.UserDelegation
-{
- using Microsoft.AspNetCore.Http;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Threading.Tasks;
- using System.Linq;
- using Microsoft.Extensions.Caching.Distributed;
- using HR.TA.Common.Routing.Client;
- using HR.TA.Common.Base.Configuration;
- using HR.TA.Common.Base.ServiceContext;
- using HR.TA.Common.Provisioning.Entities.FalconEntities.Attract;
- using HR.TA.TalentEntities.Enum;
- using HR.TA.ServicePlatform.Tracing;
- using HR.TA.ServicePlatform.Exceptions;
- using HR.TA.Common.TalentEntities.Common;
-
- ///
- /// This is for the authorization of WOB request
- ///
- public class WOBAuthorization
- {
- /// The logger.
- ///
- /// Request delegate
- ///
- private readonly RequestDelegate _next;
-
- ///
- /// Constructor
- ///
- ///
- public WOBAuthorization(RequestDelegate next)
- {
- _next = next;
- }
- ///
- /// This is for authorizing the request
- ///
- ///
- ///
- public async Task Invoke(HttpContext httpContext)
- {
- var trace = httpContext.RequestServices.GetService(typeof(ITraceSource)) as ITraceSource;
- var hcmServiceContext = httpContext.RequestServices.GetService(typeof(IHCMServiceContext)) as IHCMServiceContext;
- var onBehalfUserId = hcmServiceContext.WorkOnBehalfUserId;
- if (string.IsNullOrEmpty(onBehalfUserId))
- {
- hcmServiceContext.UserId = hcmServiceContext.ObjectId;
- }
- else
- {
- if (await this.ValidateUserAsync(httpContext, onBehalfUserId, hcmServiceContext.ObjectId))
- {
- hcmServiceContext.UserId = onBehalfUserId;
- var client = await GetFalconQueryClientAsync(httpContext).ConfigureAwait(false);
- hcmServiceContext.Email = (await client.Get (worker => worker.OfficeGraphIdentifier == onBehalfUserId).ConfigureAwait(false))
- .Select(worker => worker.EmailPrimary).FirstOrDefault();
- }
- else
- {
- // Log that the authorization check does not allow caller to perform delegation.
- trace.TraceInformation($"WOB Auth middleware: No active delegation exists for User {hcmServiceContext.ObjectId} on {onBehalfUserId}. Hence using the caller context itself.");
-
- // Proceed with the caller context itself.
- hcmServiceContext.UserId = hcmServiceContext.ObjectId;
- }
- }
- await _next(httpContext);
- }
-
- ///
- /// This method checks whether the caller is allowed to perform delegation on given user id.
- ///
- ///
- ///
- ///
- /// True if the caller is authorized to delegate on behalf of given user id, False otherwise.
- private async Task ValidateUserAsync(HttpContext httpContext, string onBehalfUserId, string currentUserId)
- {
- var redisCache = httpContext.RequestServices.GetService(typeof(IDistributedCache)) as IDistributedCache;
- var cacheKey = currentUserId + "-wob";
- var authorizedWobUserIdsAsBytes = await redisCache.GetAsync(cacheKey).ConfigureAwait(false);
- List authorizedOnBehalfUserIds;
-
- if (authorizedWobUserIdsAsBytes != null)
- {
- var authorizedWobUserIdsAsString = Encoding.UTF8.GetString(authorizedWobUserIdsAsBytes);
- authorizedOnBehalfUserIds = authorizedWobUserIdsAsString.Split(new char[] { ',' }).ToList();
- }
- else
- {
- var client = await GetFalconQueryClientAsync(httpContext).ConfigureAwait(false);
- authorizedOnBehalfUserIds = (await client.Get(
- dg => dg.To.OfficeGraphIdentifier == currentUserId
- && dg.DelegationStatus == DelegationStatus.Active
- && dg.RequestStatus == RequestStatus.Active))
- ?.ToList().Select(dg => dg.From.OfficeGraphIdentifier)?.ToList();
- if (authorizedOnBehalfUserIds.Count > 0)
- {
- var authorizedOnBehalfUserIdsString = string.Join(",", authorizedOnBehalfUserIds);
- var wobEnvInfo = FabricXmlConfigurationHelper.Instance.ConfigurationManager.Get();
- var options = new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(Convert.ToDouble(wobEnvInfo?.CacheRefreshTimeInMins)));
- byte[] encodedAuthorizedOnBehalfUserIdsString = Encoding.UTF8.GetBytes(authorizedOnBehalfUserIdsString);
- await redisCache.SetAsync(cacheKey, encodedAuthorizedOnBehalfUserIdsString, options);
- }
- }
- if (authorizedOnBehalfUserIds.Contains(onBehalfUserId))
- {
- return true;
- }
- else
- {
- return false;
- }
- }
-
- ///
- /// Gets falcon query client
- ///
- ///
- /// Client
- private async Task GetFalconQueryClientAsync(HttpContext httpContext)
- {
- var falconClient = httpContext.RequestServices.GetService(typeof(IFalconQueryClient)) as IFalconQueryClient;
- var environmentInfo = FabricXmlConfigurationHelper.Instance.ConfigurationManager.Get();
- var client = await falconClient.GetFalconClient(environmentInfo?.FalconCommonContainerId, environmentInfo?.FalconDatabaseId).ConfigureAwait(false);
- return client;
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorizationMiddlewareExtensions.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorizationMiddlewareExtensions.cs
deleted file mode 100644
index 14c6986c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBAuthorizationMiddlewareExtensions.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-namespace HR.TA.BusinessLibrary.UserDelegation
-{
- using Microsoft.AspNetCore.Builder;
- using System;
- using System.Collections.Generic;
- using System.Text;
- ///
- /// Middleware extension used for WOB Auth.
- ///
- public static class WOBAuthorizationMiddlewareExtensions
- {
- ///
- /// This method to be used in startup for the middelware.
- ///
- ///
- ///
- public static IApplicationBuilder UseWobAuthMiddleware(this IApplicationBuilder builder)
- {
- return builder.UseMiddleware();
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBEnvironmentConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBEnvironmentConfiguration.cs
deleted file mode 100644
index 6fbb21c7..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.BusinessLibrary/UserDelegation/WOBEnvironmentConfiguration.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------'r'n
-
-namespace HR.TA.BusinessLibrary.UserDelegation
-{
- using HR.TA.ServicePlatform.Configuration;
- using System;
- using System.Collections.Generic;
- using System.Text;
- ///
- /// Configuration for WOB scenario
- ///
- [SettingsSection("WOBConfiguration")]
- public class WOBEnvironmentConfiguration
- {
- ///
- /// Cache Refresh time.
- ///
- public int CacheRefreshTimeInMins { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Common/Common/Common.Email/Contracts/EmailTemplateSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Common/Common/Common.Email/Contracts/EmailTemplateSettings.cs
index 98c2e0de..a1499508 100644
--- a/common/HR.TA.CommonLibrary/HR.TA.Common/Common/Common.Email/Contracts/EmailTemplateSettings.cs
+++ b/common/HR.TA.CommonLibrary/HR.TA.Common/Common/Common.Email/Contracts/EmailTemplateSettings.cs
@@ -5,12 +5,13 @@
namespace HR.TA.Common.Email.Contracts
{
+ using HR.TA.Common.DocumentDB.Contracts;
using System.Runtime.Serialization;
///
/// Email Template Settings Class
///
- public class EmailTemplateSettings
+ public class EmailTemplateSettings : DocDbEntity
{
[DataMember(Name = "emailTemplatePrivacyPolicyLink", IsRequired = false, EmitDefaultValue = false)]
public string EmailTemplatePrivacyPolicyLink { get; set; }
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/EsignSettingsManager.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/EsignSettingsManager.cs
deleted file mode 100644
index 9567e93c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/EsignSettingsManager.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-
-namespace HR.TA.Common.Data.DataAccess
-{
- using System;
- using System.Threading.Tasks;
-
- using Microsoft.Extensions.Logging;
- using HR.TA.Common.Base.Exceptions;
- using HR.TA.Common.Base.KeyVault;
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.ServicePlatform.Azure.Security;
- using HR.TA.ServicePlatform.Tracing;
-
- public class EsignSettingsManager
- {
- /// The secret manager provider
- private readonly ISecretManager secretManager;
-
- /// The logger
- private readonly ILogger logger;
-
- /// The trace source
- private readonly ITraceSource traceSource;
-
- ///
- /// The environment setting helper
- ///
- private readonly IEnvironmentSettingHelper environmentSettingHelper;
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The secret manager.
- /// The environment setting helper.
- /// The trace source.
- public EsignSettingsManager(
- ISecretManager secretManager,
- IEnvironmentSettingHelper environmentSettingHelper,
- ITraceSource traceSource)
- {
- this.secretManager = secretManager;
- this.environmentSettingHelper = environmentSettingHelper;
- this.traceSource = traceSource;
- }
-
- #region Public Methods
- /// Gets the e sign user status.
- /// Type of the esign.
- /// The key vault URI.
- /// Name of the client secret.
- /// Name of the integration secret.
- /// ESign User Status
- public async Task GetESignUserStatus(ESignType esignType, string keyVaultUri, string clientSecretName, string integrationSecretName)
- {
- var esignAccount = await this.GetESignAccountConfiguration(esignType, keyVaultUri, clientSecretName, integrationSecretName);
-
- if (esignAccount == null || esignAccount.IntegrationKey == null)
- {
- this.logger.LogError("The default ESign configuration is not set up.");
-
- throw new Exception("The default ESign configuration is not set up.");
- }
-
- var esignUserStatus = new ESignUserStatus()
- {
- IntegrationKey = esignAccount.IntegrationKey,
- IsEsignEnabled = false
- };
-
- return esignUserStatus;
- }
-
- ///
- /// Gets the enabled e sign settings.
- ///
- /// ESign Settings
- public async Task GetEnabledESignSettings()
- {
- var environmentSetting = await this.environmentSettingHelper.GetEnvironmentSettings();
-
- if (environmentSetting != null && environmentSetting.ESignSettings != null)
- {
- return environmentSetting.ESignSettings;
- }
-
- this.traceSource.TraceInformation($"Sending default esign settings");
-
- var esignSettings = new ESignSettings()
- {
- EnabledESignType = new ESignType(),
- };
-
- return esignSettings;
- }
- #endregion
-
- #region Private Methods
- /// Gets the e sign account configuration.
- /// Type of the esign.
- /// The key vault URI.
- /// Name of the client secret.
- /// Name of the integration secret.
- /// ESign Account
- private async Task GetESignAccountConfiguration(ESignType esignType, string keyVaultUri, string clientSecretName, string integrationSecretName)
- {
- var secretKey = await this.secretManager.GetSecretAsync(clientSecretName, this.logger);
-
- if (secretKey == null)
- {
- throw new BenignException($"Client secret key not found for ESigntype : {esignType}");
- }
-
- var integrationKey = await this.secretManager.GetSecretAsync(integrationSecretName, this.logger);
-
- if (integrationKey == null)
- {
- throw new BenignException($"Client integration secret key not found for ESigntype : {esignType}");
- }
-
- var esignAccount = new ESignAccount()
- {
- Id = $"{ESignAccount.DocumentType}-{esignType}",
- ESignType = esignType,
- IntegrationKey = integrationKey,
- SecretKey = secretKey
- };
- return esignAccount;
-
- }
- #endregion
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/IEsignSettingsManager.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/IEsignSettingsManager.cs
deleted file mode 100644
index e2678ee3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/ESignProviders/IEsignSettingsManager.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Data.DataAccess
-{
- using System.Threading.Tasks;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Settings Manager Interface
- ///
- public interface IEsignSettingsManager
- {
- /// Gets the e sign user status.
- /// Type of the esign.
- /// The key vault URI.
- /// Name of the client secret.
- /// Name of the integration secret.
- /// ESign User Status
- Task GetESignUserStatus(ESignType esignType, string keyVaultUri, string clientSecretName, string integrationSecretName);
-
- ///
- /// Gets the enabled e sign settings.
- ///
- /// Esign Settings
- Task GetEnabledESignSettings();
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/EnvironmentSettingProvider.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/EnvironmentSettingProvider.cs
deleted file mode 100644
index 259f1a9f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/EnvironmentSettingProvider.cs
+++ /dev/null
@@ -1,186 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Data.DataAccess
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using HR.TA.Common.Attract.Contract;
- using HR.TA.Common.Base.Security;
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.CommonDataService.Common.Internal;
- using HR.TA.ServicePlatform.Tracing;
-
- ///
- /// Environment Setting Provider Class
- ///
- public class EnvironmentSettingProvider : IEnvironmentSettingProvider
- {
- ///
- /// The environment setting helper
- ///
- private readonly IEnvironmentSettingHelper environmentSettingHelper;
-
- /// The trace source
- private readonly ITraceSource traceSource;
-
- ///
- /// Initializes a new instance of the class.
- ///
- public EnvironmentSettingProvider(
- IEnvironmentSettingHelper environmentSettingHelper,
- ITraceSource traceSource)
- {
- this.environmentSettingHelper = environmentSettingHelper;
- this.traceSource = traceSource;
- }
-
- public async Task GetOfferSettings(IHCMApplicationPrincipal principal)
- {
- Contract.CheckValue(principal, nameof(principal));
-
- var environmentSetting = await this.environmentSettingHelper.GetEnvironmentSettings();
- var offerFeature = new List();
- var offerSettings = new OfferSettings();
- var offerExpiry = new OfferExpirySettings();
- if (environmentSetting != null && environmentSetting.OfferSettings != null && environmentSetting.OfferSettings.OfferFeature != null && environmentSetting.OfferSettings.OfferExpiry != null)
- {
- var customRedirectUrlfeature = environmentSetting.OfferSettings.OfferFeature.Where(c => c.OfferFeatureName == OfferFeatureName.CustomRedirectUrl).FirstOrDefault();
- if (customRedirectUrlfeature == null)
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.CustomRedirectUrl,
- IsEnabled = false
- });
- }
-
- var onboardingRedirectfeature = environmentSetting.OfferSettings.OfferFeature.Where(c => c.OfferFeatureName == OfferFeatureName.OnboardingRedirectRequired).FirstOrDefault();
- if (onboardingRedirectfeature == null)
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.OnboardingRedirectRequired,
- IsEnabled = false
- });
- }
- environmentSetting.OfferSettings.OfferFeature = environmentSetting.OfferSettings.OfferFeature.Concat(offerFeature);
-
- return environmentSetting.OfferSettings;
- }
-
- this.traceSource.TraceInformation($"Sending default offer settings");
-
- foreach (var value in Enum.GetValues(typeof(OfferFeatureName)))
- {
-
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = (OfferFeatureName)value,
- IsEnabled = false
- });
- }
- offerSettings.OfferFeature = offerFeature;
- offerExpiry.ExpiryDays = 14;
- offerExpiry.IsCustomDate = false;
- offerSettings.OfferExpiry = offerExpiry;
-
- return offerSettings;
- }
-
- public async Task GetEmailTemplateSettings()
- {
- var environmentSetting = await this.environmentSettingHelper.GetEnvironmentSettings();
-
- if (environmentSetting != null && environmentSetting.EmailTemplateSettings != null)
- {
-
- return environmentSetting.EmailTemplateSettings;
- }
-
- this.traceSource.TraceWarning($"Environment settings not found");
- return null;
- }
-
- ///
- /// Get candidate offer settings
- ///
- /// Current user principal
- /// Candidate Offer settings
- public async Task GetCandidateOfferSettings(IHCMApplicationPrincipal principal)
- {
- Contract.CheckValue(principal, nameof(principal));
-
- var environmentSetting = await this.environmentSettingHelper.GetEnvironmentSettings();
- var offerFeature = new List();
- var candidateOfferSettings = new CandidateOfferSettings();
- candidateOfferSettings.OfferFeature = new List();
- if (environmentSetting != null && environmentSetting.OfferSettings != null && environmentSetting.OfferSettings.OfferFeature != null)
- {
- if (environmentSetting.OfferSettings.OfferExpiry != null)
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.DeclineOffer,
- IsEnabled = environmentSetting.OfferSettings.OfferFeature.Where(of => of.OfferFeatureName == OfferFeatureName.DeclineOffer).Select(f => f.IsEnabled).FirstOrDefault(),
- });
- }
- else
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.DeclineOffer,
- IsEnabled = false,
- });
-
- this.traceSource.TraceInformation($"Sending default candidate decline offer settings");
- }
-
- if (environmentSetting.OfferSettings.OfferAcceptanceRedirectionSettings != null)
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.CustomRedirectUrl,
- IsEnabled = environmentSetting.OfferSettings.OfferFeature.Where(of => of.OfferFeatureName == OfferFeatureName.CustomRedirectUrl).Select(f => f.IsEnabled).FirstOrDefault(),
- });
-
- candidateOfferSettings.OfferAcceptanceRedirectionSettings = environmentSetting.OfferSettings.OfferAcceptanceRedirectionSettings;
- }
- else
- {
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.CustomRedirectUrl,
- IsEnabled = false,
- });
-
- this.traceSource.TraceInformation($"Sending default candidate post redirect url offer settings");
- }
-
- candidateOfferSettings.OfferFeature = offerFeature;
- return candidateOfferSettings;
- }
-
- this.traceSource.TraceInformation($"Sending default candidate offer settings");
-
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.DeclineOffer,
- IsEnabled = false,
- });
-
- offerFeature.Add(new OfferFeature()
- {
- OfferFeatureName = OfferFeatureName.CustomRedirectUrl,
- IsEnabled = false,
- });
-
- candidateOfferSettings.OfferFeature = offerFeature;
- return candidateOfferSettings;
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/IEnvironmentSettingProvider.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/IEnvironmentSettingProvider.cs
deleted file mode 100644
index 51c3a725..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EnvironmentSettingProvider/IEnvironmentSettingProvider.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Data.DataAccess
-{
- using System.Threading.Tasks;
- using HR.TA.Common.Attract.Contract;
- using HR.TA.Common.Base.Security;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Environment Setting Provider Interface
- ///
- public interface IEnvironmentSettingProvider
- {
- ///
- /// Gets the email template settings.
- ///
- /// Email template Settings
- Task GetEmailTemplateSettings();
-
- ///
- /// Gets the offer settings.
- ///
- /// The principal.
- /// Offer Settings
- Task GetOfferSettings(IHCMApplicationPrincipal principal);
-
- ///
- /// Gets the candidate offer settings.
- ///
- /// The principal.
- /// Candidate Offer Settings
- Task GetCandidateOfferSettings(IHCMApplicationPrincipal principal);
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/JobApplicationDataAccess/JobApplication.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/JobApplicationDataAccess/JobApplication.cs
deleted file mode 100644
index 9230f0fd..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/JobApplicationDataAccess/JobApplication.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Data.DataAccess
-{
- using HR.TA.TalentEntities.Enum;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Threading.Tasks;
-
- ///
- /// JOb Application Class
- ///
- public class JobApplication
- {
- ///
- /// The data access
- ///
- private readonly IDataAccess dataAccess;
-
- public JobApplication(
- IDataAccess dataAccess)
- {
- this.dataAccess = dataAccess;
- }
-
- public async Task UpdateOfferedJobApplicationStatusReason(string invitationId, string jobApplicationId, JobApplicationStatusReason statusReason)
- {
- return await this.dataAccess.UpdateOfferedJobApplicationStatusReason(jobApplicationId, statusReason, invitationId);
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EmailTemplateProvider/EmailTemplateDataAccess.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/EmailTemplateDataAccess.cs
similarity index 97%
rename from common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EmailTemplateProvider/EmailTemplateDataAccess.cs
rename to common/HR.TA.CommonLibrary/HR.TA.Data/EmailTemplateDataAccess.cs
index 1ce2eb86..831901b6 100644
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EmailTemplateProvider/EmailTemplateDataAccess.cs
+++ b/common/HR.TA.CommonLibrary/HR.TA.Data/EmailTemplateDataAccess.cs
@@ -183,12 +183,12 @@ public async Task GetEmailTemplateSettings()
client = await this.falconQueryClient.GetFalconClient(hcmServiceContext.FalconCommonContainerId, hcmServiceContext.FalconDatabaseId);
}
- HR.TA.Talent.FalconEntities.Common.EmailTemplateSettings emailTemplateSettings = await client.GetFirstOrDefault(f => f.Type == "EmailTemplateSettings");
+ EmailTemplateSettings emailTemplateSettings = await client.GetFirstOrDefault(f => f.Type == "EmailTemplateSettings");
return this.ConvertToEmailTemplateSettings(emailTemplateSettings);
}
- private EmailTemplateSettings ConvertToEmailTemplateSettings(HR.TA.Talent.FalconEntities.Common.EmailTemplateSettings emailTemplateSettingsEntity)
+ private EmailTemplateSettings ConvertToEmailTemplateSettings(EmailTemplateSettings emailTemplateSettingsEntity)
{
if (emailTemplateSettingsEntity == null)
{
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/HR.TA.Data.csproj b/common/HR.TA.CommonLibrary/HR.TA.Data/HR.TA.Data.csproj
index 5f46317f..3a1e917d 100644
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/HR.TA.Data.csproj
+++ b/common/HR.TA.CommonLibrary/HR.TA.Data/HR.TA.Data.csproj
@@ -12,7 +12,6 @@
-
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/IDataAccess.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/IDataAccess.cs
deleted file mode 100644
index 3960facf..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/IDataAccess.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Data
-{
- using System.Threading.Tasks;
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.TalentEntities.Enum;
-
- public interface IDataAccess
- {
- ///
- /// Update the job application status reason
- ///
- /// Job application Id
- /// The reason to update
- /// The invitation Id
- /// Whether the operation was successful
- Task UpdateOfferedJobApplicationStatusReason(string jobApplicationId, JobApplicationStatusReason statusReason, string invitationId = null);
-
- /// Get a job application by ID
- /// Job application Id
- /// Is accessed by Admin
- /// The job application entity.
- Task GetJobWithApplication(string jobApplicationId, bool isAccessedByAdmin = false);
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EmailTemplateProvider/IEmailTemplateDataAccess.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/IEmailTemplateDataAccess.cs
similarity index 100%
rename from common/HR.TA.CommonLibrary/HR.TA.Data/DataAccess/EmailTemplateProvider/IEmailTemplateDataAccess.cs
rename to common/HR.TA.CommonLibrary/HR.TA.Data/IEmailTemplateDataAccess.cs
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/CandidateAttachmentDocumentTypeExtenstions.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/CandidateAttachmentDocumentTypeExtenstions.cs
deleted file mode 100644
index e1f6ae43..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/CandidateAttachmentDocumentTypeExtenstions.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Data.Utils
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Extensions for enumerations.
- ///
- public static partial class EnumExtensions
- {
- private static readonly Tuple[] SupportedContentTypes = new Tuple[]
- {
- Tuple.Create(CandidateAttachmentDocumentType.AVI, "video/x-msvideo"),
- Tuple.Create(CandidateAttachmentDocumentType.DOC, "application/msword"),
- Tuple.Create(CandidateAttachmentDocumentType.DOCX, "application/vnd.openxmlformats-officedocument.wordprocessingml.document"),
- Tuple.Create(CandidateAttachmentDocumentType.HTML, "text/html"),
- Tuple.Create(CandidateAttachmentDocumentType.JPG, "image/jpeg"),
- Tuple.Create(CandidateAttachmentDocumentType.MP4, "video/mp4"),
- Tuple.Create(CandidateAttachmentDocumentType.ODT, "application/vnd.oasis.opendocument.text"),
- Tuple.Create(CandidateAttachmentDocumentType.PDF, "application/pdf"),
- Tuple.Create(CandidateAttachmentDocumentType.PPTX, "application/vnd.openxmlformats-officedocument.presentationml.presentation"),
- Tuple.Create(CandidateAttachmentDocumentType.RTF, "application/rtf"),
- Tuple.Create(CandidateAttachmentDocumentType.TXT, "text/plain")
- };
-
- private static readonly IDictionary ExtensionContentTypeMap = SupportedContentTypes.ToDictionary(s => s.Item1, s => s.Item2);
- private static readonly IDictionary ContentTypeExtensionMap = SupportedContentTypes.ToDictionary(s => s.Item2, s => s.Item1);
-
- ///
- /// Converts to content MIME type.
- ///
- /// Type of the document.
- /// Content type of the document.
- public static string ToContentType(this CandidateAttachmentDocumentType documentType)
- {
- if (ExtensionContentTypeMap.ContainsKey(documentType))
- {
- return ExtensionContentTypeMap[documentType];
- }
- throw new NotSupportedException($"Unknown document type {documentType}");
- }
-
- ///
- /// Converts content MIME type to
- ///
- /// Content type of the document.
- /// of the document.
- public static CandidateAttachmentDocumentType ToExtension(this string contentType)
- {
- if (ContentTypeExtensionMap.ContainsKey(contentType))
- {
- return ContentTypeExtensionMap[contentType];
- }
- throw new NotSupportedException($"Unknown content type {contentType}");
- }
-
- ///
- /// Gets Entity Enum from View model Enum.
- ///
- /// Entity Enum Type
- /// View model Enum
- /// Enum
- public static TEnum ToEntityEnum(this Enum contractEnum)
- where TEnum : struct, IConvertible
- {
- if (contractEnum == null)
- {
- return default(TEnum);
- }
-
- var sourceType = contractEnum.GetType();
- var targetType = typeof(TEnum);
-
- return (TEnum)Enum.Parse(targetType, contractEnum.ToString(), true);
- throw new ArgumentException("ContractEnum attribute does not match Entity Enum");
- }
-
- ///
- /// Gets View Model Enum from Entity Enum
- ///
- /// Entity Enum Type
- /// Entity Enum
- /// If enum value is not found, assigns default value
- /// Enum
- public static TEnum ToContractEnum(this Enum entityEnum, bool assignDefaultIfNotFound = false)
- where TEnum : struct, IConvertible
- {
- if (entityEnum == null)
- {
- return default(TEnum);
- }
-
- var sourceType = entityEnum.GetType();
- var targetType = typeof(TEnum);
-
- var fieldInfo = targetType.GetFields();
- foreach (var member in fieldInfo)
- {
- if (string.Equals(member.Name, entityEnum.ToString(), StringComparison.InvariantCultureIgnoreCase))
- {
- return (TEnum)Enum.Parse(targetType, member.Name);
- }
- }
-
- if (assignDefaultIfNotFound)
- {
- return default(TEnum);
- }
-
- throw new ArgumentException("ContractEnum attribute does not match Entity Enum");
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EmailTemplateExtensions.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EmailTemplateExtensions.cs
deleted file mode 100644
index 76752445..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EmailTemplateExtensions.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Data.Utils
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using HR.TA.Common.Email.GraphContracts;
- using HR.TA.ScheduleService.Contracts.V1;
- using HR.TA.Talent.EnumSetModel.SchedulingService;
- using HR.TA.TalentEntities.Enum;
-
- using CommonEmail = HR.TA.Common.Email;
-
- public static class EmailTemplateExtensions
- {
- public const string HiringManager = "Hiring manager";
-
- public static List parseEmailAddressesByRole(List recipients, IDictionary templateParams)
- {
- List parsedRecipients = new List();
- if (recipients != null)
- {
- foreach (string recipient in recipients)
- {
- if (templateParams.Keys.Contains(recipient))
- {
- var emailValue = templateParams[recipient];
- if (!string.IsNullOrWhiteSpace(emailValue))
- {
- var emailRecipients = emailValue.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
- foreach (var email in emailRecipients)
- {
- parsedRecipients.Add(new GraphEmailAddress() { emailAddress = new EmailAddressProperty() { Address = email } });
- }
- }
- }
- else
- {
- parsedRecipients.Add(new GraphEmailAddress() { emailAddress = new EmailAddressProperty() { Address = recipient } });
- }
- }
- }
- return parsedRecipients;
- }
-
-
- public static EmailTemplateLegacy ConvertToSchedulingTemplate(this CommonEmail.Contracts.EmailTemplate template, string companyName)
- {
- if (template == null)
- {
- return null;
- }
-
- if (!Enum.TryParse(template.TemplateType, out TemplateType templateType))
- {
- throw new CommonEmail.Exceptions.EmailTemplateInvalidOperationException($"Retrieved template has type {template.TemplateType} which is invalid for this service");
- }
-
- List contents = new List();
- AddEmailContentsIfNeeded(contents, EmailContentType.Subject, template.Subject);
- AddEmailContentsIfNeeded(contents, EmailContentType.Header, template.Header);
- AddEmailContentsIfNeeded(contents, EmailContentType.EmailBody, template.Body);
- AddEmailContentsIfNeeded(contents, EmailContentType.Closing, template.Closing);
- AddEmailContentsIfNeeded(contents, EmailContentType.Footer, template.Footer);
-
- var (ccRoles, ccAddresses) = ExtractJobParticipantRoles(template.Cc);
- var (bccRoles, bccAddresses) = ExtractJobParticipantRoles(template.Bcc);
-
- return new EmailTemplateLegacy
- {
- Id = template.Id,
- TemplateName = template.TemplateName,
- TemplateType = templateType,
- IsDefault = template.IsDefault,
- IsAutosent = template.isAutosent,
- EmailContent = contents,
- CcEmailAddressRoles = ccRoles,
- CcEmailAddressList = ccAddresses,
- BccEmailAddressRoles = bccRoles,
- BccEmailAddressList = bccAddresses,
- };
- }
-
- private static void AddEmailContentsIfNeeded(List contents, EmailContentType contentType, string value)
- {
- if (!string.IsNullOrEmpty(value))
- {
- contents.Add(new EmailContent
- {
- EmailContentType = contentType,
- Order = 0,
- Content = value
- });
- }
- }
-
- private static (List roles, List addresses) ExtractJobParticipantRoles(List recipients)
- {
- var participantRoles = new List();
- var addresses = new List();
- if (recipients != null)
- {
- foreach (var recipient in recipients.Where(r => r != null))
- {
- if (Enum.TryParse(recipient.Trim(), out JobParticipantRole role))
- {
- participantRoles.Add(role);
- }
- else if (recipient.Trim() == HiringManager)
- {
- participantRoles.Add(JobParticipantRole.HiringManager);
- }
- else
- {
- addresses.Add(recipient);
- }
- }
- }
-
- return (participantRoles, addresses);
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EnvironmentSettingHelper.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EnvironmentSettingHelper.cs
deleted file mode 100644
index bca8bcb7..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/EnvironmentSettingHelper.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Data
-{
- using System.Threading.Tasks;
-
- using Microsoft.AspNetCore.Http;
- using Microsoft.Azure.Documents;
- using Microsoft.Azure.Documents.Client;
- using HR.TA.Common.Base.ServiceContext;
- using HR.TA.Common.DocumentDB;
- using HR.TA.Common.Routing.DocumentDb;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Environemtn Settings Helper
- ///
- public class EnvironmentSettingHelper : IEnvironmentSettingHelper
- {
- ///
- /// Database name.
- ///
- private const string DataBaseName = "HCMDatabase";
-
- /// Http header key for app name
- private const string AppNameHeader = "x-ms-app-name";
-
- /// Default app name
- private const string DefaultAppName = "offer";
-
- ///
- /// Partition key used for environment setting.
- ///
- private const string PartitionKey = "/id";
-
- /// The hcm service context.
- private readonly IHCMServiceContext hcmServiceContext;
-
- /// Http context accessor
- private readonly IHttpContextAccessor httpContextAccessor;
-
- /// The document client generator.
- private readonly IDocumentClientGenerator documentClientGenerator;
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The HCM service context.
- /// The HTTP context accessor.
- /// The document client generator.
- public EnvironmentSettingHelper(
- IHCMServiceContext hcmServiceContext,
- IHttpContextAccessor httpContextAccessor,
- IDocumentClientGenerator documentClientGenerator)
- {
- this.hcmServiceContext = hcmServiceContext;
- this.httpContextAccessor = httpContextAccessor;
- this.documentClientGenerator = documentClientGenerator;
- }
-
- public async Task GetEnvironmentSettings()
- {
- var documentId = GetUserEnvironmentSettingsDocumentId();
- var client = await this.GetClient();
- return await client.GetFirstOrDefault(f => f.Id == documentId, this.GetFeedOptions());
- }
-
- public string GetUserEnvironmentSettingsDocumentId()
- {
- var appName = this.httpContextAccessor?.HttpContext?.Request?.Headers?[AppNameHeader];
- if (string.IsNullOrEmpty(appName))
- {
- appName = DefaultAppName;
- }
- return string.Concat(appName, "-", this.hcmServiceContext.EnvironmentId);
- }
-
- public async Task GetClient()
- {
- return await this.documentClientGenerator.GetHcmRegionalHcmDocumentClient(this.hcmServiceContext.TenantId, this.hcmServiceContext.EnvironmentId, DataBaseName, typeof(EnvironmentSettings).ToString(), PartitionKey);
- }
-
- private FeedOptions GetFeedOptions()
- {
- var feedOptions = new FeedOptions
- {
- EnableCrossPartitionQuery = true,
- MaxDegreeOfParallelism = -1,
- };
-
- if (!string.IsNullOrEmpty(this.hcmServiceContext.TenantId))
- {
- feedOptions.PartitionKey = new PartitionKey(this.GetUserEnvironmentSettingsDocumentId());
- }
-
- return feedOptions;
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/IEnvironmentSettingHelper.cs b/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/IEnvironmentSettingHelper.cs
deleted file mode 100644
index 0c08eddc..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Data/Utils/IEnvironmentSettingHelper.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Data
-{
- using System.Threading.Tasks;
- using HR.TA.Common.DocumentDB;
- using HR.TA.Common.TalentAttract.Contract;
-
- public interface IEnvironmentSettingHelper
- {
- ///
- /// Gets the client.
- ///
- ///
- Task GetClient();
-
- ///
- /// Gets the environment settings.
- ///
- ///
- Task GetEnvironmentSettings();
-
- ///
- /// Gets the user environment settings document identifier.
- ///
- ///
- string GetUserEnvironmentSettingsDocumentId();
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/FalconEntities/Attract/JobApplication.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/FalconEntities/Attract/JobApplication.cs
index cb250f02..a9e40627 100644
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/FalconEntities/Attract/JobApplication.cs
+++ b/common/HR.TA.CommonLibrary/HR.TA.Talent/FalconEntities/Attract/JobApplication.cs
@@ -13,7 +13,6 @@ namespace HR.TA.Common.Provisioning.Entities.FalconEntities.Attract
using HR.TA.Talent.FalconEntities.Attract;
using HR.TA.Talent.FalconEntities;
using HR.TA.Common.Web.Contracts;
- using HR.TA.Common.OfferManagement.Contracts.V2;
[DataContract]
public class JobApplication : DocDbEntity
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/HR.TA.Talent.csproj b/common/HR.TA.CommonLibrary/HR.TA.Talent/HR.TA.Talent.csproj
index fd6357f2..2f3d1f1d 100644
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/HR.TA.Talent.csproj
+++ b/common/HR.TA.CommonLibrary/HR.TA.Talent/HR.TA.Talent.csproj
@@ -1718,6 +1718,7 @@
+
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntArtifact.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntArtifact.cs
deleted file mode 100644
index a846bf24..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntArtifact.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- ///
- /// MSIntArtifact
- ///
- public class MSIntArtifact
- {
- public int? ArtifactOrdinal { get; set; }
-
- public string ArtifactName { get; set; }
-
- public string ArtifactFileLabel { get; set; }
-
- public string ArtifactType { get; set; }
-
- public string ArtifactDocumentType { get; set; }
-
- public string UploadedByPersona { get; set; }
-
- public string ArtifactDownloadUri { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntFeedback.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntFeedback.cs
deleted file mode 100644
index 4def8e22..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntFeedback.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- using System;
-
- ///
- /// MSIntFeedback
- ///
- public class MSIntFeedback
- {
- public string Comment { get; set; }
-
- public string Status { get; set; }
-
- public string StatusReason { get; set; }
-
- public DateTime? RequestDate { get; set; }
-
- public DateTime? RespondDate { get; set; }
-
- public bool? IsSubmitted { get; set; }
-
- public string SubmittedBy { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntOffer.cs
deleted file mode 100644
index e736a5d4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntOffer.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- using System;
- using System.Collections.Generic;
-
- ///
- /// The MSIntOffer object
- ///
- public class MSIntOffer
- {
- public string OfferID { get; set; }
-
- public string PreviousOfferID { get; set; }
-
- public string NextOfferID { get; set; }
-
- public string JobApplicationID { get; set; }
-
- public string ExternalJobApplicationID { get; set; }
-
- public string JobOpeningID { get; set; }
-
- public string ExternalJobOpeningID { get; set; }
-
- public string ExternalSource { get; set; }
-
- public string OfferPrepareDeepLinkUri { get; set; }
-
- public string OfferCandidateDeepLinkUri { get; set; }
-
- public string OfferStatus { get; set; }
-
- public string OfferStatusReason { get; set; }
-
- public string OfferOwnerComment { get; set; }
-
- public DateTime? OfferPublishDate { get; set; }
-
- public DateTime? OfferWithdrawDate { get; set; }
-
- public DateTime? OfferCloseDate { get; set; }
-
- public DateTime? OfferExpirationDate { get; set; }
-
- public DateTime? OfferAcceptedDate { get; set; }
-
- public string NonStandardOfferNotes { get; set; }
-
- public string CloseOfferComment { get; set; }
-
- public string OfferStatusReasonBeforeClose { get; set; }
-
- public bool? IsSequentialApprovalRequired { get; set; }
-
- public List RequiredCandidateDocuments { get; set; }
-
- public string CandidateEmail { get; set; }
-
- public string CandidateExternalID { get; set; }
-
- public string CandidateComment { get; set; }
-
- public bool? IsOkToContactCandidateAfterDecline { get; set; }
-
- public DateTime? CandidateResponseDate { get; set; }
-
- public DateTime? CandidateDocumentUploadDate { get; set; }
-
- public IEnumerable OfferDeclineReason { get; set; }
-
- public string OfferDeclineComment { get; set; }
-
- public List OfferArtifacts { get; set; }
-
- public List OfferParticipants { get; set; }
-
- public List Tokens { get; set; }
-
- public DateTime? CreatedDate { get; set; }
-
- public string CreatedByEmail { get; set; }
-
- public DateTime? UpdatedDate { get; set; }
-
- public string UpdatedByEmail { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntParticipant.cs
deleted file mode 100644
index 2ca7327f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntParticipant.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- using System.Collections.Generic;
-
- ///
- /// MSIntParticipant
- ///
- public class MSIntParticipant : MSIntPerson
- {
- public string OfferParticipantExternalID { get; set; }
-
- public int? OfferParticipantOrdinal { get; set; }
-
- public string OfferParticipantRole { get; set; }
-
- public MSIntFeedback OfferParticipantFeedback { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntPerson.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntPerson.cs
deleted file mode 100644
index f205f368..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntPerson.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- ///
- /// MSIntPerson
- ///
- public class MSIntPerson
- {
- public string OfficeGraphID { get; set; }
-
- public string PersonnelNumber { get; set; }
-
- public string GivenName { get; set; }
-
- public string MiddleName { get; set; }
-
- public string Surname { get; set; }
-
- public string FullName { get; set; }
-
- public string Email { get; set; }
-
- public string AlternateEmail { get; set; }
-
- public string LinkedIn { get; set; }
-
- public string LinkedInAPI { get; set; }
-
- public string Facebook { get; set; }
-
- public string Twitter { get; set; }
-
- public string HomePhone { get; set; }
-
- public string WorkPhone { get; set; }
-
- public string MobilePhone { get; set; }
-
- public string Profession { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntToken.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntToken.cs
deleted file mode 100644
index 46c2adb3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSIntToken.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Integration.Contracts
-{
- ///
- /// MSIntToken
- ///
- public class MSIntToken
- {
- public string TokenName { get; set; }
-
- public string Value { get; set; }
-
- public string DefaultValue { get; set; }
-
- public string TokenType { get; set; }
-
- public bool? IsOverridden { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewParticipant.cs
deleted file mode 100644
index 1b9d5c53..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewParticipant.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-using System;
-
-namespace HR.TA.Common.Integration.Contracts
-{
- public enum InvitationResponseStatus
- {
- None = 0,
- Accepted = 1,
- TentativelyAccepted = 2,
- Declined = 3,
- Pending = 4,
- Sending = 5,
- ResendRequired = 6,
- }
-
- public enum JobParticipantRole
- {
- HiringManager = 0,
- Recruiter = 1,
- Interviewer = 2,
- Contributor = 3,
- AA = 4,
- HiringManagerDelegate = 5
- }
-
- ///
- /// MSInterviewParticipant
- ///
- public class MSInterviewParticipant
- {
- public string OID { get; set; }
-
- public JobParticipantRole Role { get; set; }
-
- public InvitationResponseStatus ParticipantResponseStatus { get; set; }
-
- public string ParticipantResponseComments { get; set; }
-
- public bool IsAssessmentCompleted { get; set; }
-
- public DateTime ParticipantResponseDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewSchedule.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewSchedule.cs
deleted file mode 100644
index bbcf7d88..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/Integration/MSInterviewSchedule.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-using System;
-using System.Collections.Generic;
-
-namespace HR.TA.Common.Integration.Contracts
-{
- public enum CandidateExternalSource
- {
- Internal = 0,
- MSDataMall = 1,
- LinkedIn = 2,
- Greenhouse = 3,
- ICIMS = 4
- }
-
- public enum ScheduleStatus
- {
- NotScheduled = 0,
- Saved = 1,
- Queued = 2,
- Sent = 3,
- FailedToSend = 4,
- Delete = 5,
- }
-
- public enum InterviewMode
- {
- None,
- FaceToFace,
- OnlineCall,
- }
-
- ///
- /// MSInterviewSchedule
- ///
- public class MSInterviewSchedule
- {
- public string ScheduleID { get; set; }
-
- public string JobApplicationID { get; set; }
-
- public string ExternalCandidateID { get; set; }
-
- public CandidateExternalSource? ExternalCandidateSource { get; set; }
-
- public List InterviewParticipants { get; set; }
-
- public DateTime StartDateTime { get; set; }
-
- public DateTime EndDateTime { get; set; }
-
- public ScheduleStatus ScheduleStatus { get; set; }
-
- public InterviewMode ModeOfInterview { get; set; }
-
- public string ScheduleRequesterOID { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Activity.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Activity.cs
deleted file mode 100644
index f2370309..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Activity.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Application activity data contract.
- ///
- [DataContract]
- public class Activity
- {
- ///
- /// Gets or sets job stage.
- ///
- [DataMember(Name = "stage", IsRequired = false)]
- public JobStage Stage { get; set; }
-
- ///
- /// Gets or sets activity type.
- ///
- [DataMember(Name = "activityType", IsRequired = false)]
- public JobApplicationActivityType ActivityType { get; set; }
-
- ///
- /// Gets or sets location.
- ///
- [DataMember(Name = "location", IsRequired = false, EmitDefaultValue = false)]
- public string Location { get; set; }
-
- ///
- /// Gets or sets description.
- ///
- [DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets planned start date and time.
- ///
- [DataMember(Name = "plannedStartTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? PlannedStartTime { get; set; }
-
- ///
- /// Gets or sets planned end date and time.
- ///
- [DataMember(Name = "plannedEndTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? PlannedEndTime { get; set; }
-
- ///
- /// Gets or sets job application activity status.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public JobApplicationActivityStatus Status { get; set; }
-
- ///
- /// Gets or sets job application status reason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public JobApplicationActivityStatusReason StatusReason { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AddCandidateProjectResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AddCandidateProjectResponse.cs
deleted file mode 100644
index 11cfbf94..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AddCandidateProjectResponse.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The contract for Add Koru candidate to project.
- ///
- [DataContract]
- public class AddCandidateProjectResponse
- {
- ///
- /// Gets or sets the Link Url for assessment.
- ///
- [DataMember(Name = "linkUrl", IsRequired = false, EmitDefaultValue = false)]
- public string LinkUrl { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AdditionalMetadataValue.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AdditionalMetadataValue.cs
deleted file mode 100644
index b0b33c5f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AdditionalMetadataValue.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using Newtonsoft.Json;
- using Newtonsoft.Json.Converters;
-
- ///
- /// One of the values in a dictionary serialized in an AdditionalMetadata field.
- ///
- [DataContract]
- public class AdditionalMetadataValue
- {
- /// The value. Interpretation depends on the type field.
- [DataMember(Name = "value")]
- public string Value { get; set; }
-
- /// The value type.
- [DataMember(Name = "type")]
- [JsonConverter(typeof(StringEnumConverter))]
- public AdditionalMetadataValueType? Type { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermission.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermission.cs
deleted file mode 100644
index 3736890d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermission.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for app level permission
- /// It defines restricted permission on action outside job.
- ///
- [DataContract]
- public enum AppPermission
- {
- ///
- /// Read talent pool
- ///
- ReadTalentPool,
-
- ///
- /// Create Talent Pool
- ///
- CreateTalentPool,
-
- ///
- /// Read template
- ///
- ReadTemplate,
-
- ///
- /// Create template
- ///
- CreateTemplate,
-
- ///
- /// Create job
- ///
- CreateJob,
-
- ///
- /// Read email template
- /// ///
- ReadEmailTemplate,
-
- ///
- /// Create email template
- ///
- CreateEmailTemplate,
-
- ///
- /// Access admin center
- ///
- AccessAdminCenter,
-
- ///
- /// View all jobs, enum for admin/reader to give access to view all jobs
- ///
- ViewAllJobs,
-
- ///
- /// View all jobs, enum for admin/reader to give access to view all applications
- ///
- ViewAllJobApplications,
-
- ///
- /// View all jobs, enum for admin/reader to give access to view all talent pools
- ///
- ViewAllTalentPools,
-
- ///
- /// View all templates, enum for admin/reader to give access to view all templates
- ///
- ViewAllTemplates,
-
- ///
- /// Update all candidate, enum for admin/reader to give access to update all candidates
- ///
- UpdateAllCandidates,
-
- ///
- /// View all analytics, enum for admin/reader to give access to view all analytics
- ///
- ViewAnalytics,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermissions.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermissions.cs
deleted file mode 100644
index 6db3250b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppPermissions.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class with the permissions for a user.
- ///
- [DataContract]
- public class AppPermissions
- {
- ///
- /// Gets or sets the list of app level user permissions.
- ///
- [DataMember(Name = "userPermissions", IsRequired = false, EmitDefaultValue = false)]
- public IList UserPermissions { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleDeleteRequestPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleDeleteRequestPayload.cs
deleted file mode 100644
index 878a52a3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleDeleteRequestPayload.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class representing a request to delete all roles for a list of users
- ///
- [DataContract]
- public class AppRoleDeleteRequestPayload
- {
- ///
- /// List of users to delete all roles for
- ///
- [DataMember(Name = "userObjectIds", IsRequired = true, EmitDefaultValue = false)]
- public IList UserObjectIds { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequest.cs
deleted file mode 100644
index e61ad87b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequest.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Web.Contracts;
-
- ///
- /// Contract class representing a request for upserting the list of user roles for a given user
- ///
- [DataContract]
- public class AppRoleUpsertRequest
- {
- ///
- /// Object Id of the user
- ///
- [DataMember(Name = "userObjectId", IsRequired = false, EmitDefaultValue = false)]
- public string UserObjectId { get; set; }
-
- ///
- /// User details
- ///
- [DataMember(Name = "user", IsRequired = false, EmitDefaultValue = false)]
- public Person User { get; set; }
-
- ///
- /// List of user roles to upsert
- ///
- [DataMember(Name = "userRoles", IsRequired = true, EmitDefaultValue = false)]
- public IList UserRoles { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequestPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequestPayload.cs
deleted file mode 100644
index 62a381f2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoleUpsertRequestPayload.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class representing a list of role upserts to perform for numerous users
- ///
- [DataContract]
- public class AppRoleUpsertRequestPayload
- {
- ///
- /// List of user role upsert requests
- ///
- [DataMember(Name = "roleUpsertRequests", IsRequired = true, EmitDefaultValue = false)]
- public IList RoleUpsertRequests { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoles.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoles.cs
deleted file mode 100644
index 7bb077b4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AppRoles.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Web.Contracts;
-
- ///
- /// Contract class with the permissions for a user.
- ///
- [DataContract]
- public class AppRoles
- {
- ///
- /// Gets or sets the list of app level user permissions.
- ///
- [DataMember(Name = "appRoles", IsRequired = true, EmitDefaultValue = false)]
- public IList UserRoles { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Applicant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Applicant.cs
deleted file mode 100644
index 56362058..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Applicant.cs
+++ /dev/null
@@ -1,153 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- ///
- /// The Applicant data contract.
- ///
- [DataContract]
- public class Applicant : Person
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets guid.
- [DataMember(Name = "guid", IsRequired = false)]
- public Guid? Guid { get; set; }
-
- /// Gets or sets b2c objectid.
- [DataMember(Name = "b2cObjectId", IsRequired = false)]
- public string B2CObjectId { get; set; }
-
- ///
- /// Gets or sets status of the candidate.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public CandidateStatus Status { get; set; }
-
- ///
- /// Gets or sets status reason of the candidate.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public CandidateStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets external candidate ID.
- ///
- [DataMember(Name = "externalId", IsRequired = false)]
- public string ExternalID { get; set; }
-
- ///
- /// Gets or sets external candidate source.
- ///
- [DataMember(Name = "externalSource", IsRequired = false)]
- public CandidateExternalSource ExternalSource { get; set; }
-
- ///
- /// Gets or sets preferred phone.
- ///
- [DataMember(Name = "preferredPhone", IsRequired = false)]
- public CandidatePreferredPhone PreferredPhone { get; set; }
-
- ///
- /// Gets or sets a value indicating whether candidate is internal or not.
- ///
- [DataMember(Name = "internal", IsRequired = false)]
- public bool Internal { get; set; }
-
- ///
- /// Gets or sets a value for the gender of the candidate
- ///
- [DataMember(Name = "gender", IsRequired = false)]
- public CandidateGender Gender { get; set; }
-
- ///
- /// Gets or sets a value for the ethnic origin of the candidates
- ///
- [DataMember(Name = "ethnicOrigin", IsRequired = false)]
- public CandidateEthnicOrigin EthnicOrigin { get; set; }
-
- ///
- /// Gets or sets attachments.
- ///
- [DataMember(Name = "attachments", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Attachments { get; set; }
-
- ///
- /// Gets or sets a value for flag to alert on application change.
- ///
- [DataMember(Name = "alertOnApplicationChange", IsRequired = false, EmitDefaultValue = false)]
- public bool? AlertOnApplicationChange { get; set; }
-
- ///
- /// Gets or sets trackings.
- ///
- [DataMember(Name = "trackings", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Trackings { get; set; }
-
- ///
- /// Gets or sets jobs.
- ///
- [DataMember(Name = "jobs", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Jobs { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
-
- ///
- /// Gets or sets a value indicating whether the candidate is a prospect or not.
- ///
- [DataMember(Name = "isProspect", IsRequired = false, EmitDefaultValue = false)]
- public bool IsProspect { get; set; }
-
- ///
- /// Gets or sets the various work experiences for the applicant.
- ///
- [DataMember(Name = "workExperience", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable WorkExperience { get; set; }
-
- ///
- /// Gets or sets the various education experiences for the applicant.
- ///
- [DataMember(Name = "education", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Education { get; set; }
-
- ///
- /// Gets or sets the various skills for the applicant.
- ///
- [DataMember(Name = "skillSet", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable SkillSet { get; set; }
-
- ///
- /// Gets or sets the social identities.
- ///
- [DataMember(Name = "socialIdentities", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable SocialIdentities { get; set; }
-
- ///
- /// Gets or sets the Rank of applicant.
- ///
- [DataMember(Name = "rank", IsRequired = false, EmitDefaultValue = false)]
- public Rank? Rank { get; set; }
-
- ///
- /// Gets or sets the Talent source
- ///
- [DataMember(Name = "candidateTalentSource", IsRequired = false, EmitDefaultValue = false)]
- public TalentSource CandidateTalentSource { get; set; }
-
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantAttachment.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantAttachment.cs
deleted file mode 100644
index 4f8d0a30..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantAttachment.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Applicant Attachment data contract.
- ///
- [DataContract]
- public class ApplicantAttachment
- {
- ///
- /// Gets or sets attachment id.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets attachment document type.
- ///
- [DataMember(Name = "documentType", IsRequired = false)]
- public CandidateAttachmentDocumentType DocumentType { get; set; }
-
- ///
- /// Gets or sets attachment type.
- ///
- [DataMember(Name = "type", IsRequired = false)]
- public CandidateAttachmentType Type { get; set; }
-
- ///
- /// Gets or sets attachment name.
- ///
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets attachment description.
- ///
- [DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets token generated from CDS blob reference.
- ///
- [DataMember(Name = "reference", IsRequired = false, EmitDefaultValue = false)]
- public string Reference { get; set; }
-
- ///
- /// Gets or sets user action.
- ///
- [DataMember(Name = "userAction", IsRequired = false, EmitDefaultValue = false)]
- public UserAction UserAction { get; set; }
-
- ///
- /// Gets or sets value indicating whether the attachment is selected as one of the job appplication attachments.
- ///
- [DataMember(Name = "isJobApplicationAttachment", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsJobApplicationAttachment { get; set; }
-
- ///
- /// Gets or sets last uploaded by.
- ///
- [DataMember(Name = "uploadedBy", IsRequired = false, EmitDefaultValue = false)]
- public Person UploadedBy { get; set; }
-
- ///
- /// Gets or sets last uploaded date time.
- ///
- [DataMember(Name = "uploadedDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? UploadedDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfile.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfile.cs
deleted file mode 100644
index 38a81859..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfile.cs
+++ /dev/null
@@ -1,121 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Applicant data contract.
- ///
- [DataContract]
- public class ApplicantProfile : Person
- {
- ///
- /// Gets or sets id.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets guid.
- ///
- [DataMember(Name = "guid", IsRequired = false)]
- public Guid Guid { get; set; }
-
- ///
- /// Gets or sets b2c objectid.
- ///
- [DataMember(Name = "b2cObjectId", IsRequired = false)]
- public string B2CObjectId { get; set; }
-
- ///
- /// Gets or sets is internal candidate.
- ///
- [DataMember(Name = "isInternal", IsRequired = false)]
- public bool? IsInternal { get; set; }
-
- ///
- /// Gets or sets status of the candidate.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public CandidateStatus Status { get; set; }
-
- ///
- /// Gets or sets status reason of the candidate.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public CandidateStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets external candidate source.
- ///
- [DataMember(Name = "externalSource", IsRequired = false)]
- public CandidateExternalSource? ExternalSource { get; set; }
-
- ///
- /// Gets or sets preferred phone.
- ///
- [DataMember(Name = "preferredPhone", IsRequired = false)]
- public CandidatePreferredPhone PreferredPhone { get; set; }
-
- ///
- /// Gets or sets a value for the gender of the candidate
- ///
- [DataMember(Name = "gender", IsRequired = false)]
- public CandidateGender Gender { get; set; }
-
- ///
- /// Gets or sets a value for the ethnic origin of the candidates
- ///
- [DataMember(Name = "ethnicOrigin", IsRequired = false)]
- public CandidateEthnicOrigin EthnicOrigin { get; set; }
-
- ///
- /// Gets or sets attachments.
- ///
- [DataMember(Name = "attachments", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Attachments { get; set; }
-
- ///
- /// Gets or sets a value for flag to alert on application change.
- ///
- [DataMember(Name = "alertOnApplicationChange", IsRequired = false, EmitDefaultValue = false)]
- public bool? AlertOnApplicationChange { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
-
- ///
- /// Gets or sets the various work experiences for the applicant.
- ///
- [DataMember(Name = "workExperience", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable WorkExperience { get; set; }
-
- ///
- /// Gets or sets the various education experiences for the applicant.
- ///
- [DataMember(Name = "education", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Education { get; set; }
-
- ///
- /// Gets or sets the various skills for the applicant.
- ///
- [DataMember(Name = "skillSet", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable SkillSet { get; set; }
-
- ///
- /// Gets or sets the Talent source
- ///
- [DataMember(Name = "talentSource", IsRequired = false, EmitDefaultValue = false)]
- public TalentSource TalentSource { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithApplicationDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithApplicationDetails.cs
deleted file mode 100644
index b0bfed1d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithApplicationDetails.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The Applicant data contract.
- ///
- [DataContract]
- public class ApplicantProfileWithApplicationDetails
- {
- ///
- /// Gets or sets identityProvider.
- ///
- [DataMember(Name = "identityProvider", IsRequired = true)]
- public string IdentityProvider { get; set; }
-
- ///
- /// Gets or sets identityProviderUsername.
- ///
- [DataMember(Name = "identityProviderUsername", IsRequired = true)]
- public string IdentityProviderUsername { get; set; }
-
- ///
- /// Gets or sets isTermsAcceptedByCandidate.
- ///
- [DataMember(Name = "isTermsAcceptedByCandidate", IsRequired = true)]
- public bool IsTermsAcceptedByCandidate { get; set; }
-
- ///
- /// Gets or sets applicant profile.
- ///
- [DataMember(Name = "applicantProfile", IsRequired = true)]
- public ApplicantProfile ApplicantProfile { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithLoginDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithLoginDetails.cs
deleted file mode 100644
index 9edca3b9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantProfileWithLoginDetails.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The Applicant data contract.
- ///
- [DataContract]
- public class ApplicantProfileWithLoginDetails
- {
- ///
- /// Gets or sets identityProvider.
- ///
- [DataMember(Name = "identityProvider", IsRequired = true)]
- public string IdentityProvider { get; set; }
-
- ///
- /// Gets or sets identityProviderUsername.
- ///
- [DataMember(Name = "identityProviderUsername", IsRequired = true)]
- public string IdentityProviderUsername { get; set; }
-
- ///
- /// Gets or sets applicant profile.
- ///
- [DataMember(Name = "applicantProfile", IsRequired = true)]
- public ApplicantProfile ApplicantProfile { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantTracking.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantTracking.cs
deleted file mode 100644
index 116b6a20..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicantTracking.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Applicant Tracking data contract.
- ///
- [DataContract]
- public class ApplicantTagTracking
- {
- ///
- /// Gets or sets tracking id.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets tracking owner.
- ///
- [DataMember(Name = "owner", IsRequired = false, EmitDefaultValue = false)]
- public Person Owner { get; set; }
-
- ///
- /// Gets or sets tracking category.
- ///
- [DataMember(Name = "category", IsRequired = false, EmitDefaultValue = false)]
- public CandidateTrackingCategory Category { get; set; }
-
- ///
- /// Gets or sets tracking tags.
- ///
- [DataMember(Name = "tags", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Tags { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Application.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Application.cs
deleted file mode 100644
index 341ea3ca..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Application.cs
+++ /dev/null
@@ -1,169 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Application data contract.
- ///
- [DataContract]
- public class Application : TalentBaseContract
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets candidate for the application.
- ///
- [DataMember(Name = "candidate", IsRequired = false, EmitDefaultValue = false)]
- public Applicant Candidate { get; set; }
-
- ///
- /// Gets or sets application hiring team.
- ///
- [DataMember(Name = "hiringTeam", IsRequired = false, EmitDefaultValue = false)]
- public IList HiringTeam { get; set; }
-
- ///
- /// Gets or sets job external status.
- ///
- [DataMember(Name = "externalStatus", IsRequired = false)]
- public string ExternalStatus { get; set; }
-
- ///
- /// Gets or sets status of the application.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public JobApplicationStatus Status { get; set; }
-
- ///
- /// Gets or sets status reason of the JobApplication.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public JobApplicationStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets the rejection reason.
- ///
- [DataMember(Name = "rejectionReason", IsRequired = false)]
- public OptionSetValue RejectionReason { get; set; }
-
- ///
- /// Gets or sets current application stage.
- ///
- [DataMember(Name = "currentStage", IsRequired = false)]
- public JobStage CurrentStage { get; set; }
-
- ///
- /// Gets or sets current application stage.
- ///
- [DataMember(Name = "currentApplicationStage", IsRequired = false)]
- public ApplicationStage CurrentApplicationStage { get; set; }
-
- ///
- /// Gets or sets status of the current job opening stage.
- ///
- [DataMember(Name = "currentStageStatus", IsRequired = false)]
- public JobApplicationStageStatus CurrentStageStatus { get; set; }
-
- ///
- /// Gets or sets status reason of the current job opening stage.
- ///
- [DataMember(Name = "currentStageStatusReason", IsRequired = false)]
- public JobApplicationStageStatusReason CurrentStageStatusReason { get; set; }
-
- ///
- /// Gets or sets status of the current applicant status.
- ///
- [DataMember(Name = "assessmentStatus", IsRequired = false)]
- public AssessmentStatus ApplicantAssessmentStatus { get; set; }
-
- ///
- /// Gets or sets a the invitation ID
- ///
- [DataMember(Name = "invitationId", IsRequired = false, EmitDefaultValue = false)]
- public string InvitationId { get; set; }
-
- ///
- /// Gets or sets application date.
- ///
- [DataMember(Name = "applicationDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? ApplicationDate { get; set; }
-
- ///
- /// Gets or sets application comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets application comment.
- ///
- [DataMember(Name = "schedules", IsRequired = false, EmitDefaultValue = false)]
- public IList Schedules { get; set; }
-
- ///
- /// Gets or sets the external source.
- ///
- [DataMember(Name = "externalSource", IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationExternalSource? ExternalSource { get; set; }
-
- ///
- /// Gets or sets the external id.
- ///
- [DataMember(Name = "externalId", IsRequired = false, EmitDefaultValue = false)]
- public string ExternalId { get; set; }
-
- ///
- /// Gets or sets application notes.
- ///
- [DataMember(Name = "notes", IsRequired = false, EmitDefaultValue = false)]
- public IList Notes { get; set; }
-
- ///
- /// Gets or sets stages.
- ///
- [DataMember(Name = "stages", IsRequired = false, EmitDefaultValue = false)]
- public IList Stages { get; set; }
-
- ///
- /// Gets or sets a value indicating whether the application is a prospect or not.
- ///
- [DataMember(Name = "isProspect", IsRequired = false, EmitDefaultValue = false)]
- public bool IsProspect { get; set; }
-
- ///
- /// Gets or sets the position to the applicaiton
- ///
- [DataMember(Name = "jobOpeningPosition", IsRequired = false, EmitDefaultValue = false)]
- public JobOpeningPosition JobOpeningPosition { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
-
- ///
- /// Gets or sets the list of permissions to the job application for the calling user.
- ///
- [DataMember(Name = "userPermissions", IsRequired = false, EmitDefaultValue = false)]
- public IList UserPermissions { get; set; }
-
-
- ///
- /// Gets or sets the Talent source
- ///
- [DataMember(Name = "applicationTalentSource", IsRequired = false, EmitDefaultValue = false)]
- public TalentSource ApplicationTalentSource { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationConfiguration.cs
deleted file mode 100644
index ce8682ff..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationConfiguration.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Configuration for Assessment activity.
- ///
- [DataContract]
- public class ApplicationConfiguration
- {
- ///
- /// Gets or sets a value indicating whether to send mail to candidate when candidate is added to job application.
- ///
- [DataMember(Name = "sendMailToCandidate", IsRequired = false, EmitDefaultValue = false)]
- public bool SendMailToCandidate { get; set; }
-
- ///
- /// Gets or sets a value indicating whether resume is required for an applicant to apply for a job.
- ///
- [DataMember(Name = "enforceApplicantForResume", IsRequired = false, EmitDefaultValue = false)]
- public bool EnforceApplicantForResume { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationNote.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationNote.cs
deleted file mode 100644
index c2660321..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationNote.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Application note data contract.
- ///
- [DataContract]
- public class ApplicationNote : TalentBaseContract
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the text.
- ///
- [DataMember(Name = "text", IsRequired = false, EmitDefaultValue = false)]
- public string Text { get; set; }
-
- ///
- /// Gets or sets the visibility.
- ///
- [DataMember(Name = "visibility", IsRequired = false, EmitDefaultValue = false)]
- public CandidateNoteVisibility Visibility { get; set; }
-
- /// Gets or sets owner object id.
- [DataMember(Name = "ownerObjectId", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerObjectId { get; set; }
-
- /// Gets or sets owner name.
- [DataMember(Name = "ownerName", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerName { get; set; }
-
- /// Gets or sets owner email.
- [DataMember(Name = "ownerEmail", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerEmail { get; set; }
-
- /// Gets or sets id.
- [DataMember(Name = "createdDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CreatedDate { get; set; }
-
- [DataMember(Name = "noteType", EmitDefaultValue = false, IsRequired = false)]
- public CandidateNoteType? NoteType { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationPermission.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationPermission.cs
deleted file mode 100644
index baf579c8..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationPermission.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for application level permission
- /// It defines restricted permission on action which is in application scope but outside activity.
- ///
- [DataContract]
- public enum ApplicationPermission
- {
- ///
- /// Read Note
- ///
- ReadNote,
-
- ///
- /// Create Note
- ///
- CreateNote,
-
- ///
- /// Create Offer
- ///
- CreateOffer,
-
- ///
- /// Read application
- ///
- ReadApplication,
-
- ///
- /// Update application
- ///
- UpdateApplication,
-
- ///
- /// Delete application
- ///
- DeleteApplication,
-
- ///
- /// Reject Applicant
- ///
- RejectApplicant,
-
- ///
- /// View all activities, enum is reader to give read access to activities
- ///
- ViewAllActivities,
-
- ///
- /// Update all activites, enum for all admin to give update access to activities
- ///
- UpdateAllActivities,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationSchedule.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationSchedule.cs
deleted file mode 100644
index 5110b174..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationSchedule.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Contract for Job closing.
- ///
- [DataContract]
- public class ApplicationSchedule
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets stage.
- [DataMember(Name = "stage", IsRequired = false, EmitDefaultValue = false)]
- public JobStage Stage { get; set; }
-
- /// Gets or sets schedule event id.
- [DataMember(Name = "scheduleEventId", IsRequired = false, EmitDefaultValue = false)]
- public string ScheduleEventId { get; set; }
-
- /// Gets or sets schedule state.
- [DataMember(Name = "scheduleState", IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationScheduleState ScheduleState { get; set; }
-
- /// Gets or sets application.
- [DataMember(Name = "application", IsRequired = false, EmitDefaultValue = false)]
- public Application Application { get; set; }
-
- /// Gets or sets stage.
- [DataMember(Name = "stageOrder", IsRequired = false, EmitDefaultValue = false)]
- public int StageOrder { get; set; }
-
- [DataMember(Name = "activityOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivityOrdinal { get; set; }
-
- [DataMember(Name = "activitySubOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivitySubOrdinal { get; set; }
-
- /// Gets or sets schedule availabilities.
- [DataMember(Name = "scheduleAvailabilities", IsRequired = false, EmitDefaultValue = false)]
- public IList ScheduleAvailabilities { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationStage.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationStage.cs
deleted file mode 100644
index d1f328fb..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ApplicationStage.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Application Stage data contract.
- ///
- [DataContract]
- public class ApplicationStage : TalentBaseContract
- {
- ///
- /// Gets or sets job stage.
- ///
- [DataMember(Name = "stage")]
- public JobStage Stage { get; set; }
-
- ///
- /// Gets or sets order.
- ///
- [DataMember(Name = "order")]
- public int Order { get; set; }
-
- ///
- /// Gets or sets the display name.
- ///
- [DataMember(Name = "displayName", IsRequired = false, EmitDefaultValue = false)]
- public string DisplayName { get; set; }
-
- ///
- /// Gets or sets the description.
- ///
- [DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets the stage activities.
- ///
- [DataMember(Name = "stageActivities", IsRequired = false, EmitDefaultValue = false)]
- public IList StageActivities { get; set; }
-
- ///
- /// Gets or sets a value which indicates that the stage is acitve stage or not.
- ///
- [DataMember(Name = "isActiveStage", IsRequired = false, EmitDefaultValue = false)]
- public bool IsActiveStage { get; set; }
-
- ///
- /// Gets or sets status.
- ///
- [DataMember(Name = "totalActivities", IsRequired = false, EmitDefaultValue = false)]
- public int TotalActivities { get; set; }
-
- ///
- /// Gets or sets status.
- ///
- [DataMember(Name = "completedActivities", IsRequired = false, EmitDefaultValue = false)]
- public int CompletedActivities { get; set; }
-
- ///
- /// Gets or sets Status Changed Date Time.
- ///
- [DataMember(Name = "lastCompletedActivityDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? LastCompletedActivityDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConfiguration.cs
deleted file mode 100644
index a479fca6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConfiguration.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Configuration for Assessment activity.
- ///
- [DataContract]
- public class AssessmentConfiguration
- {
- ///
- /// Gets or sets a list of job opening assessments.
- ///
- [DataMember(Name = "jobAssessments", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable JobAssessments { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConnectionsRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConnectionsRequest.cs
deleted file mode 100644
index 03d28cbb..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentConnectionsRequest.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Assessment connection missing request contract.
- ///
- [DataContract]
- public class AssessmentConnectionsRequest
- {
- ///
- /// Gets or sets Job Opening Id.
- ///
- [DataMember(Name = "jobOpeningId", IsRequired = false)]
- public string JobOpeningId { get; set; }
-
- ///
- /// Gets or sets Assessment providers.
- ///
- [DataMember(Name = "providers", IsRequired = false)]
- public IEnumerable Providers { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstanceAnonymousIdentifier.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstanceAnonymousIdentifier.cs
deleted file mode 100644
index 8d43a54b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstanceAnonymousIdentifier.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it.
-namespace HR.TA.Common.Attract.Contract
-{
- using System.Runtime.Serialization;
-
- /// Assessment instance anonymous identifier contract.
- [DataContract]
- public class AssessmentInstanceAnonymousIdentifier
- {
- ///
- /// Gets or sets the anonymous identifier ID.
- ///
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- ///
- /// Gets or sets external assessment engine provider id.
- ///
- [DataMember(Name = "provider", IsRequired = true)]
- public int Provider { get; set; }
-
- ///
- /// Gets or sets the mapped AssessmentReport entity ID.
- ///
- [DataMember(Name = "assessmentReportId", IsRequired = true)]
- public string AssessmentReportId { get; set; }
-
- ///
- /// Gets or sets the mapped EnvironmentId.
- ///
- [DataMember(Name = "environmentId")]
- public string EnvironmentId { get; set; }
-
- ///
- /// Gets or sets the mapped EnvironmentId.
- ///
- [DataMember(Name = "tenantObjectId")]
- public string TenantObjectId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstructions.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstructions.cs
deleted file mode 100644
index 020b2103..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentInstructions.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessments provided by external assessment providers.
- ///
- [DataContract]
- public class AssessmentInstructions
- {
- ///
- /// Gets or sets the introduction.
- ///
- [DataMember(Name = nameof(Introduction), IsRequired = false, EmitDefaultValue = false)]
- public string Introduction { get; set; }
-
- ///
- /// Gets or sets the ending.
- ///
- [DataMember(Name = nameof(Ending), IsRequired = false, EmitDefaultValue = false)]
- public string Ending { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProject.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProject.cs
deleted file mode 100644
index da7b0aa7..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProject.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessments provided by external assessment providers.
- ///
- [DataContract]
- public class AssessmentProject
- {
- ///
- /// Gets or sets the ID.
- ///
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string ID { get; set; }
-
- ///
- /// Gets or sets the created Date.
- ///
- [DataMember(Name = "created", IsRequired = false, EmitDefaultValue = false)]
- public string Created { get; set; }
-
- ///
- /// Gets or sets the title.
- ///
- [DataMember(Name = "title", IsRequired = false, EmitDefaultValue = false)]
- public string Title { get; set; }
-
- ///
- /// Gets or sets the previewURL.
- ///
- [DataMember(Name = "previewURL", IsRequired = false, EmitDefaultValue = false)]
- public string PreviewURL { get; set; }
-
- ///
- /// Gets or sets the description.
- ///
- [DataMember(Name = "projectStatus", IsRequired = false, EmitDefaultValue = true)]
- public string ProjectStatus { get; set; }
-
- ///
- /// Gets or sets the description.
- ///
- [DataMember(Name = "instructions", IsRequired = false, EmitDefaultValue = true)]
- public AssessmentInstructions Instructions { get; set; }
-
- ///
- /// Gets or sets the Template.
- ///
- [DataMember(Name = "templates", IsRequired = false, EmitDefaultValue = true)]
- public IList Templates { get; set; }
-
- ///
- /// Gets or sets the Users.
- ///
- [DataMember(Name = "users", IsRequired = false, EmitDefaultValue = true)]
- public IList Users { get; set; }
-
- ///
- /// Gets or sets the Company name.
- ///
- [DataMember(Name = "companyName", IsRequired = false, EmitDefaultValue = true)]
- public string CompanyName { get; set; }
-
- ///
- /// Gets or sets the Job title.
- ///
- [DataMember(Name = "jobTitle", IsRequired = false, EmitDefaultValue = true)]
- public string JobTitle { get; set; }
-
- ///
- /// Gets or sets the Job description.
- ///
- [DataMember(Name = "jobDescription", IsRequired = false, EmitDefaultValue = true)]
- public string JobDescription { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectAccessToken.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectAccessToken.cs
deleted file mode 100644
index 54d6ba90..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectAccessToken.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it.
-namespace HR.TA.Common.Attract.Contract
-{
- using System.Runtime.Serialization;
-
- /// Assessment provider access token
- [DataContract]
- public class AssessmentProjectAccessToken
- {
- ///
- /// Gets or sets the id.
- ///
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- ///
- /// Gets or sets the AAD user who owns this OAUTH connection.
- ///
- [DataMember(Name = "user", IsRequired = true)]
- public string User { get; set; }
-
- ///
- /// Gets or sets the Tenant.
- ///
- [DataMember(Name = "tenant", IsRequired = false)]
- public string Tenant { get; set; }
-
- ///
- /// Gets or sets external assessment engine provider id.
- ///
- [DataMember(Name = "provider", IsRequired = true)]
- public int Provider { get; set; }
-
- ///
- /// Gets or sets assessment access token.
- ///
- [DataMember(Name = "projectAccessToken", IsRequired = true)]
- public string ProjectAccessToken { get; set; }
-
- ///
- /// Gets or sets the project Id.
- ///
- [DataMember(Name = "projectID", IsRequired = true)]
- public string ProjectID { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectContributors.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectContributors.cs
deleted file mode 100644
index 0e1ac96b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProjectContributors.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessment project contributors.
- ///
- [DataContract]
- public class AssessmentProjectContributors
- {
- ///
- /// Gets or sets the project id.
- ///
- [DataMember(Name = "projectId", IsRequired = false, EmitDefaultValue = false)]
- public string ProjectId { get; set; }
-
- ///
- /// Gets or sets the add contributors.
- ///
- [DataMember(Name = "addContributors", IsRequired = false, EmitDefaultValue = false)]
- public IList AddContributors { get; set; }
-
- ///
- /// Gets or sets the remove contributors.
- ///
- [DataMember(Name = "removeContributors", IsRequired = false, EmitDefaultValue = false)]
- public IList RemoveContributors { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProviderConnection.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProviderConnection.cs
deleted file mode 100644
index 2b41a952..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentProviderConnection.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it.
-namespace HR.TA.Common.Attract.Contract
-{
- using System.Runtime.Serialization;
-
- /// Assessment provider connection
- [DataContract]
- public class AssessmentProviderConnection
- {
- ///
- /// Gets or sets the id.
- ///
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- ///
- /// Gets or sets the AAD user who owns this OAUTH connection.
- ///
- [DataMember(Name = "user", IsRequired = true)]
- public string User { get; set; }
-
- ///
- /// Gets or sets the AAD Tenant id.
- ///
- [DataMember(Name = "tenant", IsRequired = false)]
- public string Tenant { get; set; }
-
- ///
- /// Gets or sets external assessment engine provider id.
- ///
- [DataMember(Name = "provider", IsRequired = true)]
- public int Provider { get; set; }
-
- ///
- /// Gets or sets assessment provider OAUTH authentication token.
- ///
- [DataMember(Name = "authToken", IsRequired = true)]
- public string AuthToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentQuestion.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentQuestion.cs
deleted file mode 100644
index 89aacbf2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentQuestion.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessments provided by external assessment providers.
- ///
- [DataContract]
- public class AssessmentQuestion
- {
- ///
- /// Gets or sets the questionType.
- ///
- [DataMember(Name = "questionType", IsRequired = false, EmitDefaultValue = false)]
- public int QuestionType { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentReport.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentReport.cs
deleted file mode 100644
index f6092ece..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentReport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using HR.TA.TalentEntities.Enum;
-
- public class AssessmentReport
- {
- public string AdditionalInformation { get; set; }
-
- public string AssessmentReportID { get; set; }
-
- public string ExternalAssessmentReportID { get; set; }
-
- public string AssessmentStatus { get; set; }
-
- public string AssessmentType { get; set; }
-
- public string AssessmentURL { get; set; }
-
- public AssessmentStatus ApplicantAssessmentStatus { get; set; }
-
- public string Comment { get; set; }
-
- public DateTime? DateCompleted { get; set; }
-
- public AssessmentReportType ReportType { get; set; }
-
- public string ReportURL { get; set; }
-
- public IList AssessmentResults { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentResult.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentResult.cs
deleted file mode 100644
index 27eeb72b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentResult.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- public class AssessmentResult
- {
- public string AdditionalInformation { get; set; }
-
- public AssessmentReport AssessmentReport { get; set; }
-
- public string AssessmentResultID { get; set; }
-
- public string AssessmentReportID { get; set; }
-
- public string ResultSubject { get; set; }
-
- public string ScoreType { get; set; }
-
- public string ScoreValue { get; set; }
-
- public string AdditionalResultData { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentUser.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentUser.cs
deleted file mode 100644
index 5d38ec2e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AssessmentUser.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessment user.
- ///
- [DataContract]
- public class AssessmentUser
- {
- ///
- /// Gets or sets the User Id.
- ///
- [DataMember(Name = "userId", IsRequired = false, EmitDefaultValue = false)]
- public string UserId { get; set; }
-
- ///
- /// Gets or sets the Role.
- ///
- [DataMember(Name = "role", IsRequired = false, EmitDefaultValue = false)]
- public int Role { get; set; }
-
- ///
- /// Gets or sets the Name.
- ///
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
- public string Name { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AttachmentDescription.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AttachmentDescription.cs
deleted file mode 100644
index 2faa12d6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/AttachmentDescription.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Candidate file attachment description
- ///
- [DataContract]
- public class AttachmentDescription
- {
- ///
- /// Gets or sets File Size
- ///
- [DataMember(Name = "fileSize")]
- public long FileSize { get; set; }
-
- ///
- /// Gets or sets file uploader ID
- ///
- [DataMember(Name = "fileUploaderId")]
- public string FileUploaderId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BroadbeanClientCredentials.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BroadbeanClientCredentials.cs
deleted file mode 100644
index ba9e41f1..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BroadbeanClientCredentials.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Credentials for the client
- ///
- [DataContract]
- public class BroadbeanClientCredentials
- {
- ///
- /// Broadbean username
- ///
- [DataMember(Name = "username", IsRequired = true)]
- public string Username { get; set; }
-
- ///
- /// Broadbean clientId
- ///
- [DataMember(Name = "clientId", IsRequired = true)]
- public string ClientId { get; set; }
-
- ///
- /// Broadbean encryption token
- ///
- [DataMember(Name = "encryptionToken", IsRequired = true)]
- public string EncryptionToken { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BulkUploadResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BulkUploadResponse.cs
deleted file mode 100644
index 0c18d5c4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/BulkUploadResponse.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Bulk upload of jobs and candidates response.
- ///
- [DataContract]
- public class BulkUploadResponse
- {
- ///
- /// Gets or sets version.
- ///
- [DataMember(Name = "version", IsRequired = false, EmitDefaultValue = false)]
- public long Version { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateOfferSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateOfferSettings.cs
deleted file mode 100644
index 5c743332..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateOfferSettings.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Attract.Contract
-{
- using HR.TA.Common.TalentAttract.Contract;
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The offer setting data contract.
- ///
- [DataContract]
- public class CandidateOfferSettings
- {
- ///
- /// Gets or sets offer feature.
- ///
- [DataMember(Name = "offerFeature", IsRequired = false, EmitDefaultValue = true)]
- public IEnumerable OfferFeature { get; set; }
-
- ///
- /// Gets or sets value of post offer redirection settings
- ///
- [DataMember(Name = "offerAcceptanceRedirectionSettings", IsRequired = false, EmitDefaultValue = false)]
- public OfferAcceptanceRedirectionSettings OfferAcceptanceRedirectionSettings { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidatePersonalDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidatePersonalDetails.cs
deleted file mode 100644
index 6a747205..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidatePersonalDetails.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Candidate personal details data contract.
- ///
- [DataContract]
- public class CandidatePersonalDetails : TalentBaseContract
- {
- [DataMember(Name = "Gender", EmitDefaultValue = false, IsRequired = false)]
- public CandidateGender? Gender { get; set; }
-
- [DataMember(Name = "Ethnicity", EmitDefaultValue = false, IsRequired = false)]
- public CandidateEthnicOrigin? Ethnicity { get; set; }
-
- [DataMember(Name = "DisabilityStatus", EmitDefaultValue = false, IsRequired = false)]
- public CandidateDisabilityStatus? DisabilityStatus { get; set; }
-
- [DataMember(Name = "VeteranStatus", EmitDefaultValue = false, IsRequired = false)]
- public CandidateVeteranStatus? VeteranStatus { get; set; }
-
- [DataMember(Name = "MilitaryStatus", EmitDefaultValue = false, IsRequired = false)]
- public CandidateMilitaryStatus? MilitaryStatus { get; set; }
-
- [DataMember(Name = "submittedOn", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? SubmittedOn { get; set; }
-
- [DataMember(Name = "jobApplicationActivityId", EmitDefaultValue = false, IsRequired = false)]
- public string JobApplicationActivityId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateRecommendationFeedback.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateRecommendationFeedback.cs
deleted file mode 100644
index 44055f90..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateRecommendationFeedback.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The candidate recommendation feedback data contract.
- ///
- [DataContract]
- public class CandidateRecommendationFeedback
- {
- /// Gets or sets applicantId.
- [DataMember(Name = "applicantId", IsRequired = false)]
- public string ApplicantId { get; set; }
-
- /// Gets or sets a value indicating whether the user is interested in the candidate.
- [DataMember(Name = "interested", IsRequired = false)]
- public bool Interested { get; set; }
-
- /// Gets or sets a value indicating whether the candidate experience is disliked by the user.
- [DataMember(Name = "experience", IsRequired = false)]
- public bool Experience { get; set; }
-
- /// Gets or sets a value indicating whether the candidate skills is disliked by the user.
- [DataMember(Name = "skills", IsRequired = false)]
- public bool Skills { get; set; }
-
- /// Gets or sets a value indicating whether the candidate education is disliked by the user.
- [DataMember(Name = "education", IsRequired = false)]
- public bool Education { get; set; }
-
- /// Gets or sets a value indicating whether there are other reasons for not liking the candidate recommendation.
- [DataMember(Name = "other", IsRequired = false)]
- public bool Other { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchRequest.cs
deleted file mode 100644
index c6df6a92..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchRequest.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Facet Details contract.
- ///
- [DataContract]
- public class CandidateSearchRequest
- {
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Facet Search Request
- ///
- [DataMember(Name = "facetSearchRequest", EmitDefaultValue = false, IsRequired = false)]
- public List FacetSearchRequest { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchResponse.cs
deleted file mode 100644
index 1b1a4c28..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/CandidateSearchResponse.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Facet Details contract.
- ///
- [DataContract]
- public class CandidateSearchResponse
- {
- ///
- /// Canidates
- ///
- [DataMember(Name = "candidates", EmitDefaultValue = false, IsRequired = false)]
- public List Candidates { get; set; }
-
- ///
- /// Facet Response
- ///
- [DataMember(Name = "filters", EmitDefaultValue = false, IsRequired = false)]
- public List Filters { get; set; }
-
- ///
- /// Gets or sets total
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ContactHiringTeam.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ContactHiringTeam.cs
deleted file mode 100644
index 0758b2b0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ContactHiringTeam.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.Attract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- using HR.TA.Common.Email.Contracts;
-
-
- ///
- /// The offer setting data contract.
- ///
- [DataContract]
- public class ContactHiringTeam
- {
- ///
- /// Gets or sets email template
- ///
- [DataMember(Name = "template", IsRequired = false, EmitDefaultValue = true)]
- public EmailTemplate Template { get; set; }
-
- ///
- /// Gets or sets attachment ids
- ///
- [DataMember(Name = "attachmentIds", IsRequired = false, EmitDefaultValue = true)]
- public List AttachmentIds { get; set; }
-
- ///
- /// Gets or sets candidate id
- ///
- [DataMember(Name = "candidateId", IsRequired = false, EmitDefaultValue = true)]
- public string CandidateId { get; set; }
-
- ///
- /// Gets or sets job id
- ///
- [DataMember(Name = "jobId", IsRequired = false, EmitDefaultValue = true)]
- public string JobId { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesRequest.cs
deleted file mode 100644
index 3c27c88b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesRequest.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- [DataContract]
- public class DashboardActivitiesRequest
- {
- ///
- /// Gets or sets planned start date and time.
- ///
- [DataMember(Name = "startTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? StartTime { get; set; }
-
- ///
- /// Gets or sets planned end date and time.
- ///
- [DataMember(Name = "endTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? EndTime { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets continuation token for skip
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesResponse.cs
deleted file mode 100644
index 30db616e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivitiesResponse.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- [DataContract]
- public class DashboardActivitiesResponse
- {
- ///
- /// Gets or sets dashboard activities for user
- ///
- [DataMember(Name = "dashboardActivities", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable DashboardActivities { get; set; }
-
- ///
- /// Gets or sets continuation token for skip
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivity.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivity.cs
deleted file mode 100644
index 830684fb..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DashboardActivity.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- [DataContract]
- public class DashboardActivity
- {
- ///
- /// Gets or sets planned start date and time.
- ///
- [DataMember(Name = "startTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? StartTime { get; set; }
-
- ///
- /// Gets or sets planned end date and time.
- ///
- [DataMember(Name = "endTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? EndTime { get; set; }
-
- ///
- /// Gets or sets planned end date and time.
- ///
- [DataMember(Name = "jobApplicationActivityType", IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationActivityType? JobApplicationActivityType { get; set; }
-
- ///
- /// Gets or sets activity
- ///
- [DataMember(Name = "activity", IsRequired = false, EmitDefaultValue = false)]
- public StageActivity Activity { get; set; }
-
- ///
- /// Gets or sets participants
- ///
- [DataMember(Name = "participants", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Participants { get; set; }
-
- ///
- /// Gets or sets stage order
- ///
- [DataMember(Name = "stageOrder", IsRequired = false, EmitDefaultValue = false)]
- public long? StageOrder { get; set; }
-
- ///
- /// Gets or sets planned end date and time.
- ///
- [DataMember(Name = "applicant", IsRequired = false, EmitDefaultValue = false)]
- public Applicant Applicant { get; set; }
-
- ///
- /// Gets or sets job
- ///
- [DataMember(Name = "job", IsRequired = false, EmitDefaultValue = false)]
- public Job Job { get; set; }
-
- ///
- /// Gets or sets job application id
- ///
- [DataMember(Name = "jobApplicationId", IsRequired = false, EmitDefaultValue = false)]
- public string JobApplicationId { get; set; }
-
- ///
- /// Gets or sets job application stage
- ///
- [DataMember(Name = "jobApplicationStage", IsRequired = false, EmitDefaultValue = false)]
- public ApplicationStage JobApplicationStage { get; set; }
-
- ///
- /// Gets or sets attendees
- ///
- [DataMember(Name = "attendees", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Attendees { get; set; }
-
- ///
- /// Gets or sets Flag that notify either activity is delegated
- ///
- [DataMember(Name = "isDelegated", IsRequired = false, EmitDefaultValue = false)]
- public bool IsDelegated { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Delegate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Delegate.cs
deleted file mode 100644
index 6b9c20aa..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Delegate.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Contract class representing person details and who they are acting on behalf of
- ///
- [DataContract]
- public class Delegate : Person
- {
- ///
- /// Gets or sets the user object id of the principal user for the delegate
- ///
- [DataMember(Name = "onBehalfOfUserObjectId", IsRequired = false, EmitDefaultValue = false)]
- public string OnBehalfOfUserObjectId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegateUpsertRequestPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegateUpsertRequestPayload.cs
deleted file mode 100644
index a8ae9932..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegateUpsertRequestPayload.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class representing a list of delegates to upsert
- ///
- [DataContract]
- public class DelegateUpsertRequestPayload
- {
- ///
- /// List of users to add as delegates
- ///
- [DataMember(Name = "delegates", IsRequired = true, EmitDefaultValue = false)]
- public IList Delegates { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegationRequestPagedResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegationRequestPagedResponse.cs
deleted file mode 100644
index 1c13bb39..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/DelegationRequestPagedResponse.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The paged response class.
- ///
- [DataContract]
- public class DelegationRequestPagedResponse : IPagedResponse
- {
- ///
- /// Initializes a new instance of the class.
- ///
- public DelegationRequestPagedResponse()
- {
-
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The data.
- public DelegationRequestPagedResponse(IEnumerable data)
- {
- this.Items = data;
- }
-
- ///
- /// Gets or sets the items.
- ///
- [DataMember(Name = "items", IsRequired = false)]
- public IEnumerable Items { get; set; }
-
- ///
- /// Gets or sets the next page.
- ///
- [DataMember(Name = "nextPage", IsRequired = false)]
- public string NextPage { get; set; }
-
- ///
- /// Gets or sets the previous page.
- ///
- [DataMember(Name = "previousPage", IsRequired = false)]
- public string PreviousPage { get; set; }
-
- ///
- /// Gets or sets the page number.
- ///
- [DataMember(Name = "pageNumber", IsRequired = false)]
- public int? PageNumber { get; set; }
-
- ///
- /// Gets or sets the page size.
- ///
- [DataMember(Name = "pageSize", IsRequired = false)]
- public int? PageSize { get; set; }
-
- ///
- /// Gets or sets the total record count.
- ///
- [DataMember(Name = "totalCount", IsRequired = false)]
- public int? TotalCount { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Department.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Department.cs
deleted file mode 100644
index 1893c856..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Department.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The Department.
- ///
- [DataContract]
- public class Department
- {
- /// Gets or sets department id
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets description
- [DataMember(Name = "description", IsRequired = false)]
- public string Descripition { get; set; }
-
- /// Gets or sets name
- [DataMember(Name = "name", IsRequired = false)]
- public string Name { get; set; }
-
- /// Gets or sets parent department id
- [DataMember(Name = "parentDepartment", IsRequired = false)]
- public Department ParentDepartment { get; set; }
-
- /// Gets or sets job positions
- [DataMember(Name = "jobPositions", IsRequired = false, EmitDefaultValue = false)]
- public IList JobOpeningPositions { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignAccount.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignAccount.cs
deleted file mode 100644
index cf627823..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignAccount.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for ESign Account (This will be moved to Key Vault)
- ///
- [DataContract]
- public class ESignAccount
- {
- ///
- /// Document type.
- ///
- public const string DocumentType = "esign-account";
-
- ///
- /// Gets or sets the Document ID.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets ESign Type
- ///
- [DataMember(Name = "eSignType", IsRequired = false)]
- public ESignType ESignType { get; set; }
-
- ///
- /// Gets or sets Client Secret Key
- ///
- [DataMember(Name = "secret", IsRequired = false)]
- public string SecretKey { get; set; }
-
- ///
- /// Gets or sets Client Integration Key
- ///
- [DataMember(Name = "integrationKey", IsRequired = false)]
- public string IntegrationKey { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignSettings.cs
deleted file mode 100644
index bfbf09c6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignSettings.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// The ESign setting data contract.
- ///
- [DataContract]
- public class ESignSettings
- {
- ///
- /// Gets or sets ESign feature.
- ///
- [DataMember(Name = "enabledESignType", IsRequired = false, EmitDefaultValue = true)]
- public ESignType EnabledESignType { get; set; }
-
- ///
- /// Gets or sets last modified by.
- ///
- [DataMember(Name = "modifiedBy", IsRequired = false, EmitDefaultValue = false)]
- public Person ModifiedBy { get; set; }
-
- ///
- /// Gets or sets last modified date time.
- ///
- [DataMember(Name = "modifiedDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime ModifiedDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignType.cs
deleted file mode 100644
index 3362c30e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignType.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for E-Signature Types
- ///
- [DataContract]
- public enum ESignType
- {
- ///
- /// ESign
- ///
- ESign,
-
- ///
- /// DocuSign
- ///
- DocuSign,
-
- ///
- /// AdobeSign
- ///
- AdobeSign,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserSetup.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserSetup.cs
deleted file mode 100644
index 2494710c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserSetup.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for ESign Account
- ///
- [DataContract]
- public class ESignUserSetup
- {
- ///
- /// Gets or sets a value indicating where authcode enabled or not
- ///
- [DataMember(Name = "authcode", IsRequired = false)]
- public string Authcode { get; set; }
-
- ///
- /// Gets or sets a value for Redirect URI
- ///
- [DataMember(Name = "redirectUri", IsRequired = false)]
- public string RedirectUri { get; set; }
-
- ///
- /// Gets or sets a value for API Access Point
- ///
- [DataMember(Name = "apiAccessPoint", IsRequired = false)]
- public string ApiAccessPoint { get; set; }
-
- ///
- /// Gets or sets a value for Web Access Point
- ///
- [DataMember(Name = "webAccessPoint", IsRequired = false)]
- public string WebAccessPoint { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserStatus.cs
deleted file mode 100644
index 43a0dfc4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ESignUserStatus.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEngagementService.Data;
-
- ///
- /// Specifies the Data Contract for ESign Account (This will be moved to Key Vault)
- ///
- [DataContract]
- public class ESignUserStatus
- {
- ///
- /// Gets or sets a value indicating whether IsEsignEnabled enabled or not
- ///
- [DataMember(Name = "isEsignEnabled", IsRequired = false)]
- public bool IsEsignEnabled { get; set; }
-
- ///
- /// Gets or sets IntegrationKey
- ///
- [DataMember(Name = "integrationKey", IsRequired = false)]
- public string IntegrationKey { get; set; }
-
- ///
- /// Gets or sets the email address.
- ///
- [DataMember(Name = "emailAddress", IsRequired = false)]
- public string EmailAddress { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Education.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Education.cs
deleted file mode 100644
index a3f0079b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Education.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Education data contract.
- ///
- [DataContract]
- public class Education
- {
- ///
- /// Gets or sets the EducationId
- ///
- [DataMember(Name = "EducationId", EmitDefaultValue = false, IsRequired = false)]
- public Guid? EducationId { get; set; }
-
- ///
- /// Gets or sets the school title.
- ///
- [DataMember(Name = "school", EmitDefaultValue = false, IsRequired = false)]
- public string School { get; set; }
-
- ///
- /// Gets or sets the degree name.
- ///
- [DataMember(Name = "degree", EmitDefaultValue = false, IsRequired = false)]
- public string Degree { get; set; }
-
- ///
- /// Gets or sets the field of study.
- ///
- [DataMember(Name = "fieldOfStudy", EmitDefaultValue = false, IsRequired = false)]
- public string FieldOfStudy { get; set; }
-
- ///
- /// Gets or sets the grade.
- ///
- [DataMember(Name = "grade", EmitDefaultValue = false, IsRequired = false)]
- public string Grade { get; set; }
-
- ///
- /// Gets or sets the education description.
- ///
- [DataMember(Name = "description", EmitDefaultValue = false, IsRequired = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets the start date; optional.
- ///
- [DataMember(Name = "FromMonthYear", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? FromMonthYear { get; set; }
-
- ///
- /// Gets or sets the end date; optional.
- ///
- [DataMember(Name = "ToMonthYear", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? ToMonthYear { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Email.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Email.cs
deleted file mode 100644
index c10d9305..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Email.cs
+++ /dev/null
@@ -1,247 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using HR.TA.Common.Email.SendGridContracts;
- using HR.TA.Common.Email.GraphContracts;
-
- ///
- /// Email properties
- ///
- public class Email
- {
- ///
- /// Gets or sets Greeting.
- ///
- public string Greeting { get; set; }
-
- ///
- /// Gets or sets email subject.
- ///
- public string EmailSubject { get; set; }
-
- ///
- /// Gets or sets paragraph one.
- ///
- public string Paragraph1 { get; set; }
-
- ///
- /// Gets or sets paragraph two.
- ///
- public string Paragraph2 { get; set; }
-
- ///
- /// Gets or sets email closing.
- ///
- public string Closing { get; set; }
-
- ///
- /// Gets or sets Talent Engagement Client URL.
- ///
- public string TalentEngagementClientUrl { get; set; }
-
- ///
- /// Gets or sets from address.
- ///
- public EmailAddress FromAddress { get; set; }
-
- ///
- /// Gets or sets Reply To Address.
- ///
- public EmailAddress ReplyToAddress { get; set; }
-
- ///
- /// Gets or sets To Address.
- ///
- public EmailAddress ToAddress { get; set; }
-
- ///
- /// Gets or sets cc addess
- ///
- public List CcAddress { get; set; }
-
- ///
- /// Gets or sets bcc addess
- ///
- public List BccAddress { get; set; }
-
- ///
- /// Gets or sets Company Info Footer.
- ///
- public string CompanyInfoFooter { get; set; }
-
- ///
- /// Gets or sets Company Info Footer layout.
- ///
- public string CompanyFooterLayout { get; set; }
-
- ///
- /// Gets or sets Company Name.
- ///
- public string CompanyName { get; set; }
-
- ///
- /// Gets or sets Candidate Name.
- ///
- public string CandidateName { get; set; }
-
- ///
- /// Gets or sets Candidate First Name.
- ///
- public string CandidateFirstName { get; set; }
-
- ///
- /// Gets or sets Identity provider.
- ///
- public string IdentityProvider { get; set; }
-
- ///
- /// Gets or sets Identity provider user name.
- ///
- public string IdentityProviderUserName { get; set; }
-
- ///
- /// Gets or sets Job Title.
- ///
- public string JobTitle { get; set; }
-
- ///
- /// Gets or sets Job Id.
- ///
- public string JobId { get; set; }
-
- ///
- /// Gets or sets External Job Id.
- ///
- public string ExternalJobId { get; set; }
-
- ///
- /// Gets or sets PreHeader.
- ///
- public string PreHeader { get; set; }
-
- ///
- /// Gets or sets email header image url.
- ///
- public string EmailHeaderUrl { get; set; }
-
- ///
- /// Gets or sets email header image url.
- ///
- public string EmailHeader { get; set; }
-
- ///
- /// Gets or sets email header image height.
- ///
- public string EmailHeaderHeight { get; set; }
-
- ///
- /// Gets or sets Hiring Manager Name.
- ///
- public string RequesterName { get; set; }
-
- ///
- /// Gets or sets Requester Role.
- ///
- public string RequesterRole { get; set; }
-
- ///
- /// Gets or sets Button Text
- ///
- public string ButtonText { get; set; }
-
- ///
- /// Gets or sets Button Text
- ///
- public string CandidateButton { get; set; }
-
- ///
- /// Gets or sets Location Details
- ///
- public string Location { get; set; }
-
- ///
- /// Hiring Manager Name
- ///
- public string HiringManagerName { get; set; }
-
- ///
- /// Gets or sets Hiring Manager Email
- ///
- public string HiringManagerEmail { get; set; }
-
- ///
- /// Requester Email
- ///
- public string RequesterEmail { get; set; }
-
- ///
- /// First interview Date
- ///
- public string InterviewDate { get; set; }
-
- ///
- /// Gets or sets recruiter Name
- ///
- public string RecruiterName { get; set; }
-
- ///
- /// Gets or sets recruiter Email
- ///
- public string RecruiterEmail { get; set; }
-
- ///
- /// Gets or sets offer expiry date
- ///
- public string OfferExpiryDate { get; set; }
-
- ///
- /// Gets or sets offer URL
- ///
- public string OfferURL { get; set; }
-
- ///
- /// Gets or sets offer approver name
- ///
- public string OfferApproverName { get; set; }
-
- ///
- /// Gets or sets offer approver email id
- ///
- public string OfferApproverEmail { get; set; }
-
- ///
- /// Gets or sets offer rejecter name
- ///
- public string OfferRejecterName { get; set; }
-
- ///
- /// Gets or sets offer rejecter email id
- ///
- public string OfferRejecterEmail { get; set; }
-
- ///
- /// Gets or sets job approver name
- ///
- public string JobApproverName { get; set; }
-
- ///
- /// Gets or sets job approver email
- ///
- public string JobApproverEmail { get; set; }
-
- ///
- /// Gets or sets job requester name
- ///
- public string JobRequesterName { get; set; }
-
- ///
- /// Gets or sets job requester emai
- ///
- public string JobRequesterEmail { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EmailTemplateSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EmailTemplateSettings.cs
deleted file mode 100644
index 7bee0f5e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EmailTemplateSettings.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// The email template settings contract.
- ///
- [DataContract]
- public class EmailTemplateSettings
- {
- ///
- /// Gets or sets email template footer text.
- ///
- [DataMember(Name = "emailTemplateFooterText", IsRequired = false, EmitDefaultValue = false)]
- public string EmailTemplateFooterText { get; set; }
-
- ///
- /// Gets or sets email template communication privacy policy link.
- ///
- [DataMember(Name = "emailTemplatePrivacyPolicyLink", IsRequired = false, EmitDefaultValue = false)]
- public string EmailTemplatePrivacyPolicyLink { get; set; }
-
- ///
- /// Gets or sets email template communication tearms and conditions link.
- ///
- [DataMember(Name = "emailTemplateTermsAndConditionsLink", IsRequired = false, EmitDefaultValue = false)]
- public string EmailTemplateTermsAndConditionsLink { get; set; }
-
- ///
- /// Gets or sets whether we should disable email edits
- ///
- [DataMember(Name = "shouldDisableEmailEdits", IsRequired = false, EmitDefaultValue = false)]
- public bool ShouldDisableEmailEdits { get; set; }
-
- ///
- /// Gets or sets email template header image url.
- ///
- [DataMember(Name = "emailTemplateHeaderImgUrl", IsRequired = false, EmitDefaultValue = false)]
- public string EmailTemplateHeaderImgUrl { get; set; }
-
- ///
- /// Gets or sets last modified by.
- ///
- [DataMember(Name = "modifiedBy", IsRequired = false, EmitDefaultValue = false)]
- public Person ModifiedBy { get; set; }
-
- ///
- /// Gets or sets last modified date time.
- ///
- [DataMember(Name = "modifiedDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime ModifiedDateTime { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentMetadata.cs
deleted file mode 100644
index aa1f7bdd..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentMetadata.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The environment metadata to display application count in candidate experience tenant hub page.
- ///
- [DataContract]
- public class EnvironmentMetadata
- {
- ///
- /// Gets or sets the environemnt id
- ///
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the application count
- ///
- [DataMember(Name = "applicationCount")]
- public int ApplicationCount { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentSettings.cs
deleted file mode 100644
index 3d3fd41c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/EnvironmentSettings.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it.
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The environment settings data contract.
- ///
- [DataContract]
- public class EnvironmentSettings
- {
- /// Gets or sets the document Id.
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- ///
- /// Gets or sets template setting
- ///
- [DataMember(Name = "templateSetting", IsRequired = false, EmitDefaultValue = false)]
- public TemplateSettings TemplateSetting { get; set; }
-
- ///
- /// Gets or sets feature settings
- ///
- [DataMember(Name = "featureSettings", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable FeatureSettings { get; set; }
-
- ///
- /// Gets or sets integration settings
- ///
- [DataMember(Name = "integrationSettings", IsRequired = false, EmitDefaultValue = false)]
- public IDictionary IntegrationSettings { get; set; }
-
- ///
- /// Gets or sets offer settings
- ///
- [DataMember(Name = "offerSettings", IsRequired = false, EmitDefaultValue = false)]
- public OfferSettings OfferSettings { get; set; }
-
- ///
- /// Gets or sets ESign settings
- ///
- [DataMember(Name = "eSignSettings", IsRequired = false, EmitDefaultValue = false)]
- public ESignSettings ESignSettings { get; set; }
-
-
- ///
- /// Gets or sets email template settings
- ///
- [DataMember(Name = "emailTemplateSettings", IsRequired = false, EmitDefaultValue = false)]
- public EmailTemplateSettings EmailTemplateSettings { get; set; }
-
-
- ///
- /// Gets or sets isPremium field
- ///
- [DataMember(Name = "isPremium", IsRequired = false, EmitDefaultValue = false)]
- public bool isPremium { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestion.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestion.cs
deleted file mode 100644
index 040dade6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestion.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The expression suggestion contract.
- ///
- [DataContract]
- public class ExpressionSuggestion
- {
- /// Gets or sets the Id.
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- [DataMember(Name = "improperExpression", EmitDefaultValue = false, IsRequired = false)]
- public string ImproperExpression { get; set; }
-
- [DataMember(Name = "suggestedExpression", EmitDefaultValue = false, IsRequired = false)]
- public string SuggestedExpression { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionCollection.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionCollection.cs
deleted file mode 100644
index aa90b26c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionCollection.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The expression suggestion collection contract.
- ///
- [DataContract]
- public class ExpressionSuggestionCollection
- {
- /// Gets or sets the Id.
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- [DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
- public string Name { get; set; }
-
- [DataMember(Name = "reason", EmitDefaultValue = false, IsRequired = false)]
- public string Reason { get; set; }
-
- [DataMember(Name = "suggestion", EmitDefaultValue = false, IsRequired = false)]
- public string Suggestion { get; set; }
-
- [DataMember(Name = "languageCode", EmitDefaultValue = false, IsRequired = false)]
- public string LanguageCode { get; set; }
-
- [DataMember(Name = "isEnabled", EmitDefaultValue = false, IsRequired = false)]
- public bool IsEnabled { get; set; }
-
- [DataMember(Name = "hasDefault", EmitDefaultValue = false, IsRequired = false)]
- public bool HasDefault { get; set; }
-
- [DataMember(Name = "expressionSuggestions", EmitDefaultValue = false, IsRequired = false)]
- public IList ExpressionSuggestions { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionStatistic.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionStatistic.cs
deleted file mode 100644
index d598dff2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExpressionSuggestionStatistic.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The expression suggestion collection contract.
- ///
- [DataContract]
- public class ExpressionSuggestionStatistic
- {
- /// Gets or sets the Id.
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- [DataMember(Name = "improperExpressionCount", EmitDefaultValue = false, IsRequired = false)]
- public int ImproperExpressionCount { get; set; }
-
- [DataMember(Name = "suggestionsTakenCount", EmitDefaultValue = false, IsRequired = false)]
- public int SuggestionsTakenCount { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessment.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessment.cs
deleted file mode 100644
index 9f53e917..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessment.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The contract for assessments provided by external assessment providers.
- ///
- [DataContract]
- public class ExternalAssessment
- {
- ///
- /// Gets or sets the ID.
- ///
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string ID { get; set; }
-
- ///
- /// Gets or sets the created Date.
- ///
- [DataMember(Name = "created", IsRequired = false, EmitDefaultValue = false)]
- public string Created { get; set; }
-
- ///
- /// Gets or sets the title.
- ///
- [DataMember(Name = "title", IsRequired = false, EmitDefaultValue = false)]
- public string Title { get; set; }
-
- ///
- /// Gets or sets the preview url.
- ///
- [DataMember(Name = "previewUrl", IsRequired = false, EmitDefaultValue = false)]
- public string PreviewUrl { get; set; }
-
- ///
- /// Gets or sets the count of questions.
- ///
- [DataMember(Name = "numberOfQuestions", IsRequired = false, EmitDefaultValue = true)]
- public int NumberOfQuestions { get; set; }
-
- ///
- /// Gets or sets the description.
- ///
- [DataMember(Name = "instructions", IsRequired = false, EmitDefaultValue = true)]
- public AssessmentInstructions Instructions { get; set; }
-
- ///
- /// Gets or sets the questions.
- ///
- [DataMember(Name = "questions", IsRequired = false, EmitDefaultValue = true)]
- public IList Questions { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessmentKoru.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessmentKoru.cs
deleted file mode 100644
index 3e29b93d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalAssessmentKoru.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The contract for Koru assessment.
- ///
- [DataContract]
- public class ExternalAssessmentKoru
- {
- ///
- /// Gets or sets the ID.
- ///
- [DataMember(Name = "assessmentId", IsRequired = false, EmitDefaultValue = false)]
- public string AssessmentId { get; set; }
-
- ///
- /// Gets or sets assessment type.
- ///
- [DataMember(Name = "assessmentType", IsRequired = false, EmitDefaultValue = false)]
- public string AssessmentType { get; set; }
-
- ///
- /// Gets or sets assessment name.
- ///
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets Preview url.
- ///
- [DataMember(Name = "previewUrl", IsRequired = false, EmitDefaultValue = false)]
- public string PreviewUrl { get; set; }
-
- ///
- /// Gets or sets Number of questions
- ///
- [DataMember(Name = "numberOfQuestions", IsRequired = false, EmitDefaultValue = false)]
- public int NumberOfQuestions { get; set; }
- }
-
- ///
- /// The contract for Koru assessments.
- ///
- [DataContract]
- public class KoruAssessments
- {
- ///
- /// Gets or sets Koru assessments.
- ///
- [DataMember(Name = "assessments", IsRequired = false, EmitDefaultValue = false)]
- public IList Assessments { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalJobPost.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalJobPost.cs
deleted file mode 100644
index 9d699aae..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ExternalJobPost.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using System.Collections.Generic;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The job data contract.
- ///
- [DataContract]
- public class ExternalJobPost : TalentBaseContract
- {
- ///
- /// Gets or sets id.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets uri.
- ///
- [DataMember(Name = "uri", IsRequired = false)]
- public string Uri { get; set; }
-
- ///
- /// Gets or sets supplier.
- ///
- [DataMember(Name = "supplier", IsRequired = false)]
- public JobPostSupplier Supplier { get; set; }
-
- ///
- /// Gets or sets supplier.
- ///
- [DataMember(Name = "supplierName", IsRequired = false)]
- public string SupplierName { get; set; }
-
- ///
- /// Gets or sets isRepostAvailable.
- ///
- [DataMember(Name = "isRepostAvailable", IsRequired = false)]
- public bool IsRepostAvailable { get; set; }
-
- ///
- /// Gets or sets user action.
- ///
- [DataMember(Name = "userAction", IsRequired = false)]
- public UserAction UserAction { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetDetail.cs
deleted file mode 100644
index 161cdf48..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetDetail.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Facet Details contract.
- ///
- [DataContract]
- public class FacetDetail
- {
- ///
- /// Facet Name
- ///
- [DataMember(Name = "name", EmitDefaultValue = false, IsRequired = false)]
- public string Name { get; set; }
-
- ///
- /// Facet selection boolean.
- ///
- [DataMember(Name = "isSelected", EmitDefaultValue = false, IsRequired = false)]
- public bool IsSelected { get; set; }
-
- ///
- /// facet count.
- ///
- [DataMember(Name = "count", EmitDefaultValue = false, IsRequired = false)]
- public int Count { get; set; }
-
- ///
- /// facet id
- ///
- [DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
- public string Id { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetResponse.cs
deleted file mode 100644
index b427cd21..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetResponse.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Facet Details contract.
- ///
- [DataContract]
- public class FacetResponse
- {
- ///
- /// Facet Type
- ///
- [DataMember(Name = "filter", EmitDefaultValue = false, IsRequired = false)]
- public FacetType Filter { get; set; }
-
- ///
- /// Facet Details.
- ///
- [DataMember(Name = "facetDetails", EmitDefaultValue = false, IsRequired = false)]
- public List FacetDetails { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetSearchRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetSearchRequest.cs
deleted file mode 100644
index eab4e07e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetSearchRequest.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Facet Details contract.
- ///
- [DataContract]
- public class FacetSearchRequest
- {
- ///
- /// Facet Type
- ///
- [DataMember(Name = "facet", EmitDefaultValue = false, IsRequired = false)]
- public FacetType Facet { get; set; }
-
- ///
- /// search text
- ///
- [DataMember(Name = "searchText", EmitDefaultValue = false, IsRequired = false)]
- public string SearchText { get; set; }
-
- ///
- /// filter check.
- ///
- [DataMember(Name = "isFilter", EmitDefaultValue = false, IsRequired = false)]
- public bool IsFilter { get; set; }
- }
-}
-
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetType.cs
deleted file mode 100644
index a806b33c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FacetType.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- [DataContract]
- public enum FacetType
- {
- None = -1,
- CandidateName = 0,
- City = 1,
- Degree = 2,
- IsInternal = 3,
- Location = 4,
- Organization = 5,
- School = 6,
- Skills = 7,
- State = 8,
- TalentPools = 9,
- Title = 10,
- FieldOfStudy = 11,
- Rank = 12,
- Source = 13,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feature.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feature.cs
deleted file mode 100644
index f3eaa76e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feature.cs
+++ /dev/null
@@ -1,167 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for feature names
- ///
- [DataContract]
- public enum Feature
- {
- ///
- /// Job template
- ///
- JobTemplate,
-
- ///
- /// Job posting
- ///
- JobPosting,
-
- ///
- /// Assessment
- ///
- Assessment,
-
- ///
- /// Offer management
- ///
- OfferManagement,
-
- ///
- /// Prospect
- ///
- Prospect,
-
- ///
- /// Skype Interview
- ///
- SkypeInterview,
-
- ///
- /// Candidate reccomendation
- ///
- CandidateReccomendation,
-
- ///
- /// Job reccomendation
- ///
- JobReccomendation,
-
- ///
- /// Talent companion bot
- ///
- TalentCompanion,
-
- ///
- /// Position management
- ///
- PositionManagement,
-
- ///
- /// Custom activities
- ///
- CustomActivies,
-
- ///
- /// Broadbean Integration
- ///
- BroadbeanIntegration,
-
- ///
- /// Dashboard
- ///
- Dashboard,
-
- ///
- /// Job Approval
- ///
- JobApproval,
-
- ///
- /// Analytics
- ///
- Analytics,
-
- ///
- /// Email-template
- ///
- EmailTemplate,
-
- ///
- /// SearchEngineOptimization
- ///
- SearchEngineOptimization,
-
- ///
- /// Terms and Conditions
- ///
- TermsAndConditions,
-
- ///
- /// LinkedIn Integration
- ///
- LinkedInIntegration,
-
- ///
- /// EEO
- ///
- EEO,
-
- ///
- /// ProspectRecommendation
- ///
- ProspectRecommendation,
-
- ///
- /// Relevance Search
- ///
- RelevanceSearch,
-
- ///
- /// Activity audience
- ///
- ActivityAudience,
-
- ///
- /// Apply with LinkedIn
- ///
- ApplyWithLinkedIn,
-
- ///
- /// Inclusive Hiring
- ///
- InclusiveHiring,
-
- ///
- /// Broadbean setup
- ///
- BroadbeanSetup,
-
- ///
- /// Job creation wizard
- ///
- JobCreationWizard,
-
- ///
- /// Feature enables user to track application and candidate level source.
- ///
- TalentSourceTracking,
-
- ///
- /// Feature enables user to tag applicant as silvermedalist
- ///
- SilverMedalist,
-
- ///
- /// Feature enables service account
- ///
- ServiceAccount,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeatureSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeatureSettings.cs
deleted file mode 100644
index 2de6f231..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeatureSettings.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The feature setting data contract.
- ///
- [DataContract]
- public class FeatureSettings
- {
- ///
- /// Gets or sets feature.
- ///
- [DataMember(Name = "feature", IsRequired = false, EmitDefaultValue = true)]
- public Feature Feature { get; set; }
-
- ///
- /// Gets or sets value indicating whether feature is enabled or not.
- ///
- [DataMember(Name = "isEnabled", IsRequired = false, EmitDefaultValue = true)]
- public bool IsEnabled { get; set; }
-
- ///
- /// Gets or sets last modified by.
- ///
- [DataMember(Name = "modifiedBy", IsRequired = false, EmitDefaultValue = false)]
- public Person ModifiedBy { get; set; }
-
- ///
- /// Gets or sets last modified date time.
- ///
- [DataMember(Name = "modifiedDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime ModifiedDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feedback.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feedback.cs
deleted file mode 100644
index 434a88f6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Feedback.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The feedback data contract.
- ///
- [DataContract]
- public class Feedback
- {
- ///
- /// Gets or sets job stage.
- ///
- [DataMember(Name = "stage", IsRequired = false, EmitDefaultValue = false)]
- public JobStage Stage { get; set; }
-
- ///
- /// Gets or sets job stage.
- ///
- [DataMember(Name = "stageOrder", IsRequired = false, EmitDefaultValue = false)]
- public int StageOrder { get; set; }
-
- ///
- /// Gets or sets strength comment.
- ///
- [DataMember(Name = "strengthComment", IsRequired = false, EmitDefaultValue = false)]
- public string StrengthComment { get; set; }
-
- ///
- /// Gets or sets weakness comment.
- ///
- [DataMember(Name = "weaknessComment", IsRequired = false, EmitDefaultValue = false)]
- public string WeaknessComment { get; set; }
-
- ///
- /// Gets or sets overall comment.
- ///
- [DataMember(Name = "overallComment", IsRequired = false, EmitDefaultValue = false)]
- public string OverallComment { get; set; }
-
- ///
- /// Gets or sets status.
- ///
- [DataMember(Name = "Status", IsRequired = false)]
- public JobApplicationAssessmentStatus Status { get; set; }
-
- ///
- /// Gets or sets status reason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public JobApplicationAssessmentStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets a value indicating whether is recommended to continue.
- ///
- [DataMember(Name = "isRecommendedToContinue")]
- public bool IsRecommendedToContinue { get; set; }
-
- ///
- /// Gets or sets a value indicating the OID for the user who provided the feedback
- ///
- [DataMember(Name = "feedbackProvider", IsRequired = false)]
- public Delegate FeedbackProvider { get; set; }
-
- ///
- /// Gets or sets a value for the Job Application ID
- ///
- [DataMember(Name = "jobApplicationID", IsRequired = true, EmitDefaultValue = false)]
- public string jobApplicationId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackConfiguration.cs
deleted file mode 100644
index e492e77d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackConfiguration.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum that tells about Feedback Reminder Delay.
- ///
- [DataContract]
- public enum FeedbackReminderDelay
- {
- ///
- /// No Reminder
- ///
- None = 0,
-
- ///
- /// 12 Hours
- ///
- HalfDay = 1,
-
- ///
- /// 1 day
- ///
- OneDay = 2,
-
- ///
- /// 2 days
- ///
- TwoDays = 3,
-
- ///
- /// 3 days
- ///
- ThreeDays = 4,
-
- ///
- /// 1 week
- ///
- OneWeek = 5,
- }
-
- ///
- /// Configuration for Feedback activity.
- ///
- [DataContract]
- public class FeedbackConfiguration
- {
- ///
- /// Gets or sets a value indicating whether partcipants are hiring team or not.
- ///
- [DataMember(Name = "inheritFromHiringTeam", IsRequired = false, EmitDefaultValue = false)]
- public bool InheritFromHiringTeam { get; set; }
-
- ///
- /// Gets or sets a value whether you can view other feedbacks before submitting your own.
- ///
- [DataMember(Name = "viewFeedbackBeforeSubmitting", IsRequired = false, EmitDefaultValue = false)]
- public bool ViewFeedbackBeforeSubmitting { get; set; }
-
- ///
- /// Gets or sets a value whether you can edit your feedback after submission.
- ///
- [DataMember(Name = "editFeedbackAfterSubmitting", IsRequired = false, EmitDefaultValue = false)]
- public bool EditFeedbackAfterSubmitting { get; set; }
-
- ///
- /// Gets or sets external job opening source.
- ///
- [DataMember(Name = "feedbackReminderDelay", IsRequired = false, EmitDefaultValue = false)]
- public FeedbackReminderDelay FeedbackReminderDelay { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackNotificationInfo.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackNotificationInfo.cs
deleted file mode 100644
index dd64fea8..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackNotificationInfo.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
-
- public class FeedbackNotificationInfo
- {
- public string ApplicationId { get; set; }
-
- public string JobId { get; set; }
-
- public string JobTitle { get; set; }
-
- public string CandidateName { get; set; }
-
- public List HiringTeam { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackParticipant.cs
deleted file mode 100644
index fdeba9b3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackParticipant.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The feedback participant data contract.
- ///
- [DataContract]
- public class FeedbackParticipant : Person
- {
- ///
- /// Gets or sets member role.
- ///
- [DataMember(Name = "role")]
- public JobParticipantRole Role { get; set; }
-
- ///
- /// Gets or sets member feedbacks.
- ///
- [DataMember(Name = "feedbacks", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Feedbacks { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackReminderInfo.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackReminderInfo.cs
deleted file mode 100644
index 11344c88..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/FeedbackReminderInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
-
- public class FeedbackReminderInfo
- {
- public string ApplicationId { get; set; }
-
- public string JobId { get; set; }
-
- public string JobTitle { get; set; }
-
- public string CandidateName { get; set; }
-
- public int? StageOrder { get; set; }
-
- public HiringTeamMember HiringManager { get; set; }
-
- public List ActivityParticipants { get; set; }
-
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/FlightingContextType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/FlightingContextType.cs
deleted file mode 100644
index b630d354..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/FlightingContextType.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Talent.TalentContracts.Flighting
-{
- using System.Runtime.Serialization;
-
- ///
- /// Flight context type.
- ///
- [DataContract]
- public enum FlightingContextType
- {
- ///
- /// Tenant Id.
- ///
- [EnumMember(Value = "TenantObjectId")]
- TenantObjectId = 0,
-
- ///
- /// User Id.
- ///
- [EnumMember(Value = "UserObjectId")]
- UserObjectId = 1,
-
- ///
- /// User Principal number.
- ///
- [EnumMember(Value = "Upn")]
- Upn = 2,
-
- ///
- /// Environment Id.
- ///
- [EnumMember(Value = "EnvironmentId")]
- EnvironmentId = 3,
-
- ///
- /// Generic type.
- ///
- [EnumMember(Value = "Generic")]
- Generic = 4,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/GtaFlightingContext.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/GtaFlightingContext.cs
deleted file mode 100644
index e926a193..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Flighting/GtaFlightingContext.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Talent.TalentContracts.Flighting
-{
- using System.Runtime.Serialization;
-
- ///
- /// Flight context.
- ///
- [DataContract]
- public class GtaFlightingContext
- {
- ///
- /// Gets or sets name of the context.
- ///
- [DataMember(Name = "name")]
- public string Name { get; set; }
-
- ///
- /// Gets or sets value of the context.
- ///
- [DataMember(Name = "value")]
- public string Value { get; set; }
-
- ///
- /// Gets or sets value of the context type.
- ///
- [DataMember(Name = "contextType")]
- public FlightingContextType ContextType { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentResultPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentResultPayload.cs
deleted file mode 100644
index a7cbee87..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentResultPayload.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The assessment result as received from the Gauge external assessment provider.
- ///
- [DataContract]
- public class GaugeAssessmentResultPayload
- {
- ///
- /// Gets or sets the raw assessment score percentage.
- ///
- [DataMember(Name = "percentage", IsRequired = true, EmitDefaultValue = false)]
- public int Percentage { get; set; }
-
- ///
- /// Gets or sets the assessment status
- ///
- [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = true)]
- public GaugeAssessmentStatus Status { get; set; }
-
- ///
- /// Gets or sets the assessment subject (ex: skill, personality, etc.)
- ///
- [DataMember(Name = "subject", IsRequired = false, EmitDefaultValue = true)]
- public string Subject { get; set; }
-
- ///
- /// Gets or sets the assessment grade url
- ///
- [DataMember(Name = "gradeUrl", IsRequired = false, EmitDefaultValue = true)]
- public string GradeUrl { get; set; }
-
- ///
- /// Gets or sets the assessment subject (ex: skill, personality, etc.)
- ///
- [DataMember(Name = "detailUrl", IsRequired = false, EmitDefaultValue = true)]
- public string DetailUrl { get; set; }
-
- ///
- /// Gets or sets the assessment additional information
- ///
- [DataMember(Name = "additionalInformation", IsRequired = false, EmitDefaultValue = true)]
- public string AdditionalInformation { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentStatus.cs
deleted file mode 100644
index b92ef66c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/GaugeAssessmentStatus.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum about the Assessment status
- ///
- [DataContract]
- public enum GaugeAssessmentStatus
- {
- ///
- /// Candidate added to the assessment
- ///
- Added = 1,
-
- ///
- /// Assessment sent
- ///
- Sent,
-
- ///
- /// Candidate started the assessment
- ///
- Started,
-
- ///
- /// Candidate submit the assessment
- ///
- Submitted,
-
- ///
- /// The assessment need grading
- ///
- Grade,
-
- ///
- /// The assessment is completed.
- ///
- Done
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HireMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HireMetadata.cs
deleted file mode 100644
index 13a7d0c0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HireMetadata.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The client data contract with the data to show the welcome page.
- ///
- [DataContract]
- public class HireMetadata
- {
- ///
- /// Gets or sets the collection of candidates
- ///
- [DataMember(Name = "candidates", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Candidates { get; set; }
-
- ///
- /// Gets or sets the collection of job openings
- ///
- [DataMember(Name = "jobs", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Jobs { get; set; }
-
- ///
- /// Gets or sets number of candidates in applied stage for job openings where user is participating.
- ///
- [DataMember(Name = "candidatesAppliedCount")]
- public int CandidatesAppliedCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in screen stage for job openings where user is participating.
- ///
- [DataMember(Name = "candidatesScreenCount")]
- public int CandidatesScreenCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in interview stage for job openings where user is participating.
- ///
- [DataMember(Name = "candidatesInterviewCount")]
- public int CandidatesInterviewCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in offer stage for job openings where user is participating.
- ///
- [DataMember(Name = "candidatesOfferCount")]
- public int CandidatesOfferCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in assessment stage for job openings where user is participating.
- ///
- [DataMember(Name = "candidatesAssessmentCount")]
- public int CandidatesAssessmentCount { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMember.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMember.cs
deleted file mode 100644
index d40c4a1a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMember.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The hiring team member data contract.
- ///
- [DataContract]
- public class HiringTeamMember : Person
- {
- ///
- /// Gets or sets member role.
- ///
- [DataMember(Name = "role")]
- public JobParticipantRole Role { get; set; }
-
- ///
- /// Gets or sets User action.
- ///
- [DataMember(Name = "userAction", IsRequired = false, EmitDefaultValue = false)]
- public UserAction UserAction { get; set; }
-
- /// Gets or sets the title.
- [DataMember(Name = "title", IsRequired = false, EmitDefaultValue = false)]
- public string Title { get; set; }
-
- /// Gets or sets the ordinal.
- [DataMember(Name = "ordinal", IsRequired = false, EmitDefaultValue = false)]
- public long? Ordinal { get; set; }
-
- ///
- /// Gets or sets member activities.
- ///
- [DataMember(Name = "activities", IsRequired = false, EmitDefaultValue = false)]
- public List Activities { get; set; }
-
- ///
- /// Gets or sets member feedbacks.
- ///
- [DataMember(Name = "feedbacks", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Feedbacks { get; set; }
-
- ///
- /// Gets or sets the list of delegates.
- ///
- [DataMember(Name = "delegates", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Delegates { get; set; }
-
- ///
- /// Gets or sets member metadata.
- ///
- [DataMember(Name = "metadata", IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationParticipantMetadata Metadata { get; set; }
-
- ///
- /// Gets or sets value indicating whether Hiring Team Member can be deleted or not.
- ///
- [DataMember(Name = "isDeleteAllowed", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsDeleteAllowed { get; set; }
-
- /// Gets or sets the AddedOnDate
- [DataMember(Name = "AddedOnDate", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? AddedOnDate { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadata.cs
deleted file mode 100644
index c49cef3d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadata.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// HiringTeam Metadata Request
- ///
- [DataContract]
- public class HiringTeamMetadata
- {
- ///
- /// Gets or sets Total
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
-
- ///
- /// Gets or sets Hiring Team list
- ///
- [DataMember(Name = "hiringTeam", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable HiringTeam { get; set; }
-
- ///
- /// Gets or sets Delegates list
- ///
- [DataMember(Name = "delegates", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Delegates { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadataRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadataRequest.cs
deleted file mode 100644
index 7b632746..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/HiringTeamMetadataRequest.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// HiringTeam Metadata Request
- ///
- [DataContract]
- public class HiringTeamMetadataRequest
- {
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IPagedResponse.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IPagedResponse.cs
deleted file mode 100644
index 01d13ee0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IPagedResponse.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-using HR.TA.Common.Contracts;
-using System.Collections.Generic;
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- ///
- /// Interface paged response.
- ///
- public interface IPagedResponse where T : TalentBaseContract
- {
- ///
- /// Gets or sets the items.
- ///
- IEnumerable Items { get; set; }
- ///
- /// Gets or sets the next page.
- ///
- string NextPage { get; set; }
- ///
- /// Gets or sets the page number.
- ///
- int? PageNumber { get; set; }
- ///
- /// Gets or sets the page size.
- ///
- int? PageSize { get; set; }
- ///
- /// Gets or sets the previous page.
- ///
- string PreviousPage { get; set; }
- ///
- /// Gets or sets the total record count.
- ///
- int? TotalCount { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ImportResult.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ImportResult.cs
deleted file mode 100644
index 26148fcd..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/ImportResult.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The client data contract to show the results of data import.
- ///
- [DataContract]
- public class ImportResult
- {
- ///
- /// Gets or sets the index of record.
- ///
- [DataMember(Name = "index")]
- public int Index { get; set; }
-
- ///
- /// Gets or sets a value indicating whether if the import is successful for this record
- ///
- [DataMember(Name = "isSuccessful")]
- public bool IsSuccessful { get; set; }
-
- ///
- /// Gets or sets the detailed information if the import is not successful
- ///
- [DataMember(Name = "exceptionCode")]
- public string ExceptionCode { get; set; }
-
- ///
- /// Gets or sets job application id
- ///
- [DataMember(Name = "jobOpeningId", IsRequired = false)]
- public string JobOpeningId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Integration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Integration.cs
deleted file mode 100644
index 46903400..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Integration.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The integration contract.
- ///
- [DataContract]
- public class Integration
- {
- /// Gets or sets jobs.
- [DataMember(Name = "jobs", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Jobs { get; set; }
-
- /// Gets or sets sync time.
- [DataMember(Name = "syncTimeInTicks", IsRequired = false, EmitDefaultValue = false)]
- public long SyncTimeinTicks { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IntegrationSetting.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IntegrationSetting.cs
deleted file mode 100644
index 106c5b3c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/IntegrationSetting.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// The integration setting data contract.
- ///
- [DataContract]
- public class IntegrationSetting
- {
- ///
- /// Gets or sets the integration value.
- ///
- [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = true)]
- public string IntegrationValue { get; set; }
-
- ///
- /// Gets or sets last modified by.
- ///
- [DataMember(Name = "modifiedBy", IsRequired = false, EmitDefaultValue = false)]
- public Person ModifiedBy { get; set; }
-
- ///
- /// Gets or sets last modified date time.
- ///
- [DataMember(Name = "modifiedDateTime", IsRequired = false, EmitDefaultValue = false)]
- public DateTime ModifiedDateTime { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewConfiguration.cs
deleted file mode 100644
index 565629a6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewConfiguration.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Configuration for Interview activity.
- ///
- [DataContract]
- public class InterviewConfiguration
- {
- ///
- /// Gets or sets a value indicating whether to allow addition of participants outside of loop.
- ///
- [DataMember(Name = "allowParticipantsOutsideOfLoop", IsRequired = false, EmitDefaultValue = false)]
- public bool AllowParticipantsOutsideOfLoop { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadata.cs
deleted file mode 100644
index d53ad3c7..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadata.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Applicants Metadata contract
- ///
- [DataContract]
- public class ApplicantsMetadata
- {
- ///
- /// Gets or sets the user related applicants
- ///
- [DataMember(Name = "IVApplicants", IsRequired = false, EmitDefaultValue = false)]
- public IList IVApplicants { get; set; }
-
- ///
- /// Gets or sets total IV applicants count
- ///
- [DataMember(Name = "Total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadataRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadataRequest.cs
deleted file mode 100644
index fde14639..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/ApplicantsMetadataRequest.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The applicants metadata request contract.
- ///
- [DataContract]
- public class ApplicantsMetadataRequest
- {
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "Skip", IsRequired = false, EmitDefaultValue = false)]
- public int? Skip { get; set; }
-
- ///
- /// Gets or sets Take
- ///
- [DataMember(Name = "Take", IsRequired = false, EmitDefaultValue = false)]
- public int? Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "SearchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
-
- ///
- /// Gets or sets filter by stage
- ///
- [DataMember(Name = "Stage", IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationActivityType? Stage { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateInformation.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateInformation.cs
deleted file mode 100644
index c088e32a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateInformation.cs
+++ /dev/null
@@ -1,154 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The candidate data contract.
- ///
- [DataContract]
- public class CandidateInformation
- {
- /// Gets or sets job application id.
- [DataMember(Name = "CandidateID", EmitDefaultValue = false, IsRequired = false)]
- public string CandidateID { get; set; }
-
- /// Gets or sets job application id.
- [DataMember(Name = "ExternalCandidateID", EmitDefaultValue = false, IsRequired = false)]
- public string ExternalCandidateID { get; set; }
-
- /// Gets or sets the Office Graph Identifier.
- [DataMember(Name = "OID")]
- public string OID { get; set; }
-
- /// Gets or sets the value of full name
- [DataMember(Name = "FullName")]
- public string FullName { get; set; }
-
- /// Gets or sets the value of given name
- [DataMember(Name = "GivenName")]
- public string GivenName { get; set; }
-
- /// Gets or sets the value of middle name
- [DataMember(Name = "MiddleName")]
- public string MiddleName { get; set; }
-
- /// Gets or sets the value of surname
- [DataMember(Name = "Surname")]
- public string Surname { get; set; }
-
- /// Gets or sets the value of primary email
- [DataMember(Name = "EmailPrimary")]
- public string EmailPrimary { get; set; }
-
- /// Gets or sets the value of Phone Primary
- [DataMember(Name = "PhonePrimary")]
- public string PhonePrimary { get; set; }
-
- ///
- /// Gets or sets the value of AttachmentID
- ///
- [DataMember(Name = "AttachmentID")]
- public string AttachmentID { get; set; }
-
- ///
- /// Gets or sets the value of AttachmentName
- ///
- [DataMember(Name = "AttachmentName")]
- public string AttachmentName { get; set; }
-
- ///
- /// Gets or sets the value of list of candidate education
- ///
- [DataMember(Name = "Educations")]
- public IList Educations { get; set; }
-
- ///
- /// Gets or sets the value of list of candidate work experience
- ///
- [DataMember(Name = "WorkExperiences")]
- public IList WorkExperiences { get; set; }
-
- ///
- /// Gets or sets the value of list of candidate skills
- ///
- [DataMember(Name = "Skills")]
- public IList Skills { get; set; }
- }
-
-
- ///
- /// The candidate education data contract.
- ///
- [DataContract]
- public class CandidateEducationInformation
- {
- [DataMember(Name = "School")]
- public string School { get; set; }
-
- [DataMember(Name = "Degree")]
- public string Degree { get; set; }
-
- [DataMember(Name = "FieldOfStudy")]
- public string FieldOfStudy { get; set; }
-
- [DataMember(Name = "Grade")]
- public string Grade { get; set; }
-
- [DataMember(Name = "ActivitiesSocieties")]
- public string ActivitiesSocieties { get; set; }
-
- [DataMember(Name = "Description")]
- public string Description { get; set; }
-
- [DataMember(Name = "FromMonthYear")]
- public DateTime? FromMonthYear { get; set; }
-
- [DataMember(Name = "ToMonthYear")]
- public DateTime? ToMonthYear { get; set; }
- }
-
- ///
- /// The candidate work experience data contract.
- ///
- [DataContract]
- public class CandidateWorkExperienceInformation
- {
- [DataMember(Name = "Title")]
- public string Title { get; set; }
-
- [DataMember(Name = "Organization")]
- public string Organization { get; set; }
-
- [DataMember(Name = "Location")]
- public string Location { get; set; }
-
- [DataMember(Name = "Description")]
- public string Description { get; set; }
-
- [DataMember(Name = "IsCurrentPosition")]
- public bool? IsCurrentPosition { get; set; }
-
- [DataMember(Name = "FromMonthYear")]
- public DateTime? FromMonthYear { get; set; }
-
- [DataMember(Name = "ToMonthYear")]
- public DateTime? ToMonthYear { get; set; }
- }
-
- ///
- /// The candidate skills data contract.
- ///
- [DataContract]
- public class CandidateSkillInformation
- {
- [DataMember(Name = "Skill")]
- public string Skill { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateUpcomingInterviews.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateUpcomingInterviews.cs
deleted file mode 100644
index 9ae6f99d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/CandidateUpcomingInterviews.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Talent.TalentContracts.InterviewService;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The upcoming interviews for candidate data contract.
- ///
- [DataContract]
- public class CandidateUpcomingInterviews
- {
- /// Gets or sets the position title.
- [DataMember(Name = "PositionTitle", EmitDefaultValue = false, IsRequired = false)]
- public string PositionTitle { get; set; }
-
- /// Gets or sets the external job opening id.
- [DataMember(Name = "ExternalJobOpeningId", EmitDefaultValue = false, IsRequired = true)]
- public string ExternalJobOpeningId { get; set; }
-
- /// Gets or sets the external job opening id.
- [DataMember(Name = "ExternalCandidateId", EmitDefaultValue = false, IsRequired = true)]
- public string ExternalCandidateId { get; set; }
-
- /// Gets or sets the location of the job opening.
- [DataMember(Name = "PositionLocation", EmitDefaultValue = false, IsRequired = false)]
- public string PositionLocation { get; set; }
-
- /// Gets or sets current stage.
- [DataMember(Name = "CurrentStage", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationActivityType? CurrentStage { get; set; }
-
- /// Gets or sets the schedule.
- [DataMember(Name = "Schedules", EmitDefaultValue = false, IsRequired = false)]
- public IList Schedules { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackNotes.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackNotes.cs
deleted file mode 100644
index 3aa7310e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackNotes.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Runtime.Serialization;
-
- /// The feedback notes.
- [DataContract]
- public class FeedbackNotes
- {
- /// Gets or sets the office identifier of submitter of the notes.
- [DataMember(Name = "submittedByOID")]
- public string SubmittedByOID { get; set; }
-
- /// Gets or sets the name of submitter of the notes.
- [DataMember(Name = "submittedByName")]
- public string SubmittedByName { get; set; }
-
- /// Gets or sets the office identifier of interviewer associated to the notes.
- [DataMember(Name = "participantOID")]
- public string ParticipantOID { get; set; }
-
- /// Gets or sets the name of interviewer associated to the notes.
- [DataMember(Name = "participantName")]
- public string ParticipantName { get; set; }
-
- /// Gets or sets the date when notes was submitted.
- [DataMember(Name = "submittedDateTime")]
- public DateTime? SubmittedDateTime { get; set; }
-
- /// Gets or sets the notes.
- [DataMember(Name = "notes")]
- public string Notes { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackSummary.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackSummary.cs
deleted file mode 100644
index be1e6c7c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FeedbackSummary.cs
+++ /dev/null
@@ -1,82 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.Talent.FalconEntities.Attract;
- using HR.TA.TalentEntities.Enum;
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The Feedback data contract.
- ///
-
- [DataContract]
- public class FeedbackSummary
- {
- /// Gets or sets Feedback Status.
- [DataMember(Name = "Status", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationAssessmentStatus? Status { get; set; }
-
- /// Gets or sets Recommendation.
- [DataMember(Name = "IsRecommendedToContinue", EmitDefaultValue = false, IsRequired = false)]
- public bool? IsRecommendedToContinue { get; set; }
-
- /// Gets or sets the SubmittedDate.
- [DataMember(Name = "SubmittedDateTime", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? SubmittedDateTime { get; set; }
-
- /// Gets or sets the Interviewer Name.
- [DataMember(Name = "InterviewerName", EmitDefaultValue = false, IsRequired = false)]
- public string InterviewerName { get; set; }
-
- /// Gets or sets the Interviewer Oid///
- [DataMember(Name = "OID", EmitDefaultValue = false, IsRequired = false)]
- public string OID { get; set; }
-
- /// Gets or sets the Reminder Status///
- [DataMember(Name = "RemindApplicable", EmitDefaultValue = false, IsRequired = false)]
- public bool RemindApplicable { get; set; }
-
- /// Gets or sets the Schedule Available Status///
- [DataMember(Name = "IsScheduleAvailable", EmitDefaultValue = false, IsRequired = false)]
- public bool IsScheduleAvailable { get; set; }
-
- /// Gets or sets the Overall Comment///
- [DataMember(Name = "OverallComment", EmitDefaultValue = false, IsRequired = false)]
- public string OverallComment { get; set; }
-
- /// Gets or sets the FileAttachment Details///
- [DataMember(Name = "FileAttachments", EmitDefaultValue = false, IsRequired = false)]
- public IList FileAttachments { get; set; }
-
- /// Gets or sets the Submitted by oid///
- [DataMember(Name = "SubmittedByOID", EmitDefaultValue = false, IsRequired = false)]
- public string SubmittedByOID { get; set; }
-
- /// Gets or sets the Submitted by name///
- [DataMember(Name = "SubmittedByName", EmitDefaultValue = false, IsRequired = false)]
- public string SubmittedByName { get; set; }
-
- /// Gets or sets the Notes provided by Submitter
- [DataMember(Name = "Notes", EmitDefaultValue = false, IsRequired = false)]
- public string Notes { get; set; }
-
- /// Gets or sets the Submitted by oid for the Notes
- [DataMember(Name = "NotesSubmittedByOID", EmitDefaultValue = false, IsRequired = false)]
- public string NotesSubmittedByOID { get; set; }
-
- /// Gets or sets the Submitted by name for the notes.
- [DataMember(Name = "NotesSubmittedByName", EmitDefaultValue = false, IsRequired = false)]
- public string NotesSubmittedByName { get; set; }
-
- /// Gets or sets the SubmittedDate for the notes.
- [DataMember(Name = "NotesSubmittedDateTime", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? NotesSubmittedDateTime { get; set; }
-
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FileAttachmentRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FileAttachmentRequest.cs
deleted file mode 100644
index 07c49c42..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/FileAttachmentRequest.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-using Microsoft.AspNetCore.Http;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- ///
- /// Specifies the Data Contract for Feedback Attachment Request
- ///
- [DataContract]
- public class FileAttachmentRequest
- {
- ///
- /// Gets or sets file which has attachment content
- ///
- [DataMember(Name = "files")]
- public IFormFileCollection Files { get; set; }
-
- ///
- /// Gets or sets name with which attachment should be tagged.
- ///
- [DataMember(Name = "fileLabels")]
- public IEnumerable FileLabels { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicant.cs
deleted file mode 100644
index fde19a3f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicant.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The user related applicant data contract.
- ///
- [DataContract]
- public class IVApplicant
- {
- /// Gets or sets job application id.
- [DataMember(Name = "JobApplicationId", EmitDefaultValue = false, IsRequired = false)]
- public string JobApplicationID { get; set; }
-
- /// Gets or sets ExternalJobOpeningId (Requisition Id).
- [DataMember(Name = "ExternalJobOpeningId", EmitDefaultValue = false, IsRequired = false)]
- public string ExternalJobOpeningId { get; set; }
-
- /// Gets or sets ExternalJobApplicationId (Candidacy Id).
- [DataMember(Name = "ExternalJobApplicationId", EmitDefaultValue = false, IsRequired = false)]
- public string ExternalJobApplicationId { get; set; }
-
- /// Gets or sets job title.
- [DataMember(Name = "JobTitle", EmitDefaultValue = false, IsRequired = false)]
- public string JobTitle { get; set; }
-
- /// Gets or sets candidate.
- [DataMember(Name = "Candidate", EmitDefaultValue = false, IsRequired = false)]
- public CandidateInformation Candidate { get; set; }
-
- /// Gets or sets name of hiring manager.
- [DataMember(Name = "HiringManager", EmitDefaultValue = false, IsRequired = false)]
- public string HiringManager { get; set; }
-
- /// Gets or sets name of recruiter.
- [DataMember(Name = "Recruiter", EmitDefaultValue = false, IsRequired = false)]
- public string Recruiter { get; set; }
-
- /// Gets or sets the role of user.
- [DataMember(Name = "participantRole", EmitDefaultValue = false, IsRequired = false)]
- public JobParticipantRole? participantRole { get; set; }
-
- /// Gets or sets current stage.
- [DataMember(Name = "CurrentStage", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationActivityType? CurrentStage { get; set; }
-
- /// Gets or sets job description.
- [DataMember(Name = "JobDescription", EmitDefaultValue = false, IsRequired = false)]
- public string JobDescription { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicationNote.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicationNote.cs
deleted file mode 100644
index ab587311..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVApplicationNote.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// The Application Note contract.
- ///
- [DataContract]
- public class IVApplicationNote
- {
- ///
- /// Gets or sets note id.
- ///
- [DataMember(Name = "id", EmitDefaultValue = false, IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets note text.
- ///
- [DataMember(Name = "text", EmitDefaultValue = false, IsRequired = false)]
- public string Text { get; set; }
-
- ///
- /// Gets or sets owner's oid.
- ///
- [DataMember(Name = "ownerObjectId", EmitDefaultValue = false, IsRequired = false)]
- public string OwnerObjectId { get; set; }
-
- ///
- /// Gets or sets the created date time for the note.
- ///
- [DataMember(Name = "createdDate", EmitDefaultValue = false, IsRequired = false)]
- public DateTime CreatedDate { get; set; }
-
- ///
- /// Gets or sets owner's full name.
- ///
- [DataMember(Name = "ownerFullName", EmitDefaultValue = false, IsRequired = false)]
- public string OwnerFullName { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVUserProfile.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVUserProfile.cs
deleted file mode 100644
index c08d5165..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/IVUserProfile.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using HR.TA.Common.Web.Contracts;
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class representing a list of users with roles
- ///
- [DataContract]
- public class IVUserProfile
- {
- [DataMember(Name = "ivperson", IsRequired = true)]
- public IVPerson Person { get; set; }
-
- [DataMember(Name = "ivroles", IsRequired = true)]
- public IList Roles { get; set; }
-
- [DataMember(Name = "firsttimelogin", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? FirstTimeLogin { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewDetails.cs
deleted file mode 100644
index d9ba7625..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewDetails.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The interview details data contract.
- ///
- [DataContract]
- public class InterviewDetails
- {
- /// Gets or sets job application id.
- [DataMember(Name = "JobApplicationID", EmitDefaultValue = false, IsRequired = true)]
- public string JobApplicationID { get; set; }
-
- /// Gets or sets the name of the candidate.
- [DataMember(Name = "CandidateName", EmitDefaultValue = false, IsRequired = false)]
- public string CandidateName { get; set; }
-
- /// Gets or sets the job title.
- [DataMember(Name = "PositionTitle", EmitDefaultValue = false, IsRequired = false)]
- public string PositionTitle { get; set; }
-
- /// Gets or sets the interview schedules for day.
- [DataMember(Name = "SchedulesForDay", EmitDefaultValue = false, IsRequired = false)]
- public IList SchedulesForDay { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewSchedule.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewSchedule.cs
deleted file mode 100644
index f1a91669..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/InterviewSchedule.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.Talent.EnumSetModel;
-
- ///
- /// The interview schedule data contract.
- ///
- [DataContract]
- public class InterviewSchedule
- {
- /// Gets or sets interview start date and time.
- [DataMember(Name = "InterviewStartDateTime", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? InterviewStartDateTime { get; set; }
-
- /// Gets or sets interview end date and time.
- [DataMember(Name = "InterviewEndDateTime", EmitDefaultValue = false, IsRequired = false)]
- public DateTime? InterviewEndDateTime { get; set; }
-
- /// Gets or sets the list of interviewers.
- [DataMember(Name = "Interviewers", EmitDefaultValue = false, IsRequired = false)]
- public IList Interviewers { get; set; }
-
- /// Gets or sets the mode of interview.
- [DataMember(Name = "InterviewMode", EmitDefaultValue = false, IsRequired = false)]
- public InterviewMode? InterviewMode { get; set; }
-
- /// Gets or sets the schedule status of interview.
- [DataMember(Name = "InterviewScheduleStatus", EmitDefaultValue = false, IsRequired = false)]
- public ScheduleStatus? InterviewScheduleStatus { get; set; }
-
- /// Gets or sets the location of the interview or teams meeting link if online.
- [DataMember(Name = "InterviewLocationOrTeamsMeetingLink", EmitDefaultValue = false, IsRequired = false)]
- public string InterviewLocationOrTeamsMeetingLink { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/Interviewer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/Interviewer.cs
deleted file mode 100644
index e2bfe917..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/Interviewer.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The interviewer data contract.
- ///
- [DataContract]
- public class Interviewer
- {
- /// Gets or sets the candidate email.
- [DataMember(Name = "PrimaryEmail", EmitDefaultValue = false, IsRequired = false)]
- public string PrimaryEmail { get; set; }
-
- /// Gets or sets Given Name.
- [DataMember(Name = "Name", EmitDefaultValue = false, IsRequired = false)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets the office graph identifier.
- ///
- [DataMember(Name = "OfficeGraphIdentifier", EmitDefaultValue = false, IsRequired = false)]
- public string OfficeGraphIdentifier { get; set; }
-
- ///
- /// Gets or sets the profession of interviewer.
- ///
- [DataMember(Name = "Profession", EmitDefaultValue = false, IsRequired = false)]
- public string Profession { get; set; }
-
- ///
- /// Gets or sets the role of the participant.
- ///
- [DataMember(Name = "Role", EmitDefaultValue = false, IsRequired = false)]
- public JobParticipantRole? Role { get; set; }
-
- ///
- /// Gets or sets the meeting status.
- ///
- [DataMember(Name = "InterviewerResponseStatus", EmitDefaultValue = false, IsRequired = false)]
- public InvitationResponseStatus? InterviewerResponseStatus { get; set; }
-
- ///
- /// Gets or sets the interviewer comments.
- ///
- [DataMember(Name = "InterviewerComments", EmitDefaultValue = false, IsRequired = false)]
- public string InterviewerComments { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/JobApplicationMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/JobApplicationMetadata.cs
deleted file mode 100644
index f3218cf2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/JobApplicationMetadata.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Provisioning.Entities.FalconEntities.Attract;
- using HR.TA.Common.TalentEntities.Common;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Applicants Metadata contract
- ///
- [DataContract]
- public class JobApplicationMetadata
- {
- ///
- /// Gets or sets the Job Application Id
- ///
- [DataMember(Name = "jobApplicationId", IsRequired = false, EmitDefaultValue = false)]
- public string JobApplicationId { get; set; }
-
- ///
- /// Gets or sets the ExternalJobOpeningId
- ///
- [DataMember(Name = "externalJobOpeningId", IsRequired = false, EmitDefaultValue = false)]
- public string ExternalJobOpeningId { get; set; }
-
- ///
- /// Gets or sets the JobTitle
- ///
- [DataMember(Name = "jobTitle", IsRequired = false, EmitDefaultValue = false)]
- public string JobTitle { get; set; }
-
- ///
- /// Gets or sets the JobDescription
- ///
- [DataMember(Name = "jobDescription", IsRequired = false, EmitDefaultValue = false)]
- public string JobDescription { get; set; }
-
- ///
- /// Gets or sets the CurrentJobApplicationStageStatus
- ///
- [DataMember(Name = "currentJobApplicationStageStatus", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationStageStatus? CurrentJobApplicationStageStatus { get; set; }
-
- ///
- /// Gets or sets the CurrentJobOpeningStage
- ///
- [DataMember(Name = "currentJobOpeningStage", EmitDefaultValue = false, IsRequired = false)]
- public JobStage? CurrentJobOpeningStage { get; set; }
-
- ///
- /// Gets or sets the JobApplicationStatus
- ///
- [DataMember(Name = "jobApplicationStatus", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationStatus? JobApplicationStatus { get; set; }
-
- ///
- /// Gets or sets the Job Application Candidate
- ///
- [DataMember(Name = "candidate", EmitDefaultValue = false, IsRequired = false)]
- public CandidateInformation Candidate { get; set; }
-
- ///
- /// Gets or sets all Job Application Particpants
- ///
- [DataMember(Name = "jobApplicationParticipants", EmitDefaultValue = false, IsRequired = false)]
- public IList JobApplicationParticipants { get; set; }
-
- ///
- /// Gets or sets all Job Application Particpants
- ///
- [DataMember(Name = "jobApplicationParticipantDetails", EmitDefaultValue = false, IsRequired = false)]
- public IList JobApplicationParticipantDetails { get; set; }
-
- ///
- /// Gets or sets all the flag for schedule summary to candidate.
- ///
- [DataMember(Name = "IsScheduleSentToCandidate", EmitDefaultValue = false, IsRequired = false)]
- public bool? IsScheduleSentToCandidate { get; set; }
-
- ///
- /// Gets or sets for application hire type.
- ///
- [DataMember(Name = "HireType", EmitDefaultValue = false, IsRequired = false)]
- public string HireType { get; set; }
-
- ///
- /// Gets or sets for job application status reason.
- ///
- [DataMember(Name = "JobApplicationStatusReason", EmitDefaultValue = false, IsRequired = false)]
- public JobApplicationStatusReason? JobApplicationStatusReason { get; set; }
-
- ///
- /// Gets or sets if the user is in wob context.
- ///
- [DataMember(Name = "isWobAuthenticated", EmitDefaultValue = false, IsRequired = false)]
- public bool isWobAuthenticated { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/UpcomingInterviews.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/UpcomingInterviews.cs
deleted file mode 100644
index 4c514cad..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/InterviewService/UpcomingInterviews.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.InterviewService
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The upcoming interviews data contract.
- ///
- [DataContract]
- public class UpcomingInterviews
- {
- /// Gets or sets the schedule for the day.
- [DataMember(Name = "ScheduleForDay", EmitDefaultValue = false, IsRequired = false)]
- public IList ScheduleForDay { get; set; }
-
- /// Gets or sets upcoming scheduled dates for month.
- [DataMember(Name = "ScheduledDatesForMonth", EmitDefaultValue = false, IsRequired = false)]
- public IList ScheduledDatesForMonth { get; set; }
-
- /// Gets or sets upcoming schedules for month.
- [DataMember(Name = "SchedulesForMonth", EmitDefaultValue = false, IsRequired = false)]
- public IList SchedulesForMonth { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStage.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStage.cs
deleted file mode 100644
index de0a338f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStage.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the CareerStage Entity in JTT.
- ///
- [DataContract]
- public class CareerStage
- {
- ///
- /// Unique Identifier of the Career Stage.
- ///
- [DataMember(Name = "careerStageId", IsRequired = true)]
- public string CareerStageId { get; set; }
-
- ///
- /// Name of the Career Stage.
- ///
- [DataMember(Name = "careerStageName", IsRequired = true)]
- public string CareerStageName { get; set; }
-
- ///
- /// Prefix portion of the Career Stage.
- ///
- [DataMember(Name = "careerStagePrefix", IsRequired = true)]
- public string CareerStagePrefix { get; set; }
-
- ///
- /// Suffix portion of the Career Stage.
- ///
- [DataMember(Name = "careerStageSuffix", IsRequired = true)]
- public string CareerStageSuffix { get; set; }
-
- ///
- /// Unique identifier to indicate if the Career Stage is IC (0), Manager(1) or Manager of Manager(2).
- ///
- [DataMember(Name = "managerIndicatorId")]
- public string ManagerIndicatorId { get; set; }
-
- ///
- /// Name associated to the .
- ///
- [DataMember(Name = "managerIndicator", IsRequired = true)]
- public string ManagerIndicator { get; set; }
-
- ///
- /// Date from which the Career Stage is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Career Stage is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Career Stage - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
-
- ///
- /// Boolean to indicate whether the Career Stage is being maintained for existing and filled positions only (Yes) or can be used for new and open positions (No).
- ///
- [DataMember(Name = "exception")]
- public bool Exception { get; set; }
-
- ///
- /// Boolean to indicate whether the Career Stage is only available for usage with documented permission (Yes) or available for usage without restrictions (No).
- ///
- [DataMember(Name = "confidential")]
- public bool Confidential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStageRole.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStageRole.cs
deleted file mode 100644
index 25b5e14a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/CareerStageRole.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the CareerStage to Role Mapping Entity in JTT.
- ///
- [DataContract]
- public class CareerStageRole
- {
- ///
- /// Unique Identifier of the Career Stage.
- ///
- [DataMember(Name = "careerStageId", IsRequired = true)]
- public string CareerStageId { get; set; }
-
- ///
- /// Unique Identifier of the Role.
- ///
- [DataMember(Name = "roleId", IsRequired = true)]
- public string RoleId { get; set; }
-
- ///
- /// Date from which the Career Stage to Role Mapping is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Career Stage to Role Mapping is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Career Stage - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Discipline.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Discipline.cs
deleted file mode 100644
index 7f41c559..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Discipline.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the Discipline Entity in JTT.
- ///
- [DataContract]
- public class Discipline
- {
- ///
- /// Unique Identifier of the Profession associated to the Discipline.
- ///
- [DataMember(Name = "professionId", IsRequired = true)]
- public string ProfessionId { get; set; }
-
- ///
- /// Unique Identifier for the Discipline.
- ///
- [DataMember(Name = "disciplineId", IsRequired = true)]
- public string DisciplineId { get; set; }
-
- ///
- /// Name of the Discipline.
- ///
- [DataMember(Name = "disciplineName", IsRequired = true)]
- public string DisciplineName { get; set; }
-
- ///
- /// Description of the Discipline.
- ///
- [DataMember(Name = "disciplineDescription")]
- public string DisciplineDescription { get; set; }
-
- ///
- /// Date from which the Discipline is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Discipline is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Discipline - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
-
- ///
- /// Boolean to indicate whether the Discipline is being maintained for existing and filled positions only (Yes) or can be used for new and open positions (No).
- ///
- [DataMember(Name = "exception")]
- public bool Exception { get; set; }
-
- ///
- /// Boolean to indicate whether the Discipline is only available for usage with documented permission (Yes) or available for usage without restrictions (No).
- ///
- [DataMember(Name = "confidential")]
- public bool Confidential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Profession.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Profession.cs
deleted file mode 100644
index 7b1ddfef..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Profession.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the Profession Entity in JTT.
- ///
- [DataContract]
- public class Profession
- {
- ///
- /// Unique Identifier for the Profession.
- ///
- [DataMember(Name = "professionId", IsRequired = true)]
- public string ProfessionId { get; set; }
-
- ///
- /// Name of the Profession.
- ///
- [DataMember(Name = "professionName", IsRequired = true)]
- public string ProfessionName { get; set; }
-
- ///
- /// Description of the Profession.
- ///
- [DataMember(Name = "professionDescription")]
- public string ProfessionDescription { get; set; }
-
- ///
- /// Date from which the Profession is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Profession is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Profession - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
-
- ///
- /// Boolean to indicate whether the Profession is being maintained for existing and filled positions only (Yes) or can be used for new and open positions (No).
- ///
- [DataMember(Name = "exception")]
- public bool Exception { get; set; }
-
- ///
- /// Boolean to indicate whether the Profession is only available for usage with documented permission (Yes) or available for usage without restrictions (No).
- ///
- [DataMember(Name = "confidential")]
- public bool Confidential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Role.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Role.cs
deleted file mode 100644
index aacc98e8..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/Role.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the Role Entity in JTT.
- ///
- [DataContract]
- public class Role
- {
- ///
- /// Unique Identifier of the Discipline associated to the Role.
- ///
- [DataMember(Name = "disciplineId", IsRequired = true)]
- public string DisciplineId { get; set; }
-
- ///
- /// Unique Identifier of the Role.
- ///
- [DataMember(Name = "roleId", IsRequired = true)]
- public string RoleId { get; set; }
-
- ///
- /// Name of the Role.
- ///
- [DataMember(Name = "roleName", IsRequired = true)]
- public string RoleName { get; set; }
-
- ///
- /// Legacy alphanumeric identifier or code associated to Role.
- ///
- [DataMember(Name = "sapShortCode", IsRequired = true)]
- public string SAPShortCode { get; set; }
-
- ///
- /// Description for the Role.
- ///
- [DataMember(Name = "roleDescription")]
- public string RoleDescription { get; set; }
-
- ///
- /// Flag used to indicate whether the Role has been approved and released with a Job Architecture update.
- ///
- [DataMember(Name = "roleAnalysisIndicator")]
- public int RoleAnalysisIndicator { get; set; }
-
- ///
- /// Type used to indicate whether the Role is used for "Regular (R)" or "External Staff (E)" positions.
- ///
- [DataMember(Name = "roleType", IsRequired = true)]
- public string RoleType { get; set; }
-
- ///
- /// Date from which the Role is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Role is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Role - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
-
- ///
- /// Boolean to indicate whether the Role is being maintained for existing and filled positions only (Yes) or can be used for new and open positions (No).
- ///
- [DataMember(Name = "exception")]
- public bool Exception { get; set; }
-
- ///
- /// Boolean to indicate whether the Role is only available for usage with documented permission (Yes) or available for usage without restrictions (No).
- ///
- [DataMember(Name = "confidential")]
- public bool Confidential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/RoleSkill.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/RoleSkill.cs
deleted file mode 100644
index bfcccbdf..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JTT/RoleSkill.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Talent.TalentContracts.JTT
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Contract class for the RoleSkill Entity in JTT.
- ///
- [DataContract]
- public class RoleSkill
- {
- ///
- /// Unique Identifier for the Profession associated to the Role Skill.
- ///
- [DataMember(Name = "professionId", IsRequired = true)]
- public string ProfessionId { get; set; }
-
- ///
- /// Unique Identifier for the Discipline associated to the Role Skill.
- ///
- [DataMember(Name = "disciplineId", IsRequired = true)]
- public string DisciplineId { get; set; }
-
- ///
- /// Unique Identifier for the Role associated to the Role Skill.
- ///
- [DataMember(Name = "roleId", IsRequired = true)]
- public string RoleId { get; set; }
-
- ///
- /// Unique Identifier for the Career Stage associated to the Role Skill.
- ///
- [DataMember(Name = "careerStageId", IsRequired = true)]
- public string CareerStageId { get; set; }
-
- ///
- /// Unique Identifier of the Role Skill.
- ///
- [DataMember(Name = "roleSkillId", IsRequired = true)]
- public string RoleSkillId { get; set; }
-
- ///
- /// Name of the Role Skill.
- ///
- [DataMember(Name = "roleSkillName", IsRequired = true)]
- public string RoleSkillName { get; set; }
-
- ///
- /// Description of the Role Skill.
- ///
- [DataMember(Name = "roleSkillDescription")]
- public string RoleSkillDescription { get; set; }
-
- ///
- /// Date from which the Role Skill is effective.
- ///
- [DataMember(Name = "startDate", IsRequired = true)]
- public DateTime StartDate { get; set; }
-
- ///
- /// Date until which the Role Skill is effective.
- ///
- [DataMember(Name = "endDate")]
- public DateTime EndDate { get; set; }
-
- ///
- /// Status of the Role Skill - Active/Inactive.
- ///
- [DataMember(Name = "status", IsRequired = true)]
- public string Status { get; set; }
-
- ///
- /// Boolean to indicate whether the Role Skill is being maintained for existing and filled positions only (Yes) or can be used for new and open positions (No).
- ///
- [DataMember(Name = "exception")]
- public bool Exception { get; set; }
-
- ///
- /// Boolean to indicate whether the Role Skill is only available for usage with documented permission (Yes) or available for usage without restrictions (No).
- ///
- [DataMember(Name = "confidential")]
- public bool Confidential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Job.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Job.cs
deleted file mode 100644
index e13b12d2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Job.cs
+++ /dev/null
@@ -1,271 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.Common.TalentEntities.Common;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The job data contract.
- ///
- [DataContract]
- public class Job : TalentBaseContract
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets title.
- [DataMember(Name = "title", IsRequired = false)]
- public string Title { get; set; }
-
- ///
- /// Gets or sets job description.
- ///
- [DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets number of openings for job.
- ///
- [DataMember(Name = "numberOfOpenings", IsRequired = false, EmitDefaultValue = false)]
- public long? NumberOfOpenings { get; set; }
-
- ///
- /// Gets or sets number of offers for job.
- ///
- [DataMember(Name = "numberOfOffers", IsRequired = false, EmitDefaultValue = false)]
- public long? NumberOfOffers { get; set; }
-
- ///
- /// Gets or sets job status.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public JobOpeningStatus? Status { get; set; }
-
- ///
- /// Gets or sets job status reason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public JobOpeningStatusReason? StatusReason { get; set; }
-
- ///
- /// Gets or sets job location.
- ///
- [DataMember(Name = "location", IsRequired = false, EmitDefaultValue = false)]
- public string Location { get; set; }
-
- ///
- /// Gets or sets external job opening source.
- ///
- [DataMember(Name = "source", IsRequired = false)]
- public JobOpeningExternalSource Source { get; set; }
-
- ///
- /// Gets or sets external job opening Id.
- ///
- [DataMember(Name = "externalId", IsRequired = false, EmitDefaultValue = false)]
- public string ExternalId { get; set; }
-
- ///
- /// Gets or sets job external status.
- ///
- [DataMember(Name = "externalStatus", IsRequired = false)]
- public string ExternalStatus { get; set; }
-
- ///
- /// Gets or sets start date.
- ///
- [DataMember(Name = "createdDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CreatedDate { get; set; }
-
- ///
- /// Gets or sets job comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets job position Id
- ///
- [DataMember(Name = "primaryPositionID", IsRequired = false, EmitDefaultValue = false)]
- public string PrimaryPositionID { get; set; }
-
- ///
- /// Gets or sets job position uri
- ///
- [DataMember(Name = "positionURI", IsRequired = false, EmitDefaultValue = false)]
- public string PositionURI { get; set; }
-
- ///
- /// Gets or sets job position uri
- ///
- [DataMember(Name = "applyURI", IsRequired = false, EmitDefaultValue = false)]
- public string ApplyURI { get; set; }
-
- ///
- /// Gets or sets job skills
- ///
- [DataMember(Name = "skills", IsRequired = false, EmitDefaultValue = false)]
- public IList Skills { get; set; }
-
- ///
- /// Gets or sets job seniority level
- ///
- [DataMember(Name = "seniorityLevel", IsRequired = false, EmitDefaultValue = false)]
- public string SeniorityLevel { get; set; }
-
- ///
- /// Gets or sets job seniority level
- ///
- [DataMember(Name = "seniorityLevelValue", IsRequired = false, EmitDefaultValue = false)]
- public OptionSetValue SeniorityLevelValue { get; set; }
-
- ///
- /// Gets or sets job employment type
- ///
- [DataMember(Name = "employmentType", IsRequired = false, EmitDefaultValue = false)]
- public string EmploymentType { get; set; }
-
- ///
- /// Gets or sets job employment type
- ///
- [DataMember(Name = "employmentTypeValue", IsRequired = false, EmitDefaultValue = false)]
- public OptionSetValue EmploymentTypeValue { get; set; }
-
- ///
- /// Gets or sets job functions
- ///
- [DataMember(Name = "jobFunctions", IsRequired = false, EmitDefaultValue = false)]
- public IList JobFunctions { get; set; }
-
- ///
- /// Gets or sets job company industries
- ///
- [DataMember(Name = "companyIndustries", IsRequired = false, EmitDefaultValue = false)]
- public IList CompanyIndustries { get; set; }
-
- ///
- /// Gets or sets job position uri
- ///
- [DataMember(Name = "isTemplate", IsRequired = false, EmitDefaultValue = false)]
- public bool IsTemplate { get; set; }
-
- ///
- /// Gets or sets job position uri
- ///
- [DataMember(Name = "jobTemplate", IsRequired = false, EmitDefaultValue = false)]
- public JobTemplate JobTemplate { get; set; }
-
- ///
- /// Gets or sets job stages.
- ///
- [DataMember(Name = "stages", IsRequired = false, EmitDefaultValue = false)]
- public IList Stages { get; set; }
-
- ///
- /// Gets or sets job hiring team.
- ///
- [DataMember(Name = "hiringTeam", IsRequired = false, EmitDefaultValue = false)]
- public IList HiringTeam { get; set; }
-
- ///
- /// Gets or sets job applications.
- ///
- [DataMember(Name = "applications", IsRequired = false, EmitDefaultValue = false)]
- public IList Applications { get; set; }
-
- ///
- /// Gets or sets job external post.
- ///
- [DataMember(Name = "externalJobPost", IsRequired = false, EmitDefaultValue = false)]
- public IList ExternalJobPosts { get; set; }
-
- /// Gets or sets participants.
- [DataMember(Name = "templateParticipants", IsRequired = false)]
- public IList TemplateParticipants { get; set; }
-
- ///
- /// Gets or sets job external post.
- ///
- [DataMember(Name = "jobOpeningVisibility", IsRequired = false, EmitDefaultValue = false)]
- public JobOpeningVisibility? JobOpeningVisibility { get; set; }
-
- /// Gets or sets job opening positions.
- [DataMember(Name = "jobOpeningPositions", IsRequired = false, EmitDefaultValue = false)]
- public IList JobOpeningPositions { get; set; }
-
- ///
- /// Gets or sets Position Start Date.
- ///
- [DataMember(Name = "positionStartDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? PositionStartDate { get; set; }
-
- ///
- /// Gets or sets Position End Date.
- ///
- [DataMember(Name = "positionEndDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? PositionEndDate { get; set; }
-
- ///
- /// Gets or sets Application Start Date.
- ///
- [DataMember(Name = "applicationStartDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? ApplicationStartDate { get; set; }
-
- ///
- /// Gets or sets Application Close Date.
- ///
- [DataMember(Name = "applicationCloseDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? ApplicationCloseDate { get; set; }
-
- ///
- /// Gets or sets Postal Address.
- ///
- [DataMember(Name = "postalAddress", IsRequired = false, EmitDefaultValue = false)]
- public Address PostalAddress { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
-
- ///
- /// Gets or sets configuration.
- ///
- [DataMember(Name = "configuration", IsRequired = false, EmitDefaultValue = false)]
- public string Configuration { get; set; }
-
- ///
- /// Gets or sets job approval participants.
- ///
- [DataMember(Name = "approvalParticipants", IsRequired = false, EmitDefaultValue = false)]
- public IList ApprovalParticipants { get; set; }
-
- ///
- /// Gets or sets delegates from the hiring team
- ///
- [DataMember(Name = "delegates", IsRequired = false, EmitDefaultValue = false)]
- public IList Delegates { get; set; }
-
- ///
- /// Gets or sets the list of permissions to the job for the calling user.
- ///
- [DataMember(Name = "userPermissions", IsRequired = false, EmitDefaultValue = false)]
- public IList UserPermissions { get; set; }
-
- ///
- /// Gets or sets the priority for the job like internal/external/both.
- ///
- [DataMember(Name = "priority", IsRequired = false, EmitDefaultValue = false)]
- public string Priority { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReport.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReport.cs
deleted file mode 100644
index 7cbd8881..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReport.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- /// The job application assessment report.
- [DataContract]
- public class JobApplicationAssessmentReport
- {
- /// Gets or sets the job application id.
- [DataMember(Name = "jobApplicationId")]
- public string JobApplicationId { get; set; }
-
- /// Gets or sets the candidate's given name.
- [DataMember(Name = "candidateGivenName")]
- public string CandidateGivenName { get; set; }
-
- /// Gets or sets the candidate's surname.
- [DataMember(Name = "candidateSurname")]
- public string CandidateSurname { get; set; }
-
- /// Gets or sets the external assessment id.
- [DataMember(Name = "externalAssessmentReportID")]
- public string ExternalAssessmentReportID { get; set; }
-
- /// Gets or sets the assessment status.
- [DataMember(Name = "assessmentStatus")]
- public AssessmentStatus AssessmentStatus { get; set; }
-
- /// Gets or sets the assessment URL.
- [DataMember(Name = "assessmentURL")]
- public string AssessmentURL { get; set; }
-
- /// Gets or sets the assessment Title.
- [DataMember(Name = "title")]
- public string Title { get; set; }
-
- /// Gets or sets the report URL.
- [DataMember(Name = "reportURL")]
- public string ReportURL { get; set; }
-
- /// Gets or sets the assessment report results
- [DataMember(Name = "results")]
- public IEnumerable Results { get; set; }
-
- /// Gets or sets the additional information
- [DataMember(Name = "additionalInformation")]
- public string AdditionalInformation { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReportResult.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReportResult.cs
deleted file mode 100644
index fc2cab00..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationAssessmentReportResult.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- /// The job application assessment report result.
- [DataContract]
- public class JobApplicationAssessmentReportResult
- {
- /// Gets or sets the score type.
- [DataMember(Name = nameof(ScoreType))]
- public string ScoreType { get; set; }
-
- /// Gets or sets the score value.
- [DataMember(Name = nameof(ScoreValue))]
- public string ScoreValue { get; set; }
-
- /// Gets or sets the result subject.
- [DataMember(Name = nameof(ResultSubject))]
- public string ResultSubject { get; set; }
-
- /// Gets or sets the additional information.
- [DataMember(Name = nameof(AdditionalInformation))]
- public string AdditionalInformation { get; set; }
-
- /// Gets or sets the additional result data.
- [DataMember(Name = nameof(AdditionalResultData))]
- public string AdditionalResultData { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationDetails.cs
deleted file mode 100644
index ced4b8b6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationDetails.cs
+++ /dev/null
@@ -1,214 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Enum;
-
- /// The job application details.
- [DataContract]
- public class JobApplicationDetails : TalentBaseContract
- {
- /// Gets or sets the application id.
- [DataMember(Name = nameof(ApplicationId))]
- public string ApplicationId { get; set; }
-
- /// Gets or sets the tenant id.
- [DataMember(Name = nameof(TenantId))]
- public string TenantId { get; set; }
-
- /// Gets or sets the company name.
- [DataMember(Name = nameof(CompanyName))]
- public string CompanyName { get; set; }
-
- /// Gets or sets the company location.
- [DataMember(Name = nameof(PositionLocation))]
- public string PositionLocation { get; set; }
-
- /// Gets or sets the position title.
- [DataMember(Name = nameof(PositionTitle))]
- public string PositionTitle { get; set; }
-
- /// Gets or sets the job description.
- [DataMember(Name = nameof(JobDescription))]
- public string JobDescription { get; set; }
-
- /// Gets or sets the job apply link.
- [DataMember(Name = nameof(JobPostLink), IsRequired = false)]
- public string JobPostLink { get; set; }
-
- /// Gets or sets the date applied.
- [DataMember(Name = nameof(DateApplied))]
- public DateTime DateApplied { get; set; }
-
- /// Gets or sets the status.
- [DataMember(Name = nameof(Status))]
- public JobApplicationStatus Status { get; set; }
-
- /// Gets or sets job external status.
- [DataMember(Name = nameof(ExternalStatus), IsRequired = false)]
- public string ExternalStatus { get; set; }
-
- /// Gets or sets the external source.
- [DataMember(Name = nameof(ExternalSource), IsRequired = false, EmitDefaultValue = false)]
- public JobApplicationExternalSource? ExternalSource { get; set; }
-
- /// Gets or sets the status reason
- [DataMember(Name = nameof(StatusReason), IsRequired = false)]
- public JobApplicationStatusReason StatusReason { get; set; }
-
- /// Gets or sets the rejection reason
- [DataMember(Name = nameof(RejectionReason), IsRequired = false)]
- public OptionSetValue RejectionReason { get; set; }
-
- /// Gets or sets the current job stage.
- [DataMember(Name = nameof(CurrentJobStage), IsRequired = false)]
- public JobStage CurrentJobStage { get; set; }
-
- ///
- /// Gets or sets current application stage.
- ///
- [DataMember(Name = nameof(CurrentApplicationStage), IsRequired = false)]
- public ApplicationStage CurrentApplicationStage { get; set; }
-
- /// Gets or sets the interviews.
- [DataMember(Name = nameof(Interviews))]
- public IList Interviews { get; set; }
-
- ///
- /// Gets or sets the application schedules.
- ///
- [DataMember(Name = nameof(ApplicationSchedules), IsRequired = false, EmitDefaultValue = false)]
- public IList ApplicationSchedules { get; set; }
-
- ///
- /// Gets or sets the applicant attachments.
- ///
- [DataMember(Name = nameof(ApplicantAttachments), IsRequired = false, EmitDefaultValue = false)]
- public IList ApplicantAttachments { get; set; }
-
- /// Gets or sets the applicant assessments.
- [DataMember(Name = nameof(ApplicantAssessments), IsRequired = false, EmitDefaultValue = false)]
- public IList ApplicantAssessments { get; set; }
-
- ///
- /// Gets or sets application stages
- ///
- [DataMember(Name = nameof(ApplicationStages), IsRequired = false, EmitDefaultValue = false)]
- public IList ApplicationStages { get; set; }
-
- ///
- /// Gets or sets candidate personal details for this application
- ///
- [DataMember(Name = "candidatePersonalDetails", IsRequired = false, EmitDefaultValue = false)]
- public IList CandidatePersonalDetails { get; set; }
- }
-
- /// The job application interview.
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Reviewed. Suppression is OK here.")]
- [DataContract]
- public class ApplicantAssessmentReport
- {
- /// Gets or sets the title.
- [DataMember(Name = "title")]
- public string Title { get; set; }
-
- /// Gets or sets the assessment url.
- [DataMember(Name = "assessmentURL", IsRequired = false, EmitDefaultValue = false)]
- public string AssessmentURL { get; set; }
-
- ///
- /// Gets or sets the external assessment report ID.
- ///
- [DataMember(Name = "externalAssessmentReportID", IsRequired = false, EmitDefaultValue = false)]
- public string ExternalAssessmentReportID { get; set; }
-
- ///
- /// Gets or sets the provider key.
- ///
- [DataMember(Name = "providerKey", IsRequired = false, EmitDefaultValue = false)]
- public string ProviderKey { get; set; }
-
- ///
- /// Gets or sets the assessment status.
- ///
- [DataMember(Name = "assessmentStatus", IsRequired = false, EmitDefaultValue = false)]
- public AssessmentStatus AssessmentStatus { get; set; }
-
- ///
- /// Gets or sets the date ordered.
- ///
- [DataMember(Name = "dateOrdered", IsRequired = false, EmitDefaultValue = false)]
- public DateTime DateOrdered { get; set; }
-
- ///
- /// Gets or sets the date completed.
- ///
- [DataMember(Name = "dateCompleted", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? DateCompleted { get; set; }
-
- ///
- /// Gets or sets the Link Url for assessment.
- ///
- [DataMember(Name = "stageOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? StageOrdinal { get; set; }
-
- ///
- /// Gets or sets the Link Url for assessment.
- ///
- [DataMember(Name = "activityOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivityOrdinal { get; set; }
-
- ///
- /// Gets or sets the Link Url for assessment.
- ///
- [DataMember(Name = "activitySubOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivitySubOrdinal { get; set; }
- }
-
- /// The job application interview.
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Reviewed. Suppression is OK here.")]
- [DataContract]
- public class JobApplicationInterview
- {
- /// Gets or sets the interviewer name.
- [DataMember(Name = nameof(InterviewerName))]
- public string InterviewerName { get; set; }
-
- /// Gets or sets the linked in identity.
- [DataMember(Name = nameof(LinkedinIdentity))]
- public string LinkedinIdentity { get; set; }
-
- /// Gets or sets the start date.
- [DataMember(Name = nameof(StartDate))]
- public DateTime StartDate { get; set; }
-
- /// Gets or sets the end date.
- [DataMember(Name = nameof(EndDate))]
- public DateTime EndDate { get; set; }
-
- ///
- /// Gets or sets the stage ordinal.
- ///
- [DataMember(Name = "stageOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? StageOrdinal { get; set; }
-
- ///
- /// Gets or sets the activity ordinal.
- ///
- [DataMember(Name = "activityOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivityOrdinal { get; set; }
-
- ///
- /// Gets or sets the activity sub ordinal.
- ///
- [DataMember(Name = "activitySubOrdinal", IsRequired = false, EmitDefaultValue = false)]
- public long? ActivitySubOrdinal { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationHistoryMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationHistoryMetadata.cs
deleted file mode 100644
index 84655062..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationHistoryMetadata.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Job Metadata Request
- ///
- [DataContract]
- public class JobApplicationHistoryMetadata
- {
- ///
- /// Job Application Status
- ///
- [DataMember(Name = "jobApplicationStatus", IsRequired = false)]
- public JobApplicationStatus JobApplicationStatus { get; set; }
-
- ///
- /// Job Application date
- ///
- [DataMember(Name = "jobApplicationDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime JobApplicationDate { get; set; }
-
- ///
- /// Hiring Manager Name
- ///
- [DataMember(Name = "hiringTeamMember", IsRequired = false, EmitDefaultValue = false)]
- public HiringTeamMember HiringMember { get; set; }
-
- ///
- /// Job Title
- ///
- [DataMember(Name = "jobTitle", IsRequired = false, EmitDefaultValue = false)]
- public string JobTitle { get; set; }
-
- ///
- /// Job Opening Id
- ///
- [DataMember(Name = "jobOpeningId", IsRequired = false, EmitDefaultValue = false)]
- public string JobOpeningId { get; set; }
-
- ///
- /// Job Application Id
- ///
- [DataMember(Name = "jobApplicationId", IsRequired = false, EmitDefaultValue = false)]
- public string JobApplicationId { get; set; }
-
- ///
- /// Rank of applicant within given job
- ///
- [DataMember(Name = "rank", IsRequired = false, EmitDefaultValue = false)]
- public Rank? Rank { get; set; }
-
- ///
- /// Gets or sets the Talent source
- ///
- [DataMember(Name = "talentSource", IsRequired = false, EmitDefaultValue = false)]
- public TalentSource TalentSource { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInterviewMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInterviewMetadata.cs
deleted file mode 100644
index 65a0adc8..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInterviewMetadata.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it.
-namespace HR.TA.Common.Attract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Job application interview metadata.
- ///
- [DataContract]
- public class JobApplicationInterviewMetadata
- {
- /// Gets or sets the id.
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- /// Gets or sets the application id.
- [DataMember(Name = nameof(JobApplicationID))]
- public string JobApplicationID { get; set; }
-
- /// Gets or sets the interview location.
- [DataMember(Name = nameof(Location))]
- public string Location { get; set; }
-
- /// Gets or sets the comment data.
- [DataMember(Name = nameof(Comment))]
- public string Comment { get; set; }
-
- /// Gets or sets dates.
- [DataMember(Name = nameof(ScheduleDates), IsRequired = false, EmitDefaultValue = false)]
- public string[] ScheduleDates { get; set; }
-
- /// Gets or sets time zone name.
- [DataMember(Name = nameof(TimezoneName), IsRequired = false, EmitDefaultValue = false)]
- public string TimezoneName { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInvitation.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInvitation.cs
deleted file mode 100644
index d38dc85e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationInvitation.cs
+++ /dev/null
@@ -1,174 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it
-namespace HR.TA.TalentEngagementService.Data.Candidates.DocumentDB
-{
- using System;
- using System.Collections.Generic;
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
- using HR.TA.Common.TalentAttract.Contract;
- using HR.TA.TalentEntities.Enum;
-
- /// Job Application Invitation
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class JobApplicationInvitation
- {
- /// Gets or sets the id.
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- /// Gets or sets the invitation token.
- [DataMember(Name = nameof(InvitationToken))]
- public InvitationToken InvitationToken { get; set; }
-
- /// Gets or sets the object id.
- [DataMember(Name = nameof(ObjectID))]
- public string ObjectID { get; set; }
-
- /// Gets or sets the identity provider.
- [DataMember(Name = nameof(IdentityProvider))]
- public string IdentityProvider { get; set; }
-
- /// Gets or sets the identity provider.
- [DataMember(Name = nameof(IdentityProviderUserName))]
- public string IdentityProviderUserName { get; set; }
-
- /// Gets or sets the application data.
- [DataMember(Name = nameof(ApplicationData))]
- public List ApplicationData { get; set; }
- }
-
- /// Application Data
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class ApplicationData
- {
- /// Gets or sets the id.
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- /// Gets or sets the tenant id.
- [DataMember(Name = nameof(TenantID))]
- public string TenantID { get; set; }
-
- /// Gets or sets the environment id.
- [DataMember(Name = nameof(EnvironmentID))]
- public string EnvironmentID { get; set; }
-
- /// Gets or sets the job application id.
- [DataMember(Name = nameof(JobApplicationID))]
- public string JobApplicationID { get; set; }
-
- /// Gets or sets the job opening id.
- [DataMember(Name = nameof(JobOpeningID), EmitDefaultValue = false)]
- public string JobOpeningID { get; set; }
-
- /// Gets or sets the application name.
- [DataMember(Name = nameof(ApplicationName))]
- public string ApplicationName { get; set; }
-
- /// Gets or sets the display data.
- [DataMember(Name = nameof(DisplayData))]
- public DisplayData DisplayData { get; set; }
- }
-
- /// Display Data
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class DisplayData
- {
- /// Gets or sets the id.
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- /// Gets or sets the job title.
- [DataMember(Name = nameof(JobTitle))]
- public string JobTitle { get; set; }
-
- /// Gets or sets the job location.
- [DataMember(Name = nameof(JobLocation))]
- public string JobLocation { get; set; }
-
- /// Gets or sets the company Name.
- [DataMember(Name = nameof(CompanyName))]
- public string CompanyName { get; set; }
-
- /// Gets or sets the job application status.
- [DataMember(Name = nameof(JobApplicationStatus))]
- public string JobApplicationStatus { get; set; }
-
- /// Gets or sets the job application days since.
- [DataMember(Name = nameof(JobApplicationDate))]
- public DateTime JobApplicationDate { get; set; }
-
- /// Gets or sets the job description.
- [DataMember(IsRequired = false, Name = nameof(JobDescription))]
- public string JobDescription { get; set; }
-
- /// Gets or sets the job description.
- [DataMember(IsRequired = false, Name = nameof(JobPostLink))]
- public IList JobPostLink { get; set; }
-
- /// Gets or sets the current job stage.
- [DataMember(IsRequired = false, Name = nameof(CurrentJobStage))]
- public JobStage CurrentJobStage { get; set; }
-
- /// Gets or sets current application stage.
- [DataMember(IsRequired = false, Name = nameof(CurrentApplicationStage))]
- public ApplicationStage CurrentApplicationStage { get; set; }
- }
-
- /// Display Data
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class CompanyDisplayData
- {
- /// Gets or sets the tenant id.
- [DataMember(Name = "tenantId")]
- public string TenantId { get; set; }
-
- /// Gets or sets the company Name.
- [DataMember(Name = nameof(CompanyName))]
- public string CompanyName { get; set; }
-
- /// Gets or sets the company Name.
- [DataMember(IsRequired = false, Name = nameof(CompanyAlias))]
- public string CompanyAlias { get; set; }
-
- /// Gets or sets the job application status.
- [DataMember(Name = nameof(CompanyLocation))]
- public string CompanyLocation { get; set; }
-
- [DataMember(IsRequired = false, Name = "ImageUrls")]
- public IList ImageUrls { get; set; }
-
- [DataMember(IsRequired = false, Name = nameof(AutoNumbers))]
- public IList AutoNumbers { get; set; }
-
- [DataMember(IsRequired = false, Name = nameof(Environments))]
- public List Environments { get; set; }
- }
-
- /// The invitation token.
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class InvitationToken
- {
- /// Gets or sets the id.
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- /// Gets or sets the value.
- [DataMember(Name = nameof(Value))]
- public string Value { get; set; }
-
- /// Gets or sets the expiry date time.
- [DataMember(Name = nameof(ExpiryDateTime))]
- public DateTime ExpiryDateTime { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationParticipantMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationParticipantMetadata.cs
deleted file mode 100644
index 47022ebe..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationParticipantMetadata.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The Job application stage data contract.
- ///
- [DataContract]
- public class JobApplicationParticipantMetadata
- {
- /// Gets or sets the list of allowed stages.
- [DataMember(Name = "stages")]
- public List Stages { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationRequest.cs
deleted file mode 100644
index 66c94586..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationRequest.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Job Application Request
- ///
- [DataContract]
- public class JobApplicationRequest
- {
- ///
- /// Gets or sets the collection of statuses
- ///
- [DataMember(Name = "applicationStatuses", IsRequired = false, EmitDefaultValue = false)]
- public IList ApplicationStatuses { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
-
- ///
- /// Gets or sets stage order
- ///
- [DataMember(Name = "stageOrder", IsRequired = false, EmitDefaultValue = false)]
- public int StageOrder { get; set; }
-
- ///
- /// Gets or sets a value indicating whether only prospect job applications are returned.
- ///
- [DataMember(Name = "prospectOnly", IsRequired = false, EmitDefaultValue = false)]
- public bool ProspectOnly { get; set; }
-
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStage.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStage.cs
deleted file mode 100644
index 23f19612..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStage.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The Job application stage data contract.
- ///
- [DataContract]
- public class JobApplicationStage
- {
- /// Gets or sets the stage.
- [DataMember(Name = "stage", IsRequired = false)]
- public JobStage Stage { get; set; }
-
- /// Gets or sets the order.
- [DataMember(Name = "order", IsRequired = false)]
- public long? Order { get; set; }
-
- /// Gets or sets the name.
- [DataMember(Name = "name", IsRequired = false)]
- public string Name { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStatusReasonPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStatusReasonPayload.cs
deleted file mode 100644
index f5188206..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplicationStatusReasonPayload.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The client data contract with the data to show the dashboard page.
- ///
- [DataContract]
- public class JobApplicationStatusReasonPayload
- {
- ///
- /// Gets or sets the job application status reason
- ///
- [DataMember(Name = "StatusReason", IsRequired = false)]
- public JobApplicationStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets the job application rejection reason
- ///
- [DataMember(Name = "RejectionReason", IsRequired = false)]
- public OptionSetValue RejectionReason { get; set; }
-
- ///
- /// Gets or sets the job application comment
- ///
- [DataMember(Name = "Comment", IsRequired = false)]
- public string Comment { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplications.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplications.cs
deleted file mode 100644
index eaa09b20..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApplications.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Job Applications
- ///
- [DataContract]
- public class JobApplications
- {
- ///
- /// Gets or sets the collection of applications
- ///
- [DataMember(Name = "applications", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Applications { get; set; }
-
- ///
- /// Gets or sets total application count
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
-
- ///
- /// Gets or sets Has Offer Applicant
- ///
- [DataMember(Name = "hasOfferApplicant", IsRequired = false, EmitDefaultValue = false)]
- public bool HasOfferApplicant { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalParticipant.cs
deleted file mode 100644
index 763695a9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalParticipant.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The hiring team member data contract.
- ///
- [DataContract]
- public class JobApprovalParticipant : Person
- {
- ///
- /// Gets or sets comment.
- ///
- [DataMember(Name = "comment", EmitDefaultValue = false, IsRequired = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets Job approval status.
- ///
- [DataMember(Name = "jobApprovalStatus", EmitDefaultValue = false, IsRequired = false)]
- public JobApprovalStatus? JobApprovalStatus { get; set; }
-
- ///
- /// Gets or sets User action.
- ///
- [DataMember(Name = "userAction", IsRequired = false, EmitDefaultValue = false)]
- public UserAction UserAction { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalPayload.cs
deleted file mode 100644
index 762b7b54..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalPayload.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The client data contract with the data to show the dashboard page.
- ///
- [DataContract]
- public class JobApprovalPayload
- {
- ///
- /// Gets or sets the job application status reason
- ///
- [DataMember(Name = "jobApprovalStatus", IsRequired = false, EmitDefaultValue = false)]
- public JobApprovalStatus JobApprovalStatus { get; set; }
-
- ///
- /// Gets or sets the job application comment
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcess.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcess.cs
deleted file mode 100644
index 120b9cf9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcess.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Job Approval Process.
- ///
- [DataContract]
- public class JobApprovalProcess
- {
- ///
- /// Gets or sets job approval process type.
- ///
- [DataMember(Name = "jobApprovalProcessType", IsRequired = false, EmitDefaultValue = false)]
- public JobApprovalProcessType JobApprovalProcessType { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcessType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcessType.cs
deleted file mode 100644
index b93a2771..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobApprovalProcessType.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum that tells about type of job approval process.
- ///
- [DataContract]
- public enum JobApprovalProcessType
- {
- ///
- /// None
- ///
- None = 0,
-
- ///
- /// Default
- ///
- Default = 1,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobAssessment.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobAssessment.cs
deleted file mode 100644
index a3d37eb2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobAssessment.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The job (opening) assessment data contract.
- ///
- [DataContract]
- public class JobAssessment
- {
- /// Gets or sets jobAssessmentID.
- [DataMember(Name = "jobAssessmentID", IsRequired = false)]
- public string JobAssessmentID { get; set; }
-
- /// Gets or sets packageID.
- [DataMember(Name = "packageID", IsRequired = false)]
- public string PackageID { get; set; }
-
- /// Gets or sets jobOpeningId.
- [DataMember(Name = "jobOpeningID", IsRequired = false)]
- public string JobOpeningID { get; set; }
-
- /// Gets or sets provider.
- [DataMember(Name = "provider", IsRequired = false)]
- public AssessmentProvider Provider { get; set; }
-
- /// Gets or sets provider key.
- [DataMember(Name = "providerKey", IsRequired = false)]
- public string ProviderKey { get; set; }
-
- ///
- /// Gets or sets the title.
- ///
- [DataMember(Name = "title", IsRequired = false)]
- public string Title { get; set; }
-
- ///
- /// Gets or sets the number of question.
- ///
- [DataMember(Name = "numberOfQuestions", IsRequired = false)]
- public int NumberOfQuestions { get; set; }
-
- ///
- /// Gets or sets the previewUrl.
- ///
- [DataMember(Name = "previewURL", IsRequired = false)]
- public string PreviewURL { get; set; }
-
- ///
- /// Gets or sets the assessment.
- ///
- [DataMember(Name = "assessment", IsRequired = false)]
- public ExternalAssessment Assessment { get; set; }
-
- ///
- /// Gets or sets IsRequired
- ///
- [DataMember(Name = "isRequired", IsRequired = false)]
- public JobOpeningAssessmentRequirementStatus IsRequired { get; set; }
-
- ///
- /// Gets or sets the job opening assessment's stage
- ///
- [DataMember(Name = "stage", IsRequired = false)]
- public JobStage Stage { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobClosing.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobClosing.cs
deleted file mode 100644
index f06cadd0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobClosing.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Contract for Job closing.
- ///
- [DataContract]
- public class JobClosing
- {
- ///
- /// Gets or sets Job opening status
- ///
- [DataMember(Name = "jobOpeningStatus")]
- public JobOpeningStatus JobOpeningStatus { get; set; }
-
- ///
- /// Gets or sets Job opening status reason
- ///
- [DataMember(Name = "jobOpeningStatusReason")]
- public JobOpeningStatusReason JobOpeningStatusReason { get; set; }
-
- ///
- /// Gets or sets Job opening external status
- ///
- [DataMember(Name = "jobOpeningExternalStatus", IsRequired = false)]
- public string JobOpeningExternalStatus { get; set; }
-
- ///
- /// Gets or sets comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets Job application Ids for offered accepted job applicant.
- ///
- [DataMember(Name = "offerAcceptedJobApplicationIds", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferAcceptedJobApplicationIds { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobConfiguration.cs
deleted file mode 100644
index 5324db3f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobConfiguration.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Configuration for Job.
- ///
- [DataContract]
- public class JobConfiguration
- {
- ///
- /// Gets or sets job approval process type.
- ///
- [DataMember(Name = "jobApprovalProcess", IsRequired = false, EmitDefaultValue = false)]
- public JobApprovalProcess JobApprovalProcess { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadata.cs
deleted file mode 100644
index 33e1ee6c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadata.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Job Metadata
- ///
- [DataContract]
- public class JobMetadata
- {
- ///
- /// Gets or sets the collection of jobs
- ///
- [DataMember(Name = "jobs", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable Jobs { get; set; }
-
- ///
- /// Gets or sets total job count
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
-
- ///
- /// Gets or sets continuation token for skip
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadataRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadataRequest.cs
deleted file mode 100644
index 932c3b1f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobMetadataRequest.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Job Metadata Request
- ///
- [DataContract]
- public class JobMetadataRequest
- {
- ///
- /// Gets or sets the collection of statuses
- ///
- [DataMember(Name = "jobStatuses", IsRequired = false, EmitDefaultValue = false)]
- public IList JobStatuses { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
-
- ///
- /// Gets or sets continuation token for skip
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOffer.cs
deleted file mode 100644
index 38af85f2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOffer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- /// The job offer view for candidate app.
- [DataContract]
- public class JobOffer
- {
- /// Gets or sets url.
- [DataMember(Name = "url", IsRequired = true)]
- public string Url { get; set; }
-
- /// Gets or sets the status.
- [DataMember(Name = "status", IsRequired = false)]
- public JobOfferStatus Status { get; set; }
-
- /// Gets or sets the job offer status reason.
- [DataMember(Name = "jobOfferStatusReason", IsRequired = false)]
- public Provisioning.Entities.XrmEntities.Optionset.JobOfferStatusReason? JobOfferStatusReason { get; set; }
-
- /// Gets or sets the status.
- [DataMember(Name = "offerDate", IsRequired = false)]
- public DateTime? OfferDate { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferHiringTeamView.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferHiringTeamView.cs
deleted file mode 100644
index 5db6203b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferHiringTeamView.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Runtime.Serialization;
-
- /// The job offer view for attract app, used by recruiter and hiring manager.
- [DataContract]
- public class JobOfferHiringTeamView
- {
- /// Gets or sets job application ID.
- [DataMember(Name = "jobApplicationID", IsRequired = false)]
- public string JobApplicationID { get; set; }
-
- /// Gets or sets job offer url that links to offer management app.
- [DataMember(Name = "jobOfferID", IsRequired = false)]
- public string JobOfferID { get; set; }
-
- /// Gets or sets the job offer status.
- [DataMember(Name = "jobOfferStatus", IsRequired = false)]
- public JobOfferStatus? JobOfferStatus { get; set; }
-
- /// Gets or sets the job offer status reason.
- [DataMember(Name = "jobOfferStatusReason", IsRequired = false)]
- public Provisioning.Entities.XrmEntities.Optionset.JobOfferStatusReason? JobOfferStatusReason { get; set; }
-
- /// Gets or sets the job offer publish date.
- [DataMember(Name = "jobOfferPublishDate", IsRequired = false)]
- public DateTime? JobOfferPublishDate { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferStatus.cs
deleted file mode 100644
index cf5638a4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOfferStatus.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- /// The job offer status for candidate app.
- [DataContract]
- public enum JobOfferStatus
- {
- /// Active job offer.
- Active = 0,
-
- /// Inactive job offer.
- Inactive = 1,
-
- /// The pending.
- Pending = 2,
-
- /// The viewed.
- Viewed = 3,
-
- /// The accepted.
- Accepted = 4,
-
- /// The decline.
- Decline = 5
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPosition.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPosition.cs
deleted file mode 100644
index 0ad9658c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPosition.cs
+++ /dev/null
@@ -1,171 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
- using HR.TA.TalentEntities.Common;
- using HR.TA.TalentEntities.Enum;
- using HR.TA.TalentEntities.Enum.Common;
-
- ///
- /// The job position data contract.
- ///
- [DataContract]
- public class JobOpeningPosition : TalentBaseContract
- {
- ///
- /// Gets or sets JobOpeningPositionId.
- ///
- [DataMember(Name = "jobOpeningPositionId", IsRequired = false, EmitDefaultValue = false)]
- public string JobOpeningPositionId { get; set; }
-
- ///
- /// Gets or sets JobId.
- ///
- [DataMember(Name = "jobId", IsRequired = false, EmitDefaultValue = false)]
- public string JobId { get; set; }
-
- ///
- /// Gets or sets a list of JobId.
- ///
- [DataMember(Name = "jobIds", IsRequired = false, EmitDefaultValue = false)]
- public IList JobIds { get; set; }
-
- ///
- /// Gets or sets Title.
- ///
- [DataMember(Name = "title", IsRequired = false, EmitDefaultValue = false)]
- public string Title { get; set; }
-
- ///
- /// Gets or sets User action.
- ///
- [DataMember(Name = "userAction", IsRequired = false, EmitDefaultValue = false)]
- public UserAction UserAction { get; set; }
-
- ///
- /// Gets or sets CareerLevel.
- ///
- [DataMember(Name = "careerLevel", IsRequired = false, EmitDefaultValue = false)]
- public string CareerLevel { get; set; }
-
- ///
- /// Gets or sets CostCenter.
- ///
- [DataMember(Name = "costCenter", IsRequired = false, EmitDefaultValue = false)]
- public string CostCenter { get; set; }
-
- ///
- /// Gets or sets SourcePositionNumber.
- ///
- [DataMember(Name = "sourcePositionNumber", IsRequired = false, EmitDefaultValue = false)]
- public string SourcePositionNumber { get; set; }
-
- ///
- /// Gets or sets RoleType.
- ///
- [DataMember(Name = "roleType", IsRequired = false, EmitDefaultValue = false)]
- public string RoleType { get; set; }
-
- ///
- /// Gets or sets IncentivePlan.
- ///
- [DataMember(Name = "incentivePlan", IsRequired = false, EmitDefaultValue = false)]
- public string IncentivePlan { get; set; }
-
- ///
- /// Gets or sets JobGrade.
- ///
- [DataMember(Name = "jobGrade", IsRequired = false, EmitDefaultValue = false)]
- public string JobGrade { get; set; }
-
- ///
- /// Gets or sets RemunerationPeriod.
- ///
- [DataMember(Name = "remunerationPeriod", IsRequired = false, EmitDefaultValue = false)]
- public RenumerationPeriod? RemunerationPeriod { get; set; }
-
- ///
- /// Gets or sets MaximumRemuneration.
- ///
- [DataMember(Name = "maximumRemuneration", IsRequired = false, EmitDefaultValue = false)]
- public long? MaximumRemuneration { get; set; }
-
- ///
- /// Gets or sets MinimumRemuneration.
- ///
- [DataMember(Name = "minimumRemuneration", IsRequired = false, EmitDefaultValue = false)]
- public long? MinimumRemuneration { get; set; }
-
- ///
- /// Gets or sets CurrencyCode.
- ///
- [DataMember(Name = "currencyCode", IsRequired = false, EmitDefaultValue = false)]
- public CurrencyCode? CurrencyCode { get; set; }
-
- ///
- /// Gets or sets Department.
- ///
- [DataMember(Name = "department", IsRequired = false, EmitDefaultValue = false)]
- public string Department { get; set; }
-
- ///
- /// Gets or sets PositionType.
- ///
- [DataMember(Name = "positionType", IsRequired = false, EmitDefaultValue = false)]
- public JobOpeningPositionType? PositionType { get; set; }
-
- ///
- /// Gets or sets JobType.
- ///
- [DataMember(Name = "jobType", IsRequired = false, EmitDefaultValue = false)]
- public string JobType { get; set; }
-
- ///
- /// Gets or sets JobFunction.
- ///
- [DataMember(Name = "jobFunction", IsRequired = false, EmitDefaultValue = false)]
- public string JobFunction { get; set; }
-
- ///
- /// Gets or sets job Id collection, which has reference to this job position
- ///
- [DataMember(Name = "referenceJobOpeningIds", IsRequired = false, EmitDefaultValue = false)]
- public IList ReferenceJobOpeningIds { get; set; }
-
- ///
- /// Gets or sets application Id collection, which has reference to this job position
- ///
- [DataMember(Name = "referenceApplicationIds", IsRequired = false, EmitDefaultValue = false)]
- public IList ReferenceApplicationIds { get; set; }
-
- ///
- /// Gets or sets ExtendedAttributes.
- ///
- [DataMember(Name = "extendedAttributes", IsRequired = false, EmitDefaultValue = false)]
- public Dictionary ExtendedAttributes { get; set; }
-
- ///
- /// Gets or sets ReportsTo.
- ///
- [DataMember(Name = "reportsTo", IsRequired = false, EmitDefaultValue = false)]
- public Worker ReportsTo { get; set; }
-
- ///
- /// Gets or sets status of the job position.
- ///
- [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
- public JobPositionStatus Status { get; set; }
-
- ///
- /// Gets or sets status reason of the job position.
- ///
- [DataMember(Name = "statusReason", IsRequired = false, EmitDefaultValue = false)]
- public JobPositionStatusReason StatusReason { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionMetadata.cs
deleted file mode 100644
index 73c8a86d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionMetadata.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Job opening position metadata
- ///
- [DataContract]
- public class JobOpeningPositionMetadata
- {
- ///
- /// Gets or sets the collection of job opening positions
- ///
- [DataMember(Name = "jobOpeningPositions", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable JobOpeningPositions { get; set; }
-
- ///
- /// Gets or sets total job opening position count
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
-
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
-
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionRequest.cs
deleted file mode 100644
index c8d83b31..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningPositionRequest.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Job Opening Position Request
- ///
- [DataContract]
- public class JobOpeningPositionRequest
- {
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "continuationToken", IsRequired = false, EmitDefaultValue = false)]
- public string ContinuationToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningStageActivityConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningStageActivityConfiguration.cs
deleted file mode 100644
index 589610fe..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningStageActivityConfiguration.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Configuration for Job Opening Stage Activity.
- ///
- [DataContract]
- public class JobOpeningStageActivityConfiguration
- {
- ///
- /// Gets or sets forCandidate value
- ///
- [DataMember(Name = "forCandidate", IsRequired = false, EmitDefaultValue = false)]
- public bool ForCandidate { get; set; }
-
- ///
- /// Gets or sets allow adding participants value
- ///
- [DataMember(Name = "allowAddingParticipants", IsRequired = false, EmitDefaultValue = false)]
- public bool AllowAddingParticipants { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningTemplateParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningTemplateParticipant.cs
deleted file mode 100644
index 33aff48f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobOpeningTemplateParticipant.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The job data contract.
- ///
- [DataContract]
- public class JobOpeningTemplateParticipant : AADUser
- {
- /// Gets or sets user object id.
- [DataMember(Name = "userObjectId", IsRequired = false)]
- public string UserObjectId { get; set; }
-
- /// Gets or sets group object id.
- [DataMember(Name = "groupObjectId", IsRequired = false)]
- public string GroupObjectId { get; set; }
-
- /// Gets or sets tenant object id.
- [DataMember(Name = "tenantObjectId", IsRequired = false)]
- public string TenantObjectId { get; set; }
-
- /// Gets or sets default flag.
- [DataMember(Name = "isDefault", IsRequired = false)]
- public bool IsDefault { get; set; }
-
- /// Gets or sets default flag.
- [DataMember(Name = "canEdit", IsRequired = false)]
- public bool CanEdit { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPermission.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPermission.cs
deleted file mode 100644
index 3948a77c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPermission.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Job level permission
- /// It defines restricted permission on action which is in job scope but outside application.
- ///
- [DataContract]
- public enum JobPermission
- {
- ///
- /// Update Job Details
- ///
- UpdateJobDetails,
-
- ///
- /// Update Job Process
- ///
- UpdateJobProcess,
-
- ///
- /// Activate Job
- ///
- ActivateJob,
-
- ///
- /// Create Job Approval
- ///
- CreateJobApproval,
-
- ///
- /// Create Job Posting
- ///
- CreateJobPosting,
-
- ///
- /// Close Job
- ///
- CloseJob,
-
- ///
- /// Create Applicant
- ///
- CreateApplicant,
-
- ///
- /// Remove job
- ///
- DeleteJob,
-
- ///
- /// Create hiring team
- ///
- CreateHiringTeam
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPost.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPost.cs
deleted file mode 100644
index 3f32b997..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPost.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-// Note: This namespace needs to stay the same since the docdb collection name depends on it
-namespace HR.TA.Common.Attract.Data.DocumentDB
-{
- using System.Runtime.Serialization;
- using JobPostContract = HR.TA.TalentJobPosting.Contract;
-
- ///
- /// The job post class
- ///
- [DataContract(Name = "attractJobPost")]
- public class JobPost : JobPostContract.JobPost
- {
- /// Gets or sets company.
- [DataMember(Name = "company", IsRequired = false)]
- public string Company { get; set; }
-
- /// Gets or sets company id.
- [DataMember(Name = "companyId", IsRequired = false)]
- public string CompanyId { get; set; }
-
- /// Gets or sets supplier.
- [DataMember(Name = "supplier", IsRequired = false)]
- public string Supplier { get; set; }
-
- /// Gets or sets countryCode.
- [DataMember(Name = "countryCode", IsRequired = false)]
- public string CountryCode { get; set; }
-
- /// Gets or sets postalCode.
- [DataMember(Name = "postalCode", IsRequired = false)]
- public string PostalCode { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPostApplicationProfile.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPostApplicationProfile.cs
deleted file mode 100644
index 1747e75d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobPostApplicationProfile.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.TalentJobPosting.Contract;
-
- /// The job post application with profile.
- [DataContract]
- public class JobPostApplicationProfile // TODO : JobPostApplication
- {
- /// Gets or sets the applicant profile.
- [DataMember(Name = "applicantProfile", IsRequired = false)]
- public ApplicantProfile ApplicantProfile { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobRoles.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobRoles.cs
deleted file mode 100644
index 8c4a52b0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobRoles.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Contract class with the list of job roles for the user.
- ///
- [DataContract]
- public class JobRoles
- {
- ///
- /// Gets or sets the list of job participant roles
- ///
- [DataMember(Name = "jobParticipantRoles", IsRequired = true, EmitDefaultValue = false)]
- public IList JobParticipantRoles { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobStageTemplate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobStageTemplate.cs
deleted file mode 100644
index f9376b66..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobStageTemplate.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
-
- ///
- /// The job data contract.
- ///
- [DataContract]
- public class JobStageTemplate : TalentBaseContract
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets name.
- [DataMember(Name = "name", IsRequired = false)]
- public string Name { get; set; }
-
- /// Gets or sets displayName.
- [DataMember(Name = "displayName", IsRequired = false)]
- public string DisplayName { get; set; }
-
- /// Gets or sets a value of ordinal.
- [DataMember(Name = "ordinal", IsRequired = false)]
- public long Ordinal { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobTemplate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobTemplate.cs
deleted file mode 100644
index 272faa66..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/JobTemplate.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.Contracts;
-
- ///
- /// The job data contract.
- ///
- [DataContract]
- public class JobTemplate : TalentBaseContract
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- /// Gets or sets name.
- [DataMember(Name = "name", IsRequired = false)]
- public string Name { get; set; }
-
- /// Gets or sets displayName.
- [DataMember(Name = "displayName", IsRequired = false)]
- public string DisplayName { get; set; }
-
- /// Gets or sets valid from.
- [DataMember(Name = "validFrom", IsRequired = false)]
- public DateTime ValidFrom { get; set; }
-
- /// Gets or sets valid to.
- [DataMember(Name = "validTo", IsRequired = false)]
- public DateTime ValidTo { get; set; }
-
- /// Gets or sets a value indicating whether job template is active.
- [DataMember(Name = "isActive", IsRequired = false)]
- public bool IsActive { get; set; }
-
- /// Gets or sets a value indicating whether job template is default.
- [DataMember(Name = "isDefault", IsRequired = false)]
- public bool IsDefault { get; set; }
-
- /// Gets or sets template reference.
- [DataMember(Name = "templateReference", IsRequired = false)]
- public string TemplateReference { get; set; }
-
- /// Gets or sets stageTemplates.
- [DataMember(Name = "stageTemplates", IsRequired = false)]
- public IList StageTemplates { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentResultPayload.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentResultPayload.cs
deleted file mode 100644
index 0056897c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentResultPayload.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// The assessment result as received from the Koru external assessment provider.
- ///
- [DataContract]
- public class KoruAssessmentResultPayload
- {
- [DataMember(Name = "extraData", IsRequired = false, EmitDefaultValue = false)]
- public object ExtraData { get; set; }
-
- [DataMember(Name = "webhookUrl", IsRequired = false, EmitDefaultValue = false)]
- public string WebhookUrl { get; set; }
-
- [DataMember(Name = "processed", IsRequired = false, EmitDefaultValue = false)]
- public bool Processed { get; set; }
-
- [DataMember(Name = "tenantId", IsRequired = false, EmitDefaultValue = false)]
- public string TenantId { get; set; }
-
- [DataMember(Name = "scores", IsRequired = false, EmitDefaultValue = false)]
- public string Scores { get; set; }
-
- [DataMember(Name = "candidate", IsRequired = false, EmitDefaultValue = false)]
- public string Candidate { get; set; }
-
- [DataMember(Name = "inProgress", IsRequired = false, EmitDefaultValue = false)]
- public bool InProgress { get; set; }
-
- [DataMember(Name = "scored", IsRequired = false, EmitDefaultValue = false)]
- public bool Scored { get; set; }
-
- [DataMember(Name = "uuid", IsRequired = false, EmitDefaultValue = false)]
- public string Uuid { get; set; }
-
- [DataMember(Name = "initialized", IsRequired = false, EmitDefaultValue = false)]
- public bool Initialized { get; set; }
-
- [DataMember(Name = "projectUuid", IsRequired = false, EmitDefaultValue = false)]
- public string ProjectUuid { get; set; }
-
- [DataMember(Name = "profileUrl", IsRequired = false, EmitDefaultValue = false)]
- public string ProfileUrl { get; set; }
- }
-
- ///
- /// The assessment result data.
- ///
- [DataContract]
- public class KoruAssessmentResultData
- {
- [DataMember(Name = "curiosity", IsRequired = false, EmitDefaultValue = false)]
- public double Curiosity { get; set; }
-
- [DataMember(Name = "grit", IsRequired = false, EmitDefaultValue = false)]
- public double Grit { get; set; }
-
- [DataMember(Name = "impact", IsRequired = false, EmitDefaultValue = false)]
- public double Impact { get; set; }
-
- [DataMember(Name = "ownership", IsRequired = false, EmitDefaultValue = false)]
- public double Ownership { get; set; }
-
- [DataMember(Name = "polish", IsRequired = false, EmitDefaultValue = false)]
- public double Polish { get; set; }
-
- [DataMember(Name = "rigor", IsRequired = false, EmitDefaultValue = false)]
- public double Rigor { get; set; }
-
- [DataMember(Name = "teamwork", IsRequired = false, EmitDefaultValue = false)]
- public double Teamwork { get; set; }
-
- [DataMember(Name = "profileUrl", IsRequired = false, EmitDefaultValue = false)]
- public string ProfileUrl { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentStatus.cs
deleted file mode 100644
index c209b568..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/KoruAssessmentStatus.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum about the Assessment status
- ///
- [DataContract]
- public enum KoruAssessmentStatus
- {
- ///
- /// Candidate added to the assessment
- ///
- Added = 1,
-
- ///
- /// Assessment sent
- ///
- Sent,
-
- ///
- /// Candidate started the assessment
- ///
- Started,
-
- ///
- /// Candidate submit the assessment
- ///
- Submitted,
-
- ///
- /// The assessment is completed.
- ///
- Done
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/LoginHint.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/LoginHint.cs
deleted file mode 100644
index bdcd519d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/LoginHint.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-using System.Runtime.Serialization;
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- ///
- /// The information required for a login hint.
- ///
- [DataContract]
- public class LoginHint
- {
- [DataMember(Name = "obfuscatedUsername", IsRequired = false, EmitDefaultValue = false)]
- public string ObfuscatedUsername { get; set; }
-
- [DataMember(Name = "identityProvider", IsRequired = false, EmitDefaultValue = false)]
- public string IdentityProvider { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/OAuthToken.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/OAuthToken.cs
deleted file mode 100644
index e9de1e5e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/OAuthToken.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.TalentAttract.Contract
-{
- using System.Runtime.Serialization;
-
- /// OAUTH token information
- [DataContract]
- public class OAuthToken
- {
- ///
- /// Gets or sets the token type.
- ///
- [DataMember(Name = "token_type", IsRequired = true)]
- public string TokenType { get; set; }
-
- ///
- /// Gets or sets expiration time in seconds
- ///
- [DataMember(Name = "expires_in", IsRequired = true)]
- public int ExpirationTime { get; set; }
-
- ///
- /// Gets or sets assessment provider OAUTH authentication token.
- ///
- [DataMember(Name = "access_token", IsRequired = true)]
- public string AuthToken { get; set; }
-
- ///
- /// Gets or sets Id token.
- ///
- [DataMember(Name = "id_token", IsRequired = true)]
- public string IdToken { get; set; }
-
- ///
- /// Gets or sets assessment provider refresh token.
- ///
- [DataMember(Name = "refresh_token", IsRequired = true)]
- public string RefreshToken { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationActivityType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationActivityType.cs
deleted file mode 100644
index 479f290d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationActivityType.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- ///
- /// Type of the job application activity.
- ///
- public enum ApplicationActivityType
- {
- ///
- /// Interview
- ///
- Interview = 0,
-
- ///
- /// Schedule
- ///
- Schedule = 1,
-
- ///
- /// Application
- ///
- Application = 2,
-
- ///
- /// Feedback
- ///
- Feedback = 3,
-
- ///
- /// Offer
- ///
- Offer = 4,
-
- ///
- /// Assessment
- ///
- Assessment = 5,
-
- ///
- /// ScheduleRequest
- ///
- ScheduleRequest = 6,
-
- ///
- /// Prospect
- ///
- Prospect = 7,
-
- ///
- /// ScheduleCortana
- ///
- ScheduleCortana = 8,
-
- ///
- /// PowerApps
- ///
- PowerApps = 9,
-
- ///
- /// YouTube
- ///
- YouTube = 10,
-
- ///
- /// Forms
- ///
- Forms = 11,
-
- ///
- /// IFrame
- ///
- IFrame = 12,
-
- ///
- /// EEO
- ///
- EEO = 13
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationNoteType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationNoteType.cs
deleted file mode 100644
index 614f2eaf..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/ApplicationNoteType.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Application Note type enum
- ///
- [DataContract]
- public enum ApplicationNoteType
- {
- ///
- /// Application Note
- ///
- Application,
-
- ///
- /// Offer Note
- ///
- Offer
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/CandidateAttachmentAllowedDocType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/CandidateAttachmentAllowedDocType.cs
deleted file mode 100644
index ea5d4c89..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/CandidateAttachmentAllowedDocType.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- ///
- /// Candidate attachment allowed doc types
- ///
- public enum CandidateAttachmentAllowedDocType
- {
- ///
- /// Doc
- ///
- Doc,
-
- ///
- /// DocX
- ///
- DocX,
-
- ///
- /// Pdf
- ///
- Pdf,
-
- ///
- /// Jpg
- ///
- Jpg
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardFilterBy.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardFilterBy.cs
deleted file mode 100644
index c637d180..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardFilterBy.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Dashboard Sort By
- ///
- [DataContract]
- public enum DashboardFilterBy
- {
- ///
- /// Name
- ///
- Active,
-
- ///
- /// Draft
- ///
- Draft,
-
- ///
- /// Archived
- ///
- Archived
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardSortedBy.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardSortedBy.cs
deleted file mode 100644
index 8375f1a0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/DashboardSortedBy.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Dashboard Sort By
- ///
- [DataContract]
- public enum DashboardSortedBy
- {
- ///
- /// Name
- ///
- Name,
-
- ///
- /// Modified date
- ///
- ModifiedDate
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/FeedbackAction.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/FeedbackAction.cs
deleted file mode 100644
index cb6f03c4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/FeedbackAction.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for feedback state
- ///
- [DataContract]
- public enum FeedbackAction
- {
- ///
- /// Save feedback
- ///
- Save,
-
- ///
- /// Submit feedback
- ///
- Submit
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactDocumentType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactDocumentType.cs
deleted file mode 100644
index ec9a5353..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactDocumentType.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for offer artifact document type
- ///
- [DataContract]
- public enum OfferArtifactDocumentType
- {
- ///
- /// Doc
- ///
- Doc,
-
- ///
- /// DocX
- ///
- DocX,
-
- ///
- /// Pdf
- ///
- Pdf,
-
- ///
- /// Html
- ///
- Html,
-
- ///
- /// Jpg
- ///
- Jpg,
-
- ///
- /// XlsX
- ///
- XlsX,
-
- ///
- /// PptX
- ///
- PptX,
-
- ///
- /// Jpeg
- ///
- Jpeg,
-
- ///
- /// Png
- ///
- Png,
-
- ///
- /// Txt
- ///
- Txt
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactType.cs
deleted file mode 100644
index 3e620660..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactType.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for OfferArtifactType
- ///
- [DataContract]
- public enum OfferArtifactType
- {
- ///
- /// Offer Letter
- ///
- OfferLetter,
-
- ///
- /// Other Document
- ///
- OtherDocument,
-
- ///
- /// Offer Letter in DocX format
- ///
- OfferLetterDocX,
-
- ///
- /// Offer Tamplate Document
- ///
- OfferTemplate
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactUploadedBy.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactUploadedBy.cs
deleted file mode 100644
index 6a05048e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferArtifactUploadedBy.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Offer Artifact Uploaded By
- ///
- [DataContract]
- public enum OfferArtifactUploadedBy
- {
- ///
- /// OfferManager
- ///
- OfferManager,
-
- ///
- /// Candidate
- ///
- Candidate
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferAuthorEditMode.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferAuthorEditMode.cs
deleted file mode 100644
index 16755924..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferAuthorEditMode.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Offer Author Edit Mode
- ///
- [DataContract]
- public enum OfferAuthorEditMode
- {
- /// Edit mode
- Edit,
-
- /// ReadOnly mode
- ReadOnly
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferDeclineReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferDeclineReason.cs
deleted file mode 100644
index 73572472..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferDeclineReason.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer decline reason
- ///
- [DataContract]
- public enum OfferDeclineReason
- {
- ///
- /// Compensation Package
- ///
- CompensationPackage,
-
- ///
- /// Not Good Culture Fit
- ///
- NotGoodCultureFit,
-
- ///
- /// Job Title
- ///
- JobTitle,
-
- ///
- /// Relocation
- ///
- Relocation,
-
- ///
- /// Withdraw Interest
- ///
- WithdrawInterest,
-
- ///
- /// Accepted Another Offer
- ///
- AcceptedAnotherOffer,
-
- ///
- /// Accepted Another Offer With Your Company
- ///
- AcceptedAnotherOfferWithYourCompany,
-
- ///
- /// Other
- ///
- Other
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferNonStandardReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferNonStandardReason.cs
deleted file mode 100644
index 6020357a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferNonStandardReason.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Non Standard Offer Reasons
- ///
- [DataContract]
- public enum OfferNonStandardReason
- {
- ///
- /// Salary negotiation
- ///
- SalaryNegotiation,
-
- ///
- /// Benefits negotiation
- ///
- BenefitsNegotiation,
-
- ///
- /// Location negotiation
- ///
- LocationNegotiation,
-
- ///
- /// Candidate information
- ///
- CandidateInformation,
-
- ///
- /// Job information
- ///
- JobInformation,
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantRole.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantRole.cs
deleted file mode 100644
index 21ad4128..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantRole.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Participant Role
- ///
- [DataContract]
- public enum OfferParticipantRole
- {
- ///
- /// Approver
- ///
- Approver,
-
- ///
- /// Fyi
- ///
- Fyi,
-
- ///
- /// Owner
- ///
- Owner,
-
- ///
- /// CoAuthor
- ///
- CoAuthor
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatus.cs
deleted file mode 100644
index b4678668..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatus.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Participation Status
- ///
- [DataContract]
- public enum OfferParticipantStatus
- {
- ///
- /// NotStarted
- ///
- NotStarted,
-
- ///
- /// Approved
- ///
- Approved,
-
- ///
- /// Sendback
- ///
- Sendback,
-
- ///
- /// SentForReview
- ///
- SentForReview,
-
- ///
- /// WaitingForReview
- ///
- WaitingForReview,
-
- ///
- /// Skipped
- ///
- Skipped
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatusReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatusReason.cs
deleted file mode 100644
index 30d8ece3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferParticipantStatusReason.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Participation Status Reason
- ///
- [DataContract]
- public enum OfferParticipantStatusReason
- {
- ///
- /// Not started
- ///
- NotStarted,
-
- ///
- /// Approved
- ///
- Approved,
-
- ///
- /// Sendback
- ///
- Sendback,
-
- ///
- /// Send for review
- ///
- SentForReview,
-
- ///
- /// WaitingForReview
- ///
- WaitingForReview,
-
- ///
- /// Skipped
- ///
- Skipped
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatus.cs
deleted file mode 100644
index d3c2e25d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatus.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Status
- ///
- [DataContract]
- public enum OfferStatus
- {
- ///
- /// Active
- ///
- Active,
-
- ///
- /// Inactive
- ///
- Inactive
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatusReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatusReason.cs
deleted file mode 100644
index f3207602..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferStatusReason.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Status Reason
- ///
- [DataContract]
- public enum OfferStatusReason
- {
- ///
- /// New
- ///
- New,
-
- ///
- /// Draft
- ///
- Draft,
-
- ///
- /// Review
- ///
- Review,
-
- ///
- /// Approved
- ///
- Approved,
-
- ///
- /// Published
- ///
- Published,
-
- ///
- /// Accepted
- ///
- Accepted,
-
- ///
- /// Withdrawn with Candidate Dispositioned reason
- ///
- WithdrawnCandidateDispositioned,
-
- ///
- /// Need Revision
- ///
- NeedRevision,
-
- ///
- /// Withdrawn with Other reason
- ///
- WithdrawnOther,
-
- ///
- /// candidate declined
- ///
- Declined,
-
- ///
- /// Closed
- ///
- Closed,
-
- ///
- /// Expired
- ///
- Expired
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferSyncbackAction.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferSyncbackAction.cs
deleted file mode 100644
index 5cd68da1..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferSyncbackAction.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Status
- ///
- [DataContract]
- public enum OfferSyncbackAction
- {
- ///
- /// Create
- ///
- Create,
-
- ///
- /// Update
- ///
- Update,
-
- ///
- /// Delete
- ///
- Delete
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatus.cs
deleted file mode 100644
index 15160d4f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatus.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Template Package Status
- ///
- [DataContract]
- public enum OfferTemplatePackageStatus
- {
- ///
- /// Active
- ///
- Active,
-
- ///
- /// Inactive
- ///
- Inactive
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatusReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatusReason.cs
deleted file mode 100644
index 4d544e90..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplatePackageStatusReason.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Template Status Reason
- ///
- [DataContract]
- public enum OfferTemplatePackageStatusReason
- {
- ///
- /// Draft
- ///
- Draft,
-
- ///
- /// Published
- ///
- Published,
-
- ///
- /// Versioned
- ///
- Versioned
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRole.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRole.cs
deleted file mode 100644
index 6867601b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRole.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Template Role
- ///
- [DataContract]
- public enum OfferTemplateRole
- {
- ///
- /// TemplateManager
- ///
- TemplateManager,
-
- ///
- /// TemplateViewer
- ///
- TemplateViewer
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRulesetFieldType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRulesetFieldType.cs
deleted file mode 100644
index 9787104f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateRulesetFieldType.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Data type of the ruleset
- ///
- [DataContract]
- public enum OfferTemplateRulesetFieldType
- {
- ///
- /// Free Text
- ///
- FreeText,
-
- ///
- /// Numeric Range
- ///
- NumericRange,
-
- ///
- /// Clause Token
- ///
- Clause = 2,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatus.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatus.cs
deleted file mode 100644
index 899416f5..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatus.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Template Status
- ///
- [DataContract]
- public enum OfferTemplateStatus
- {
- ///
- /// Active
- ///
- Active,
-
- ///
- /// Archive
- ///
- Archive,
-
- ///
- /// Draft
- ///
- Draft,
-
- ///
- /// Inactive
- ///
- Inactive
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatusReason.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatusReason.cs
deleted file mode 100644
index 9f0cdbfe..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OfferTemplateStatusReason.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Enum for Offer Template Status Reason
- ///
- [DataContract]
- public enum OfferTemplateStatusReason
- {
- ///
- /// Active
- ///
- Active,
-
- ///
- /// Archive
- ///
- Archive,
-
- ///
- /// Draft
- ///
- Draft,
-
- ///
- /// Inactive
- ///
- Inactive
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OpeningParticipantRole.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OpeningParticipantRole.cs
deleted file mode 100644
index ffa638ac..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/OpeningParticipantRole.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- ///
- /// Job opening participant roles.
- ///
- public enum OpeningParticipantRole
- {
- ///
- /// HiringManager
- ///
- HiringManager = 0,
-
- ///
- /// Recruiter
- ///
- Recruiter = 1,
-
- ///
- /// Interviewer
- ///
- Interviewer = 2,
-
- ///
- /// Contributor
- ///
- Contributor = 3
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenDataType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenDataType.cs
deleted file mode 100644
index aa224561..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenDataType.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Token Data Type
- ///
- [DataContract]
- public enum TokenDataType
- {
- ///
- /// Free text
- ///
- FreeText = 0,
-
- ///
- /// Numeric Value Range
- ///
- NumericRange = 1,
-
- ///
- /// Clause Token
- ///
- Clause = 2,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenType.cs
deleted file mode 100644
index b06bdadd..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Enums/V1/TokenType.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Enums.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Token Type
- ///
- [DataContract]
- public enum TokenType
- {
- ///
- /// System Defined Tokens
- ///
- SystemToken = 0,
-
- ///
- /// User Defined Tokens
- ///
- PlaceholderToken = 1,
-
- ///
- /// Ruleset Token
- ///
- RulesetToken = 2,
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/BaseRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/BaseRequest.cs
deleted file mode 100644
index 8ee9f526..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/BaseRequest.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.BusinessLibrary.Requests
-{
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using HR.TA.Common.Base.Security;
- using HR.TA.ServicePlatform.Context;
-
- ///
- /// Base request
- ///
- public class BaseRequest
- {
- private HCMApplicationPrincipal principal = ServiceContext.Principal.TryGetCurrent();
-
- ///
- /// Gets or sets prinicpal Object
- ///
- public HCMApplicationPrincipal Principal
- {
- get
- {
- return this.principal;
- }
-
- set
- {
- this.principal = value;
- }
- }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/DeleteOfferArtifactRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/DeleteOfferArtifactRequest.cs
deleted file mode 100644
index 8159f93b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/DeleteOfferArtifactRequest.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.BusinessLibrary.Requests
-{
- using System.IO;
-
- ///
- /// Extend Offer Request
- ///
- public class DeleteOfferArtifactRequest : BaseRequest
- {
- ///
- /// Gets or sets Offer Id
- ///
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets Offer Artifact Id
- ///
- public string OfferArtifactId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/SendApprovalRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/SendApprovalRequest.cs
deleted file mode 100644
index d9022bbf..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Requests/SendApprovalRequest.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.BusinessLibrary.Requests
-{
- using HR.TA.Common.OfferManagement.Contracts.V1;
-
- ///
- /// Extend Offer Request
- ///
- public class SendApprovalRequest : BaseRequest
- {
- ///
- /// Gets or sets Offer ID
- ///
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets Comment
- ///
- public string Comment { get; set; }
-
- ///
- /// Gets or sets a value indicating whether to copy the mail to owner?
- ///
- public bool IsCopyToOwner { get; set; }
-
- ///
- /// Gets or sets a value of the email
- ///
- public Email EmailDetails { get; set; }
-
- ///
- /// Gets or sets NonStandardReason Text
- ///
- public string NonStandardReason { get; set; }
-
- ///
- /// Gets or sets the environment ID.
- ///
- public string EnvironmentId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Utils/DataConstants.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Utils/DataConstants.cs
deleted file mode 100644
index 66492755..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/Utils/DataConstants.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.Utils
-{
- ///
- /// Data constants
- ///
- public class DataConstants
- {
- ///
- /// CosmosDb Database Name
- ///
- public const string CosmosDbDatabaseName = "HCMDatabase";
-
- ///
- /// Template ruleset Collection Name
- ///
- public const string TemplateRulesetCollectionName = "TemplateRuleset";
-
- ///
- /// Template ruleset Collection Name
- ///
- public const string JobApplicationInvitationCollectionName = "Microsoft.Dynamics.HCM.TalentEngagementService.Data.Candidates.DocumentDB.JobApplicationInvitation";
-
- ///
- /// E-Sign Collection Name
- ///
- public const string ESignCollectionName = "ESignCollection";
-
- ///
- /// DocuSign Collection Name
- ///
- public const string DocuSignCollectionName = "DocuSignCollection";
-
- ///
- /// User Settings Collection Name
- ///
- public const string UserSettingsCollectionName = "Microsoft.Dynamics.HCM.OfferManagementService.UserSettings";
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AcceptOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AcceptOffer.cs
deleted file mode 100644
index 9249c9cd..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AcceptOffer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- /// The project artifact.
- [DataContract]
- public class AcceptOffer
- {
- /// Gets or sets the Candidate Name.
- [DataMember(Name = "candidateName")]
- public string CandidateName { get; set; }
-
- /// Gets or sets a value indicating whether offer is accepted or not.
- [DataMember(Name = "offerAccepted")]
- public bool OfferAccepted { get; set; }
-
- /// Gets or sets the offer id.
- [DataMember(Name = "offerId")]
- public string OfferId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdminESignConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdminESignConfiguration.cs
deleted file mode 100644
index fd197e56..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdminESignConfiguration.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Document for Admin ESign configuration.
- ///
- [DataContract]
- public class AdminESignConfiguration
- {
- ///
- /// Document type.
- ///
- public const string DocumentType = "esign-admin";
-
- ///
- /// Gets or sets the Document ID.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the Document Type.
- ///
- [DataMember(Name = "esignTypeSelected", IsRequired = false)]
- public ESignType ESignTypeSelected { get; set; }
-
- ///
- /// Gets or sets the Tenant ID.
- ///
- [DataMember(Name = "tenantId", IsRequired = false)]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets environmentId for the tenant.
- ///
- [DataMember(Name = "environmentId", IsRequired = false)]
- public string EnvironmentId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeEnabledDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeEnabledDetails.cs
deleted file mode 100644
index 1b23d6b0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeEnabledDetails.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Adobe Sign Enable
- ///
- [DataContract]
- public class AdobeEnabledDetails
- {
- ///
- /// Gets or sets a value indicating whether is Adobe sign enabled
- ///
- [DataMember(Name = "isEnabled", IsRequired = true)]
- public bool IsEnabled { get; set; }
-
- ///
- /// Gets or sets client ID
- ///
- [DataMember(Name = "clientId", IsRequired = false)]
- public string ClientId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignAgreement.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignAgreement.cs
deleted file mode 100644
index ad1424d2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignAgreement.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Document for Adobe Sign Agreement.
- ///
- [DataContract]
- public class AdobeSignAgreement
- {
- ///
- /// Document type.
- ///
- public const string DocumentType = "adobesign-agreement";
-
- ///
- /// Gets or sets the Document ID.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the Document Type.
- ///
- [DataMember(Name = "dtype", IsRequired = false)]
- public string DType { get; set; }
-
- ///
- /// Gets or sets the Tenant ID.
- ///
- [DataMember(Name = "tenantId", IsRequired = false)]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets the artifact ID.
- ///
- [DataMember(Name = "artifactId", IsRequired = false)]
- public string ArtifactId { get; set; }
-
- ///
- /// Gets or sets the artifact Type.
- ///
- [DataMember(Name = "artifactType", IsRequired = false)]
- public string ArtifactType { get; set; }
-
- ///
- /// Gets or sets the agreement ID.
- ///
- [DataMember(Name = "agreementId", IsRequired = false)]
- public string AgreementId { get; set; }
-
- ///
- /// Gets or sets the Environment ID.
- ///
- [DataMember(Name = "environmentId", IsRequired = false)]
- public string EnvironmentId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignConfiguration.cs
deleted file mode 100644
index d8b973e0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignConfiguration.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Document for Adobe Sign configuration.
- ///
- [DataContract]
- public class AdobeSignConfiguration
- {
- ///
- /// Document type.
- ///
- public const string DocumentType = "adobesign-connection";
-
- ///
- /// Gets or sets the Document ID.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the Document Type.
- ///
- [DataMember(Name = "dtype", IsRequired = false)]
- public string DType { get; set; }
-
- ///
- /// Gets or sets the Tenant ID.
- ///
- [DataMember(Name = "tenantId", IsRequired = false)]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets the Environment ID.
- ///
- [DataMember(Name = "environmentId", IsRequired = false)]
- public string EnvironmentId { get; set; }
-
- ///
- /// Gets or sets the Adobe Sign API Application Client ID.
- ///
- [DataMember(Name = "clientId", IsRequired = false)]
- public string ClientId { get; set; }
-
- ///
- /// Gets or sets the Adobe Sign API Application Client Secret.
- ///
- [DataMember(Name = "clientSecret", IsRequired = false)]
- public string ClientSecret { get; set; }
-
- ///
- /// Gets or sets the Adobe Sign Refresh Token.
- ///
- [DataMember(Name = "refreshToken", IsRequired = false)]
- public string RefreshToken { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Adobe Sign is enabled.
- ///
- [DataMember(Name = "isAdobeSignEnabled", IsRequired = false)]
- public bool IsAdobeSignEnabled { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignSetupConfiguration.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignSetupConfiguration.cs
deleted file mode 100644
index 4c9b2401..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/AdobeSignSetupConfiguration.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Adobe Sign Setup Integration
- ///
- [DataContract]
- public class AdobeSignSetupConfiguration
- {
- ///
- /// Gets or sets a value indicating whether for adobe code
- ///
- [DataMember(Name = "code", IsRequired = true)]
- public string Code { get; set; }
-
- ///
- /// Gets or sets Redirect URI
- ///
- [DataMember(Name = "redirectUri", IsRequired = true)]
- public string RedirectUri { get; set; }
-
- ///
- /// Gets or sets Client ID
- ///
- [DataMember(Name = "clientId", IsRequired = false)]
- public string ClientId { get; set; }
-
- ///
- /// Gets or sets Client Secret
- ///
- [DataMember(Name = "clientSecret", IsRequired = false)]
- public string ClientSecret { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicantAttachmentRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicantAttachmentRequest.cs
deleted file mode 100644
index 18157880..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicantAttachmentRequest.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using Microsoft.AspNetCore.Http;
-
- ///
- /// Specifies the Data Contract for Applicant Attachment Request
- ///
- [DataContract]
- public class ApplicantAttachmentRequest
- {
-
- ///
- /// Gets or sets file which has attachment content
- ///
- [DataMember(Name = "files")]
- public IFormFileCollection Files { get; set; }
-
-
- ///
- /// Gets or sets name with which attachment should be tagged.
- ///
- [DataMember(Name = "fileLabels")]
- public IEnumerable FileLabels { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Application.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Application.cs
deleted file mode 100644
index 113c468d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Application.cs
+++ /dev/null
@@ -1,287 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using HR.TA.TalentEntities.Enum;
- using HR.TA.Common.OfferManagement.Contracts.V2;
-
- ///
- /// Job application contract.
- ///
- public class Application
- {
- ///
- /// Gets or sets the identifier for the job application.
- ///
- public string ApplicationId { get; set; }
-
- ///
- /// Gets or sets the activities in the job application.
- ///
- public IList ApplicationActivities { get; set; }
-
- ///
- /// Gets or sets the identifier of the job opening.
- ///
- public string JobOpeningId { get; set; }
-
- ///
- /// Gets or sets the title of the job opening.
- ///
- public string JobOpeningTitle { get; set; }
-
- ///
- /// Gets or sets the description of the job opening.
- ///
- public string JobOpeningDescription { get; set; }
-
- ///
- /// Gets or sets the location of the job opening.
- ///
- public string JobOpeningLocation { get; set; }
-
- ///
- /// Gets or sets the full name of the candidate for the job application.
- ///
- public string CandidateFullName { get; set; }
-
- ///
- /// Gets or sets the given name of the candidate for the job application.
- ///
- public string CandidateGivenName { get; set; }
-
- ///
- /// Gets or sets the surname of the candidate for the job application.
- ///
- public string CandidateSurname { get; set; }
-
- ///
- /// Gets or sets the identifier of the candidate for the job application.
- ///
- public string CandidateId { get; set; }
-
- ///
- /// Gets or sets the object identifier of the candidate for the job application, if the candidate is internal.
- ///
- public string CandidateOId { get; set; }
-
- ///
- /// Gets or sets the email of the candidate for the job application.
- ///
- public string CandidateEmail { get; set; }
-
- ///
- /// Gets or sets candidate's current employer.
- ///
- public string CandidateCurrentEmployer { get; set; }
-
- ///
- /// Gets or sets the invitation Id of the job application.
- ///
- public string InvitationId { get; set; }
-
- ///
- /// Gets or sets the contact preference of the candidate for the job application.
- ///
- public string PreferredPhone { get; set; }
-
- ///
- /// Gets or sets the postal addresss of the candidate for the job application.
- ///
- public string ResidentialPostalAddress { get; set; }
-
- ///
- /// Gets or sets the alternate address of the candidate for the job application.
- ///
- public string OtherPostalAddress { get; set; }
-
- ///
- /// Gets or sets the citizenship of the candidate for the job application.
- ///
- public string CitizenshipPrimary { get; set; }
-
- ///
- /// Gets or sets the worker if the candidate is internal for the job application.
- ///
- public string InternalCandidate { get; set; }
-
- ///
- /// Gets or sets the LinkedIn ID of the candidate for the job application.
- ///
- public string LinkedInID { get; set; }
-
- ///
- /// Gets or sets the Hiring Manager Name for the Job Opening.
- ///
- public string HiringManagerName { get; set; }
-
- ///
- /// Gets or sets the Hiring Manager Email for the Job Opening.
- ///
- public string HiringManagerEmail { get; set; }
-
- ///
- /// Gets or sets the Hiring Manager Title for the Job Opening.
- ///
- public string HiringManagerTitle { get; set; }
-
- ///
- /// Gets or sets the Hiring Manager Department for the Job Opening.
- ///
- public string HiringManagerDepartment { get; set; }
-
- ///
- /// Gets or sets the Recruiter Name for the Job Opening.
- ///
- public string RecruiterName { get; set; }
-
- ///
- /// Gets or sets the Recruiter Title for the Job Opening.
- ///
- public string RecruiterTitle { get; set; }
-
- ///
- /// Gets or sets the Seniority Level for the Job Opening.
- ///
- public string SeniorityLevel { get; set; }
-
- ///
- /// Gets or sets Employment Type for the Job Opening.
- ///
- public string EmploymentType { get; set; }
-
- ///
- /// Gets or sets the Job Function for the Job Opening.
- ///
- public string JobFunction { get; set; }
-
- ///
- /// Gets or sets the Industry for the Job Opening.
- ///
- public string Industry { get; set; }
-
- ///
- /// Gets or sets the Currency Code for the Job Opening.
- ///
- public string CurrencyCode { get; set; }
-
- ///
- /// Gets or sets the Department for the Job Opening Position.
- ///
- public string Department { get; set; }
-
- ///
- /// Gets or sets the Minimum Remuneration for the Job Opening Position.
- ///
- public string MinimumRemuneration { get; set; }
-
- ///
- /// Gets or sets the Maximum Remuneration for the Job Opening Position.
- ///
- public string MaximumRemuneration { get; set; }
-
- ///
- /// Gets or sets the Remuneration Period for the Job Opening Position.
- ///
- public string RemunerationPeriod { get; set; }
-
- ///
- /// Gets or sets the Job Grade for the Job Opening Position.
- ///
- public string JobGrade { get; set; }
-
- ///
- /// Gets or sets the Incentive Plan for the Job Opening Position.
- ///
- public string IncentivePlan { get; set; }
-
- ///
- /// Gets or sets the Role Type for the Job Opening Position.
- ///
- public string RoleType { get; set; }
-
- ///
- /// Gets or sets the Source Position Number for the Job Opening Position.
- ///
- public string SourcePositionNumber { get; set; }
-
- ///
- /// Gets or sets the Cost Center for the Job Opening Position.
- ///
- public string CostCenter { get; set; }
-
- ///
- /// Gets or sets the Career Level for the Job Opening Position.
- ///
- public string CareerLevel { get; set; }
-
- ///
- /// Gets or sets the Job Type for the Job Opening Position.
- ///
- public string JobType { get; set; }
-
- ///
- /// Gets or sets the Description for the Job Opening.
- ///
- public string Description { get; set; }
-
- ///
- /// Gets or sets the Position Title for the Job Opening.
- ///
- public string PositionTitle { get; set; }
-
- ///
- /// Gets or sets the Standard Title for the Job Opening.
- ///
- public string StandardTitle { get; set; }
-
- ///
- /// Gets or sets the custom attributes for application
- ///
- public IList Attributes { get; set; }
-
- ///
- /// Gets or sets the Reporting Manager Name for the Job application position.
- ///
- public string ReportingManagerName { get; set; }
-
- ///
- /// Gets or sets the Reporting Manager Email for the Job application position.
- ///
- public string ReportingManagerEmail { get; set; }
-
- ///
- /// Gets or sets the Offer Notes for the Job Application
- ///
- public IList OfferNotes { get; set; }
-
- ///
- /// Gets or sets the Job Application Id From External Source.
- ///
- public string ExternalJobApplicationID { get; set; }
-
- ///
- /// Gets or sets the Job Opening Id From External Source.
- ///
- public string ExternalJobOpeningID { get; set; }
-
- ///
- /// Gets or sets the Job Application Status
- ///
- public JobApplicationStatus? Status { get; set; }
-
- ///
- /// Gets or sets the Job Application Status Reason
- ///
- public JobApplicationStatusReason? StatusReason { get; set; }
-
- ///
- /// Gets or sets OpeningParticipant of job opening
- ///
- public IList OpeningParticipants { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivity.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivity.cs
deleted file mode 100644
index bd1af46d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivity.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// An activity in a job application
- ///
- public class ApplicationActivity
- {
- ///
- /// Gets or sets the identifier of the application activity.
- ///
- public string ApplicationActivityID { get; set; }
-
- ///
- /// Gets or sets the type of the job application activity.
- ///
- public ApplicationActivityType? ActivityType { get; set; }
-
- ///
- /// Gets or sets the type of the job application activity.
- ///
- public List ApplicationActivityParticipants { get; set; }
-
- ///
- /// Gets or sets the ordinal of the job opening stage.
- ///
- public long? JobOpeningStageOrdinal { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivityParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivityParticipant.cs
deleted file mode 100644
index be451006..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationActivityParticipant.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// The participant for a job application activity.
- ///
- public class ApplicationActivityParticipant
- {
- ///
- /// Gets or sets the participant identifier for the job application activity.
- ///
- public string ApplicationActivityParticipantId { get; set; }
-
- ///
- /// Gets or sets the graph object identifier of the job opening participant.
- ///
- public string JobOpeningParticipantObjectId { get; set; }
-
- ///
- /// Gets or sets the role of the job opening participant.
- ///
- public OpeningParticipantRole? JobOpeningParticipantRole { get; set; }
-
- ///
- /// Gets or sets identifier of the job application participant.
- ///
- public string JobApplicationParticipantId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationInvitation.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationInvitation.cs
deleted file mode 100644
index a053923e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApplicationInvitation.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
-
- ///
- /// Job application Invitation contract.
- ///
- public class ApplicationInvitation
- {
- /// Gets or sets the id.
- public string ID { get; set; }
-
- /// Gets or sets the id of Invitation token.
- public string InvitationTokenId { get; set; }
-
- /// Gets or sets the value of Invitation token.
- public string InvitationTokenValue { get; set; }
-
- /// Gets or sets the expiry date time of Invitation token.
- public DateTime? InvitationTokenExpiryDateTime { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApprovalWorkflow.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApprovalWorkflow.cs
deleted file mode 100644
index 46b86cd9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ApprovalWorkflow.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Approval Workflow
- ///
- public class ApprovalWorkflow
- {
- ///
- /// Gets or sets a value indicating whether approval process is sequential
- ///
- public bool IsSequential { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ArtifactDescription.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ArtifactDescription.cs
deleted file mode 100644
index 879a4e77..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ArtifactDescription.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Offer Letter description
- ///
- [DataContract]
- public class ArtifactDescription
- {
- ///
- /// Gets or sets File Size
- ///
- [DataMember(Name = "fileSize")]
- public long FileSize { get; set; }
-
- ///
- /// Gets or sets file uploader ID
- ///
- [DataMember(Name = "fileUploaderId")]
- public string FileUploaderId { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/BaseDocumentType.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/BaseDocumentType.cs
deleted file mode 100644
index 0854dc1b..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/BaseDocumentType.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Document Type
- ///
- [DataContract]
- public class BaseDocumentType
- {
- /// Gets or sets the id.
- [DataMember(Name = "id", IsRequired = true)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets document type property
- ///
- [DataMember(Name = "DocumentType", IsRequired = true)]
- public string DocumentType { get; set; }
-
- ///
- /// Gets or sets document type property
- ///
- [DataMember(Name = "PartitionKey", IsRequired = true)]
- public string PartitionKey { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/CustomAttribute.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/CustomAttribute.cs
deleted file mode 100644
index b2321b64..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/CustomAttribute.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- ///
- /// Custom attributes contract for extended attributes for Job, Position, Candidate
- ///
- public class CustomAttribute
- {
- ///
- /// Gets or sets name of the attribute
- ///
- public string Name { get; set; }
-
- ///
- /// Gets or sets value of the attribute
- ///
- public string Value { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/DeclineOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/DeclineOffer.cs
deleted file mode 100644
index 98b3400a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/DeclineOffer.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data contract for Decline offer
- ///
- [DataContract]
- public class DeclineOffer
- {
- ///
- /// Gets or sets decline reasons.
- ///
- [DataMember(Name = "reasons", IsRequired = true, EmitDefaultValue = false)]
- public OfferDeclineReason[] Reasons { get; set; }
-
- ///
- /// Gets or sets decline comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets a value indicating whether to be able to contact the candidate.
- ///
- [DataMember(Name = "isOkToContactCandidate", IsRequired = false, EmitDefaultValue = false)]
- public bool IsOkToContactCandidate { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ESignContract.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ESignContract.cs
deleted file mode 100644
index 18fa6730..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ESignContract.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Document for ESign Offer.
- ///
- [DataContract]
- public class ESignContract
- {
- ///
- /// Document type.
- ///
- public const string DocumentType = "esign-id";
-
- ///
- /// Gets or sets the Document ID.
- ///
- [DataMember(Name = "id", IsRequired = false)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets the ESign Type Selected.
- ///
- [DataMember(Name = "esignTypeSelected", IsRequired = false)]
- public ESignType ESignTypeSelected { get; set; }
-
- ///
- /// Gets or sets the Artifact ID.
- ///
- [DataMember(Name = "artifactId", IsRequired = false)]
- public string ArtifactId { get; set; }
-
- ///
- /// Gets or sets the Artifact Type.
- ///
- [DataMember(Name = "artifactType", IsRequired = false)]
- public string ArtifactType { get; set; }
-
- ///
- /// Gets or sets the Offer ID.
- ///
- [DataMember(Name = "entityType", IsRequired = false)]
- public string EntityType { get; set; }
-
- ///
- /// Gets or sets the Envelope ID.
- ///
- [DataMember(Name = "envelopeId", IsRequired = false)]
- public string EnvelopeId { get; set; }
-
- ///
- /// Gets or sets the Tenant ID.
- ///
- [DataMember(Name = "tenantId", IsRequired = false)]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets the Environment ID.
- ///
- [DataMember(Name = "environmentId", IsRequired = false)]
- public string EnvironmentId { get; set; }
-
- ///
- /// Gets or sets the Environment ID.
- ///
- [DataMember(Name = "candidateName", IsRequired = false)]
- public string CandidateName { get; set; }
-
- ///
- /// Gets or sets the user oid.
- ///
- [DataMember(Name = "oid", IsRequired = false)]
- public string OID { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Email.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Email.cs
deleted file mode 100644
index acaf6726..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Email.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Email properties
- ///
- [DataContract]
- public class Email
- {
- ///
- /// Gets or sets from address.
- ///
- [DataMember(Name = "fromAddress", IsRequired = false)]
- public EmailAddress FromAddress { get; set; }
-
- ///
- /// Gets or sets Reply To Address.
- ///
- [DataMember(Name = "replyToAddress", IsRequired = false)]
- public EmailAddress ReplyToAddress { get; set; }
-
- ///
- /// Gets or sets To Address.
- ///
- [DataMember(Name = "toAddress", IsRequired = false)]
- public List ToAddress { get; set; }
-
- ///
- /// Gets or sets To Address Name.
- ///
- [DataMember(Name = "toAddresName", IsRequired = false)]
- public string ToAddressName { get; set; }
-
- ///
- /// Gets or sets Company Info Footer.
- ///
- [DataMember(Name = "companyInfoFooter", IsRequired = false)]
- public string CompanyInfoFooter { get; set; }
-
- ///
- /// Gets or sets Company Name.
- ///
- [DataMember(Name = "companyName", IsRequired = false)]
- public string CompanyName { get; set; }
-
- ///
- /// Gets or sets Recuiter Name.
- ///
- [DataMember(Name = "recuiterName", IsRequired = false)]
- public string RecuiterName { get; set; }
-
- ///
- /// Gets or sets Recuiter Name.
- ///
- [IgnoreDataMember]
- public string RecuiterEmail { get; set; }
-
- ///
- /// Gets or sets email subject.
- ///
- [DataMember(Name = "messageSubject", IsRequired = true)]
- public string MessageSubject { get; set; }
-
- ///
- /// Gets or sets Greeting.
- ///
- [DataMember(Name = "greeting", IsRequired = false)]
- public string Greeting { get; set; }
-
- ///
- /// Gets or sets email closing.
- ///
- [DataMember(Name = "closing", IsRequired = false)]
- public string Closing { get; set; }
-
- ///
- /// Gets or sets paragraph one.
- ///
- [DataMember(Name = "paragraph1", IsRequired = true)]
- public string Paragraph1 { get; set; }
-
- ///
- /// Gets or sets paragraph two.
- ///
- [DataMember(Name = "paragraph2", IsRequired = false)]
- public string Paragraph2 { get; set; }
-
- ///
- /// Gets or sets Offer Management App Link.
- ///
- [DataMember(Name = "OfferManagementAppLink", IsRequired = false)]
- public string OfferManagementAppLink { get; set; }
-
- ///
- /// Gets or sets email header image url.
- ///
- [DataMember(Name = "emailHeaderUrl", IsRequired = false)]
- public string EmailHeaderUrl { get; set; }
-
- ///
- /// Gets or sets email header image height.
- ///
- [DataMember(Name = "emailHeaderHeight", IsRequired = false)]
- public string EmailHeaderHeight { get; set; }
-
- ///
- /// Gets or sets Job Title.
- ///
- [DataMember(Name = "jobTitle", IsRequired = false)]
- public string JobTitle { get; set; }
-
- ///
- /// Gets or sets Job Title.
- ///
- [DataMember(Name = "buttonText", IsRequired = false)]
- public string ButtonText { get; set; }
-
- ///
- /// Gets or sets the cc addresses.
- ///
- [DataMember(Name = "ccAddresses", IsRequired = false)]
- public List CCAddresses { get; set; }
-
- ///
- /// Gets or sets the bcc addresses.
- ///
- [DataMember(Name = "bccAddresses", IsRequired = false)]
- public List BCCAddresses { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/EmailAddress.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/EmailAddress.cs
deleted file mode 100644
index 9b6a17d4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/EmailAddress.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Email properties
- ///
- [DataContract]
- public class EmailAddress
- {
- ///
- /// Gets or sets email.
- ///
- [DataMember(Name = "email", IsRequired = true)]
- public string Email { get; set; }
-
- ///
- /// Gets or sets name.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ExtendOfferDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ExtendOfferDetails.cs
deleted file mode 100644
index 7f3f1cb4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ExtendOfferDetails.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Gets the Extend offer details.
- ///
- [DataContract]
- public class ExtendOfferDetails
- {
- ///
- /// Gets or sets additional Notes
- ///
- [DataMember(Name = "additionalNotes", IsRequired = false, EmitDefaultValue = false)]
- public string AdditionalNotes { get; set; }
-
- ///
- /// Gets or sets whether signed document is required or not
- ///
- [DataMember(Name = "isSignedDocumentRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsSignedDocumentRequired { get; set; }
-
- ///
- /// Gets or sets whether Adobe Sign is required or not
- ///
- [DataMember(Name = "isAdobeSignRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsAdobeSignRequired { get; set; }
-
- ///
- /// Gets or sets whether DocuSign is required or not
- ///
- [DataMember(Name = "isDocuSignRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsDocuSignRequired { get; set; }
-
- ///
- /// Gets or sets expiration date
- ///
- [DataMember(Name = "expirationDate", IsRequired = false, EmitDefaultValue = true)]
- public DateTime? ExpirationDate { get; set; }
-
- ///
- /// Gets or sets email subject
- ///
- [DataMember(Name = "emailSubject", IsRequired = false, EmitDefaultValue = false)]
- public string EmailSubject { get; set; }
-
- ///
- /// Gets or sets email body
- ///
- [DataMember(Name = "emailBody", IsRequired = false, EmitDefaultValue = false)]
- public string EmailBody { get; set; }
-
- ///
- /// Gets or sets required documents
- ///
- [DataMember(Name = "requiredCandidateDocuments", IsRequired = false, EmitDefaultValue = false)]
- public List RequiredCandidateDocuments { get; set; }
-
- ///
- /// Gets or sets required documents
- ///
- [DataMember(Name = "ccEmailAddresses", IsRequired = false, EmitDefaultValue = false)]
- public List CCEmailAddresses { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferConnectorIntegrationDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferConnectorIntegrationDetails.cs
deleted file mode 100644
index 8953de97..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferConnectorIntegrationDetails.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- ///
- /// The Entity used to push message to Service bus Queue for communication with Connector Service
- ///
- public class OfferConnectorIntegrationDetails
- {
- ///
- /// Gets or sets Id of the Offer
- ///
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets Job Application Id
- ///
- public string JobApplicationId { get; set; }
-
- ///
- /// Gets or sets Previous Offer Id
- ///
- public string PreviousOfferId { get; set; }
-
- ///
- /// Gets or sets offer status
- ///
- public string OfferStatus { get; set; }
-
- ///
- /// Gets or sets offer statusreason
- ///
- public string OfferStatusReason { get; set; }
-
- ///
- /// Gets or sets Root Activity Id
- ///
- public string RootActivityId { get; set; }
-
- ///
- /// Gets or sets message action type
- ///
- public string MessageActionType { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetail.cs
deleted file mode 100644
index 0a9bddfe..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetail.cs
+++ /dev/null
@@ -1,102 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Offer Information
- ///
- [DataContract]
- public class OfferDetail
- {
- ///
- /// Gets or sets Offer Id
- ///
- [DataMember(Name = "offerId")]
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets candidate Id
- ///
- [DataMember(Name = "candidateId")]
- public string CandidateId { get; set; }
-
- ///
- /// Gets or sets candidate Name
- ///
- [DataMember(Name = "candidateName")]
- public string CandidateName { get; set; }
-
- ///
- /// Gets or sets candidate Email
- ///
- [DataMember(Name = "candidateEmail")]
- public string CandidateEmail { get; set; }
-
- ///
- /// Gets or sets JobOpening Id
- ///
- [DataMember(Name = "jobOpeningId")]
- public string JobOpeningId { get; set; }
-
- ///
- /// Gets or sets jobOpening title
- ///
- [DataMember(Name = "jobOpeningTitle")]
- public string JobOpeningTitle { get; set; }
-
- ///
- /// Gets or sets Job Application Id
- ///
- [DataMember(Name = "jobApplicationId")]
- public string JobApplicationId { get; set; }
-
- ///
- /// Gets or sets Offer Status
- ///
- [DataMember(Name = "offerStatus")]
- public OfferStatusReason OfferStatus { get; set; }
-
- ///
- /// Gets or sets Hiring Manager
- ///
- [DataMember(Name = "hiringManager")]
- public string HiringManager { get; set; }
-
- ///
- /// Gets or sets Created Date Time.
- ///
- [DataMember(Name = "createdDateTimeUTC", IsRequired = false)]
- public DateTime CreatedDateTimeUTC { get; set; }
-
- ///
- /// Gets or sets Modified Date Time.
- ///
- [DataMember(Name = "modifiedDateTimeUTC", IsRequired = false)]
- public DateTime ModifiedDateTimeUTC { get; set; }
-
- ///
- /// Gets or sets Participant Role.
- ///
- [DataMember(Name = "role", IsRequired = false)]
- public OfferParticipantRole Role { get; set; }
-
- ///
- /// Gets or sets External Job Application Id.
- ///
- [DataMember(Name = "externalJobApplicationID", IsRequired = false)]
- public string ExternalJobApplicationID { get; set; }
-
- ///
- /// Gets or sets External Job Opening Id.
- ///
- [DataMember(Name = "externalJobOpeningID", IsRequired = false)]
- public string ExternalJobOpeningID { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetailMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetailMetadata.cs
deleted file mode 100644
index cc5d8c24..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferDetailMetadata.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for offer metadata response
- ///
- [DataContract]
- public class OfferDetailMetadata
- {
- ///
- /// Gets or sets the Offer Metadata
- ///
- [DataMember(Name = "offerMetadata", IsRequired = false, EmitDefaultValue = false)]
- public OfferMetadata OfferMetadata { get; set; }
-
- ///
- /// Gets or sets total offer count
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferExpiryCallback.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferExpiryCallback.cs
deleted file mode 100644
index 95880b21..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferExpiryCallback.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Email properties
- ///
- [DataContract]
- public class OfferExpiryCallback
- {
- ///
- /// Gets or sets offerid.
- ///
- [DataMember(Name = "offerID", IsRequired = true)]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets company name.
- ///
- [DataMember(Name = "companyName", IsRequired = true)]
- public string CompanyName { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadata.cs
deleted file mode 100644
index 917ee72d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadata.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Offer Metadata
- ///
- [DataContract]
- public class OfferMetadata
- {
- ///
- /// Gets or sets offer information
- ///
- [DataMember(Name = "offerData")]
- public List OfferData { get; set; }
-
- ///
- /// Gets or sets number of candidates in interview stage for job openings where user is participating.
- ///
- [DataMember(Name = "offerDraftCount")]
- public int OfferDraftCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in offer stage for job openings where user is participating.
- ///
- [DataMember(Name = "offerReviewCount")]
- public int OfferReviewCount { get; set; }
-
- ///
- /// Gets or sets number of candidates in assessment stage for job openings where user is participating.
- ///
- [DataMember(Name = "offerCompletedCount")]
- public int OfferCompletedCount { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadataRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadataRequest.cs
deleted file mode 100644
index bfdd3f91..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferMetadataRequest.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Get the offer metadata request
- ///
- [DataContract]
- public class OfferMetadataRequest
- {
- ///
- /// Gets or sets filter by status
- ///
- [DataMember(Name = "filterBy", IsRequired = false, EmitDefaultValue = false)]
- public OfferStatus? FilterBy { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets Take
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNote.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNote.cs
deleted file mode 100644
index 47e0cdc3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNote.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Runtime.Serialization;
- ////using Microsoft.AspNetCore.Http;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V2;
-
- ///
- /// The Offer note data contract.
- ///
- [DataContract]
- public class OfferNote
- {
- /// Gets or sets id.
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string Id { get; set; }
-
- /// Gets or sets the text.///
- [DataMember(Name = "text", IsRequired = false, EmitDefaultValue = false)]
- public string Text { get; set; }
-
- /// Gets or sets owner object id.
- [DataMember(Name = "ownerObjectId", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerObjectId { get; set; }
-
- /// Gets or sets owner name.
- [DataMember(Name = "ownerName", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerName { get; set; }
-
- /// Gets or sets owner email.
- [DataMember(Name = "ownerEmail", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerEmail { get; set; }
-
- /// Gets or sets id.
- [DataMember(Name = "createdDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CreatedDate { get; set; }
-
- /// Gets or sets Application Note type.///
- [DataMember(Name = "noteType", EmitDefaultValue = false, IsRequired = false)]
- public ApplicationNoteType? NoteType { get; set; }
-
- /// Gets or sets the OfferNote attachment file.///
- [DataMember(Name = "noteAttachment", EmitDefaultValue = false, IsRequired = false)]
- public OfferNoteAttachment NoteAttachment { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNoteContent.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNoteContent.cs
deleted file mode 100644
index 5503a58c..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferNoteContent.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.IO;
-
- ///
- /// The Offer Artifact data contract
- ///
- public class OfferNoteContent
- {
- ///
- /// Gets or sets name
- ///
- public string Name { get; set; }
-
- ///
- /// Gets or sets Contents.
- ///
- public Stream Content { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferVersionLabel.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferVersionLabel.cs
deleted file mode 100644
index 999a92c3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/OfferVersionLabel.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Offer Version Title
- ///
- [DataContract]
- public class OfferVersionLabel
- {
- ///
- /// Gets or sets Offer ID
- ///
- [DataMember(Name = "offerID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets Offer Label
- ///
- [DataMember(Name = "label", IsRequired = true, EmitDefaultValue = false)]
- public string Label { get; set; }
-
- ///
- /// Gets or sets a value indicating whether the logged user has access
- ///
- [DataMember(Name = "hasAccess", IsRequired = false, EmitDefaultValue = true)]
- public bool HasAccess { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ResetExpirationDetails.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ResetExpirationDetails.cs
deleted file mode 100644
index 2c1ef7cc..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/ResetExpirationDetails.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Gets the details for reseting the expiration of an offer
- ///
- [DataContract]
- public class ResetExpirationDetails
- {
- ///
- /// Gets or sets Offer Id
- ///
- [DataMember(Name = "offerId", IsRequired = true, EmitDefaultValue = false)]
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets expiration date
- ///
- [DataMember(Name = "expirationDate", IsRequired = true, EmitDefaultValue = false)]
- public DateTime? ExpirationDate { get; set; }
-
- ///
- /// Gets or sets Tenant Id
- ///
- [IgnoreDataMember]
- public string TenantId { get; set; }
-
- ///
- /// Gets or sets Environment Id
- ///
- [IgnoreDataMember]
- public string EnvironmentId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/RulesetDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/RulesetDetail.cs
deleted file mode 100644
index f030b4f9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/RulesetDetail.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data Contract for Ruleset Details of a token
- ///
- [DataContract]
- public class RulesetDetail
- {
- ///
- /// Gets or sets Token Id
- ///
- [DataMember(Name = "id")]
- public string Id { get; set; }
-
- ///
- /// Gets or sets Token Hierarchy Level
- ///
- [DataMember(Name = "level")]
- public int Level { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/SendToApproversRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/SendToApproversRequest.cs
deleted file mode 100644
index d38999db..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/SendToApproversRequest.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Gets the send to approver details.
- ///
- [DataContract]
- public class SendToApproversRequest
- {
- ///
- /// Gets or sets non standard reason
- ///
- [DataMember(Name = "nonStandardReason", IsRequired = false, EmitDefaultValue = false)]
- public string NonStandardReason { get; set; }
-
- ///
- /// Gets or sets whether owner should be copied in the email
- ///
- [DataMember(Name = "copyToOwner", IsRequired = false, EmitDefaultValue = false)]
- public bool? CopyToOwner { get; set; }
-
- ///
- /// Gets or sets Email contents
- ///
- [DataMember(Name = "email", IsRequired = false, EmitDefaultValue = false)]
- public Email Email { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateContent.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateContent.cs
deleted file mode 100644
index 22dd4fb9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateContent.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Variables Sets
- ///
- [DataContract]
- public class TemplateContent
- {
- ///
- /// Gets or sets Content.
- ///
- [DataMember(Name = "content", IsRequired = true)]
- public string Content { get; set; }
-
- ///
- /// Gets or sets Variable Sets.
- ///
- [DataMember(Name = "variableSets", IsRequired = true)]
- public IList VariableSets { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetail.cs
deleted file mode 100644
index ff8b4094..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetail.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V2;
-
- ///
- /// Specifies the Data Contract for Template Detail
- ///
- [DataContract]
- public class TemplateDetail
- {
- ///
- /// Gets or sets Template Name.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets Template ID.
- ///
- [DataMember(Name = "templateID", IsRequired = false)]
- public string TemplateID { get; set; }
-
- ///
- /// Gets or sets Status.
- ///
- [DataMember(Name = "status", IsRequired = false)]
- public OfferTemplateStatus Status { get; set; }
-
- ///
- /// Gets or sets Status Reason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false)]
- public OfferTemplateStatusReason StatusReason { get; set; }
-
- ///
- /// Gets or sets a value indicating whether gets or sets Shared status.
- ///
- [DataMember(Name = "isShared", IsRequired = false)]
- public bool IsShared { get; set; }
-
- ///
- /// Gets or sets template shared Date Time.
- ///
- [DataMember(Name = "sharedDateTimeUTC", IsRequired = false)]
- public DateTime? SharedDateTimeUTC { get; set; }
-
- ///
- /// Gets or sets Created Date Time.
- ///
- [DataMember(Name = "createdDateTimeUTC", IsRequired = false)]
- public DateTime CreatedDateTimeUTC { get; set; }
-
- ///
- /// Gets or sets Modified Date Time.
- ///
- [DataMember(Name = "modifiedDateTimeUTC", IsRequired = false)]
- public DateTime ModifiedDateTimeUTC { get; set; }
-
- ///
- /// Gets or sets Sections
- ///
- [DataMember(Name = "sections", IsRequired = false)]
- public IList Sections { get; set; }
-
- ///
- /// Gets or sets list of tokens
- ///
- [DataMember(Name = "tokens", IsRequired = false)]
- public IList Tokens { get; set; }
-
- ///
- /// Gets or sets Template Identifier(Numeric Id).
- ///
- [DataMember(Name = "templateIdentifier", IsRequired = false)]
- public string TemplateIdentifier { get; set; }
-
- ///
- /// Gets or sets Next template verson id
- ///
- [DataMember(Name = "nextVersionId", IsRequired = false)]
- public string NextVersionId { get; set; }
-
- ///
- /// Gets or sets Previous template verson id
- ///
- [DataMember(Name = "previousVersionId", IsRequired = false)]
- public string PreviousVersionId { get; set; }
-
- ///
- /// Gets or sets a value indicating whether offer text is editable
- ///
- [DataMember(Name = "isOfferTextEditable", IsRequired = false)]
- public bool IsOfferTextEditable { get; set; }
-
- ///
- /// Gets or sets Original template verson id
- ///
- [DataMember(Name = "originalTemplateId", IsRequired = false)]
- public string OriginalTemplateId { get; set; }
-
- ///
- /// Gets or sets template package ids where template is referred
- ///
- [DataMember(Name = "templatePackageIds", IsRequired = false)]
- public List TemplatePackageIds { get; set; }
-
- ///
- /// Gets or sets created by
- ///
- [DataMember(Name = "createdBy", IsRequired = false)]
- public Worker CreatedBy { get; set; }
-
- ///
- /// Gets or sets modified by
- ///
- [DataMember(Name = "modifiedBy", IsRequired = false)]
- public Worker ModifiedBy { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetailMetadata.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetailMetadata.cs
deleted file mode 100644
index f7764208..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateDetailMetadata.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V2;
-
- ///
- /// Specifies the Data Contract for Template Detail
- ///
- [DataContract]
- public class TemplateDetailMetadata
- {
- ///
- /// Gets or sets the collection of Template Details
- ///
- [DataMember(Name = "templateDetails", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable TemplateDetails { get; set; }
-
- ///
- /// Gets or sets total template count
- ///
- [DataMember(Name = "total", IsRequired = false, EmitDefaultValue = false)]
- public int Total { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateMetadataRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateMetadataRequest.cs
deleted file mode 100644
index beb5d44f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateMetadataRequest.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Get the Template Metadata Request
- ///
- [DataContract]
- public class TemplateMetadataRequest
- {
- ///
- /// Gets or sets the collection of filter by statuses
- ///
- [DataMember(Name = "filterBy", IsRequired = false, EmitDefaultValue = false)]
- public IList FilterBy { get; set; }
-
- ///
- /// Gets or sets the collection of sorted column
- ///
- [DataMember(Name = "sortedBy", IsRequired = false, EmitDefaultValue = false)]
- public DashboardSortedBy? SortedBy { get; set; }
-
- ///
- /// Gets or sets skip
- ///
- [DataMember(Name = "skip", IsRequired = false, EmitDefaultValue = false)]
- public int Skip { get; set; }
-
- ///
- /// Gets or sets Take
- ///
- [DataMember(Name = "take", IsRequired = false, EmitDefaultValue = false)]
- public int Take { get; set; }
-
- ///
- /// Gets or sets search text
- ///
- [DataMember(Name = "searchText", IsRequired = false, EmitDefaultValue = false)]
- public string SearchText { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateParticipant.cs
deleted file mode 100644
index 464377ee..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateParticipant.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.V2;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Template Participant update model
- ///
- [DataContract]
- public class TemplateParticipant : AadUser
- {
- ///
- /// Gets or sets Role of template participants
- ///
- [DataMember(Name = "role")]
- public OfferTemplateRole Role { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateRuleset.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateRuleset.cs
deleted file mode 100644
index 50912e08..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateRuleset.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
-
- ///
- /// Template rule set
- ///
- public class TemplateRuleset : BaseDocumentType
- {
- /// Gets or sets the template Id.
- public string TemplateId { get; set; }
-
- /// Gets or sets the tenant id.
- public string TenantID { get; set; }
-
- /// Gets or sets the environment id.
- public string EnvironmentID { get; set; }
-
- /// Gets or sets the rules data.
- public List Rulesets { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveRequest.cs
deleted file mode 100644
index a75501c2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveRequest.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using Microsoft.AspNetCore.Http;
-
- //TODO
- ///
- /// Specifies the Data Contract for Template
- ///
- [DataContract]
- public class TemplateSaveRequest
- {
- ///
- /// Gets or sets the tokens.
- ///
- [DataMember(Name = "tokenIds")]
- public IEnumerable TokenIds { get; set; }
-
- ///
- /// Gets or sets file which has template contents.
- ///
- [DataMember(Name = "file")]
- public IFormFile File { get; set; }
-
- ///
- /// Gets or sets name with which template should be saved.
- ///
- [DataMember(Name = "name")]
- public string Name { get; set; }
-
- ///
- /// Gets or sets a value indicating whether offer text is editable or not.
- ///
- [DataMember(Name = "isOfferTextEditable")]
- public bool IsOfferTextEditable { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveResult.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveResult.cs
deleted file mode 100644
index 4b97a989..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateSaveResult.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Template
- ///
- [DataContract]
- public class TemplateSaveResult
- {
- ///
- /// Gets or sets a value indicating whether gets or sets whether the service is successful.
- ///
- [DataMember(Name = "success", IsRequired = true)]
- public bool Success { get; set; }
-
- ///
- /// Gets or sets New Template ID.
- ///
- [DataMember(Name = "newTemplateID", IsRequired = false)]
- public string NewTemplateID { get; set; }
-
- ///
- /// Gets or sets New Template Name.
- ///
- [DataMember(Name = "newTemplateName", IsRequired = false)]
- public string NewTemplateName { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateVariable.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateVariable.cs
deleted file mode 100644
index d6225dd7..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TemplateVariable.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Template Variables
- ///
- [DataContract]
- public class TemplateVariable
- {
- ///
- /// Gets or sets Category.
- ///
- [DataMember(Name = "category", IsRequired = true)]
- public string Category { get; set; }
-
- ///
- /// Gets or sets Name.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets Token.
- ///
- [DataMember(Name = "token", IsRequired = true)]
- public string Token { get; set; }
-
- ///
- /// Gets or sets Value.
- ///
- [DataMember(Name = "value", IsRequired = false)]
- public string Value { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Token.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Token.cs
deleted file mode 100644
index 69a158da..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Token.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data Contract for Tokens
- ///
- [DataContract]
- public class Token
- {
- ///
- /// Gets or sets Token Id.
- ///
- [DataMember(Name = "id", IsRequired = true)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets Token Name.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets Token Description
- ///
- [DataMember(Name = "description")]
- public string Description { get; set; }
-
- ///
- /// Gets or sets Token Type
- ///
- [DataMember(Name = "tokenType")]
- public TokenType TokenType { get; set; }
-
- ///
- /// Gets or sets Token Data Type
- ///
- [DataMember(Name = "dataType")]
- public TokenDataType DataType { get; set; }
-
- ///
- /// Gets or sets Section Name of Token
- ///
- [DataMember(Name = "sectionName")]
- public string SectionName { get; set; }
-
- ///
- /// Gets or sets Section Id of Token
- ///
- [DataMember(Name = "sectionId")]
- public string SectionId { get; set; }
-
- ///
- /// Gets or sets List of templates in which this token is used
- ///
- [DataMember(Name = "templates")]
- public IList Templates { get; set; }
-
- ///
- /// Gets or sets Created Date Time of Token
- ///
- [DataMember(Name = "createdDate", IsRequired = false)]
- public DateTime? CreatedDate { get; set; }
-
- ///
- /// Gets or sets ruleset id of a ruleset token
- ///
- [DataMember(Name = "rulesetId", IsRequired = false, EmitDefaultValue = false)]
- public string RulesetId { get; set; }
-
- ///
- /// Gets or sets ruleset version id of a ruleset token
- ///
- [DataMember(Name = "rulesetVersionId", IsRequired = false, EmitDefaultValue = false)]
- public string RulesetVersionId { get; set; }
-
- ///
- /// Gets or sets ruleset details of a ruleset token
- ///
- [DataMember(Name = "rulesetDetails")]
- public IList RulesetDetails { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Token can be Editable or not
- ///
- [DataMember(Name = "isEditable", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsEditable { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Token is updated or not
- ///
- [DataMember(Name = "isUpdated", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsUpdated { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TokenValue.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TokenValue.cs
deleted file mode 100644
index eab90a42..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/TokenValue.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data Contract for Tokens
- ///
- [DataContract]
- public class TokenValue : Token
- {
- ///
- /// Gets or sets value of Token
- ///
- [DataMember(Name = "value")]
- public string Value { get; set; }
-
- ///
- /// Gets or sets value of DisplayText
- ///
- [DataMember(Name = "displayText")]
- public string DisplayText { get; set; }
-
- ///
- /// Gets or sets a value indicating whether token is selected or only part of a ruleset
- ///
- [DataMember(Name = "isSelected")]
- public bool IsSelected { get; set; }
-
- ///
- /// Gets or sets default value
- ///
- [DataMember(Name = "defaultValue")]
- public string DefaultValue { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Token can be Overridden or not
- ///
- [DataMember(Name = "isOverridden", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsOverridden { get; set; }
-
- ///
- /// Gets or sets entity value
- ///
- [DataMember(Name = "entityValue")]
- public string EntityValue { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Token is Hidden or not
- ///
- [DataMember(Name = "isDeleted", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsDeleted { get; set; }
-
- ///
- /// Gets or sets value id of Token
- ///
- [IgnoreDataMember]
- public string ValueId { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/VariableSet.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/VariableSet.cs
deleted file mode 100644
index 9d14d3eb..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/VariableSet.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Variables Sets
- ///
- [DataContract]
- public class VariableSet
- {
- ///
- /// Gets or sets Token.
- ///
- [DataMember(Name = "token", IsRequired = true)]
- public string Token { get; set; }
-
- ///
- /// Gets or sets Pattern.
- ///
- [DataMember(Name = "pattern", IsRequired = false)]
- public string Pattern { get; set; }
-
- ///
- /// Gets or sets Value.
- ///
- [DataMember(Name = "value", IsRequired = false)]
- public string Value { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WithdrawOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WithdrawOffer.cs
deleted file mode 100644
index dce46ab3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WithdrawOffer.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data contract for Withdraw offer
- ///
- [DataContract]
- public class WithdrawOffer
- {
- ///
- /// Gets or sets offer withdraw reason
- ///
- [DataMember(Name = "reason", IsRequired = true, EmitDefaultValue = false)]
- public OfferStatusReason? Reason { get; set; }
-
- ///
- /// Gets or sets withdraw comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets withdraw timestamp.
- ///
- [DataMember(Name = "timestamp", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? Timestamp { get; set; }
-
- ///
- /// Gets or sets candidate notification if required
- ///
- [DataMember(Name = "isCandidateNotificationRequired", IsRequired = true, EmitDefaultValue = false)]
- public bool? IsCandidateNotificationRequired { get; set; }
-
- ///
- /// Gets or sets candidate notification subject
- ///
- [DataMember(Name = "candidateNotificationSubject", IsRequired = false, EmitDefaultValue = false)]
- public string CandidateNotificationSubject { get; set; }
-
- ///
- /// Gets or sets candidate notification body
- ///
- [DataMember(Name = "candidateNotificationBody", IsRequired = false, EmitDefaultValue = false)]
- public string CandidateNotificationBody { get; set; }
-
- ///
- /// Gets or sets the email details.
- ///
- [DataMember(Name = "emailDetails", IsRequired = false, EmitDefaultValue = false)]
- public Email EmailDetails { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WopiPreviewInfo.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WopiPreviewInfo.cs
deleted file mode 100644
index f853dc37..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/WopiPreviewInfo.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Data.Contracts.V1
-{
- using System.Runtime.Serialization;
-
- /// The project artifact.
- [DataContract]
- public class WopiPreviewInfo
- {
- /// Gets or sets the WOPI preview url.
- [DataMember(Name = "previewUrl")]
- public string PreviewUrl { get; set; }
-
- /// Gets or sets the user's access token.
- [DataMember(Name = "accessToken")]
- public string AccessToken { get; set; }
-
- /// Gets or sets the access token's time to expiry.
- [DataMember(Name = "accessTokenTtl")]
- public long AccessTokenTtl { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Worker.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Worker.cs
deleted file mode 100644
index 7a504fb3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V1/Worker.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Runtime.Serialization;
-
- ///
- /// Worker contract.
- ///
- [DataContract]
- public class Worker
- {
- /// Gets or sets the Office Graph Identifier.
- [DataMember(Name = "officeGraphIdentifier")]
- public string OfficeGraphIdentifier { get; set; }
-
- /// Gets or sets the value of full name
- [DataMember(Name = "fullName")]
- public string FullName { get; set; }
-
- /// Gets or sets the value of given name
- [DataMember(Name = "givenName")]
- public string GivenName { get; set; }
-
- /// Gets or sets the value of middle name
- [DataMember(Name = "middleName")]
- public string MiddleName { get; set; }
-
- /// Gets or sets the value of surname
- [DataMember(Name = "surName")]
- public string SurName { get; set; }
-
- /// Gets or sets the value of primary email
- [DataMember(Name = "emailPrimary")]
- public string EmailPrimary { get; set; }
-
- /// Gets or sets the value of Phone Primary
- [DataMember(Name = "phonePrimary")]
- public string PhonePrimary { get; set; }
-
- /// Gets or sets the value of Description
- [DataMember(Name = "description")]
- public string Description { get; set; }
-
- /// Gets or sets the value of Profession
- [DataMember(Name = "profession")]
- public string Profession { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AadUser.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AadUser.cs
deleted file mode 100644
index d8a6f66f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AadUser.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
-
- ///
- /// AAD User to map response form graph. Name starts with lower case to support user directory response.
- ///
- [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Small closely related classes may be combined.")]
- [DataContract]
- public class AadUser
- {
- /// Gets or sets the name.
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
- public string Name { get; set; }
-
- /// Gets or sets the id.
- [DataMember(Name = "id", IsRequired = false, EmitDefaultValue = false)]
- public string Id { get; set; }
-
- /// Gets or sets the title.
- [DataMember(Name = "title", IsRequired = false, EmitDefaultValue = false)]
- public string Title { get; set; }
-
- /// Gets or sets the email.
- [DataMember(Name = "email", IsRequired = false, EmitDefaultValue = false)]
- public string Email { get; set; }
-
- /// Gets or sets the given name.
- [DataMember(Name = "given", IsRequired = false, EmitDefaultValue = false)]
- public string GivenName { get; set; }
-
- /// Gets or sets the full name.
- [DataMember(Name = "fullName", IsRequired = false, EmitDefaultValue = false)]
- public string FullName { get; set; }
-
- /// Gets or sets the surname.
- [DataMember(Name = "surname", IsRequired = false, EmitDefaultValue = false)]
- public string Surname { get; set; }
-
- /// Gets or sets the middle name.
- [DataMember(Name = "middleName", IsRequired = false, EmitDefaultValue = false)]
- public string MiddleName { get; set; }
-
- /// Gets or sets the mobile phone.
- [DataMember(Name = "mobilePhone", IsRequired = false, EmitDefaultValue = false)]
- public string MobilePhone { get; set; }
-
- /// Gets or sets the office location.
- [DataMember(Name = "officeLocation", IsRequired = false)]
- public string OfficeLocation { get; set; }
-
- /// Gets or sets the user principal name.
- [DataMember(Name = "userPrincipalName", IsRequired = false)]
- public string UserPrincipalName { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AlertSettings.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AlertSettings.cs
deleted file mode 100644
index bf38981f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/AlertSettings.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// The Alert Dialog Setting contract
- ///
- [DataContract]
- public class AlertSettings
- {
- ///
- /// Gets or sets Name of Setting.
- ///
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets a value indicating whether true or false.
- ///
- [DataMember(Name = "value", IsRequired = false, EmitDefaultValue = true)]
- public bool Value { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/ESignOffer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/ESignOffer.cs
deleted file mode 100644
index 7271ee28..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/ESignOffer.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Diagnostics.CodeAnalysis;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// Esign Used for Offer
- ///
- [DataContract]
- public class ESignOffer
- {
- ///
- /// Gets or sets the identifier.
- ///
- ///
- /// The identifier.
- ///
- [DataMember(Name = "id")]
- public string ID { get; set; }
-
- ///
- /// Gets or sets the artifact identifier.
- ///
- ///
- /// The artifact identifier.
- ///
- [DataMember(Name = "offerId")]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets the external document identifier.
- ///
- ///
- /// The external document identifier.
- ///
- [DataMember(Name = "externalDocumentId")]
- public string ExternalDocumentID { get; set; }
-
- ///
- /// Gets or sets the esign type selected.
- ///
- ///
- /// The esign type selected.
- ///
- [DataMember(Name = "esignTypeSelected")]
- public ESignType EsignTypeSelected { get; set; }
-
- ///
- /// Gets or sets the name of the signing user.
- ///
- ///
- /// The name of the signing user.
- ///
- [DataMember(Name = "signingUserName")]
- public string SigningUserName { get; set; }
-
- ///
- /// Gets or sets the user object identifier.
- ///
- ///
- /// The user object identifier.
- ///
- [DataMember(Name = "userObjectId")]
- public string UserObjectId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/CandidateDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/CandidateDetail.cs
deleted file mode 100644
index 609b362e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/CandidateDetail.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2.Gdpr
-{
- ///
- /// Contract for Candidate informations details
- ///
- public class CandidateDetail
- {
- /// Gets or sets the value of given name
- public string GivenName { get; set; }
-
- /// Gets or sets the value of middle name
- public string MiddleName { get; set; }
-
- /// Gets or sets the value of surname
- public string Surname { get; set; }
-
- /// Gets or sets the value of primary email
- public string EmailPrimary { get; set; }
-
- /// Gets or sets the value of alternate email
- public string EmailAlternate { get; set; }
-
- /// Gets or sets the value of mobile phone
- public string MobilePhone { get; set; }
-
- /// Gets or sets the value of mobile phone
- public string WorkPhone { get; set; }
-
- /// Gets or sets the value of mobile phone
- public string HomePhone { get; set; }
-
- /// Gets or sets the value of FacebookId
- public string FacebookId { get; set; }
-
- /// Gets or sets the value of LinkedInId
- public string LinkedInId { get; set; }
-
- /// Gets or sets the value of TwitterId
- public string TwitterId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobApplicationDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobApplicationDetail.cs
deleted file mode 100644
index 7b85652d..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobApplicationDetail.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2.Gdpr
-{
- using System.Collections.Generic;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// Contract for Job Application Details.
- ///
- public class JobApplicationDetail
- {
- ///
- /// Gets or sets Application Id.
- ///
- public string ApplicationId { get; set; }
-
- ///
- /// Gets or sets Job Oepning Id.
- ///
- public string JobOpeningId { get; set; }
-
- ///
- /// Gets or sets Job Opening Title.
- ///
- public string JobOpeningTitle { get; set; }
-
- ///
- /// Gets or sets Hiring Team Role.
- ///
- public JobParticipantRole? Role { get; set; }
-
- ///
- /// Gets or sets the Offer Notes for the Job Application
- ///
- public List OfferNotes { get; set; }
-
- ///
- /// Gets or sets the OfferDetails for the Job Application
- ///
- public List JobOfferDetails { get; set; }
-
- ///
- /// Gets or sets the Candidate for the Job Application
- ///
- public CandidateDetail CandidateDetail { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferDetail.cs
deleted file mode 100644
index da912764..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferDetail.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2.Gdpr
-{
- using System;
- using System.Collections.Generic;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.TalentEntities.Enum;
-
- ///
- /// The person data contract.
- ///
- public class JobOfferDetail
- {
- ///
- /// Gets or sets Offer Id.
- ///
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets Application Id.
- ///
- public string ApplicationId { get; set; }
-
- ///
- /// Gets or sets offer comment of Candidate.
- ///
- public string CandidateComment { get; set; }
-
- ///
- /// Gets or sets candidate response date
- ///
- public DateTime? CandidateResponseDate { get; set; }
-
- ///
- /// Gets or sets offer comment of Owner.
- ///
- public string OwnerComment { get; set; }
-
- ///
- /// Gets or sets offer status.
- ///
- public OfferStatus? OfferStatus { get; set; }
-
- ///
- /// Gets or sets offer status reason.
- ///
- public OfferStatusReason? OfferStatusReason { get; set; }
-
- ///
- /// Gets or sets next version offer Id
- ///
- public string NextOfferId { get; set; }
-
- ///
- /// Gets or sets previous offer Id
- ///
- public string PreviousOfferId { get; set; }
-
- ///
- /// Gets or sets Decline comment
- ///
- public string DeclineComment { get; set; }
-
- ///
- /// Gets or sets Decline Reasons
- ///
- public OfferDeclineReason[] DeclineReasons { get; set; }
-
- ///
- /// Gets or sets non standard offer notes
- ///
- public string NonStandardOfferNotes { get; set; }
-
- ///
- /// Gets or sets close offer comments
- ///
- public string CloseOfferComment { get; set; }
-
- ///
- /// Gets or sets participant details
- ///
- public List OfferParticipants { get; set; }
-
- ///
- /// Gets or sets offer tokens detail
- ///
- public List OfferTokens { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferParticipantDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferParticipantDetail.cs
deleted file mode 100644
index fa7c4037..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferParticipantDetail.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2.Gdpr
-{
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// The person data contract.
- ///
- public class JobOfferParticipantDetail
- {
- ///
- /// Gets or sets Feedback
- ///
- public string Feedback { get; set; }
-
- ///
- /// Gets or sets OfferParticipant Role
- ///
- public OfferParticipantRole? Role { get; set; }
-
- ///
- /// Gets or sets LinkedIn Id
- ///
- public string LinkedInId { get; set; }
-
- ///
- /// Gets or sets Twitter Id
- ///
- public string TwitterId { get; set; }
-
- ///
- /// Gets or sets Facebook Id
- ///
- public string FacebookId { get; set; }
-
- ///
- /// Gets or sets Phone number
- ///
- public string PhoneNumber { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferTokensDetail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferTokensDetail.cs
deleted file mode 100644
index 3ee9a166..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/GDPR/JobOfferTokensDetail.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2.Gdpr
-{
- ///
- /// Gets or sets Token detail
- ///
- public class JobOfferTokensDetail
- {
- ///
- /// Gets or sets Token name
- ///
- public string TokenName { get; set; }
-
- ///
- /// Gets or sets Token Value
- ///
- public string Value { get; set; }
-
- ///
- /// Gets or sets Default Value
- ///
- public string DefaultValue { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/Offer.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/Offer.cs
deleted file mode 100644
index 647c0f94..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/Offer.cs
+++ /dev/null
@@ -1,309 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V1;
- using HR.TA.Common.TalentAttract.Contract;
-
- ///
- /// The Offer data contract
- ///
- [DataContract]
- public class Offer
- {
- ///
- /// Gets or sets OfferID of model
- ///
- [DataMember(Name = "offerID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets JobApplication ID of model
- ///
- [DataMember(Name = "jobApplicationID", IsRequired = false, EmitDefaultValue = false)]
- public string JobApplicationID { get; set; }
-
- ///
- /// Gets or sets Candidate name of model
- ///
- [DataMember(Name = "candidateName", IsRequired = false, EmitDefaultValue = false)]
- public string CandidateName { get; set; }
-
- ///
- /// Gets or sets the Candidate object identifier of model, if the candidate is internal.
- ///
- [IgnoreDataMember]
- public string CandidateOId { get; set; }
-
- ///
- /// Gets or sets OfferStatus.
- ///
- [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
- public OfferStatus? Status { get; set; }
-
- ///
- /// Gets or sets OfferStatusReason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false, EmitDefaultValue = false)]
- public OfferStatusReason? StatusReason { get; set; }
-
- ///
- /// Gets or sets offer comment.
- ///
- [DataMember(Name = "candidateComment", IsRequired = false, EmitDefaultValue = false)]
- public string CandidateComment { get; set; }
-
- ///
- /// Gets or sets offer comment.
- ///
- [DataMember(Name = "ownerComment", IsRequired = false, EmitDefaultValue = false)]
- public string OwnerComment { get; set; }
-
- ///
- /// Gets or sets a value indicating whether required documents
- ///
- [DataMember(Name = "isSignedDocumentRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsSignedDocumentRequired { get; set; }
-
- ///
- /// Gets or sets Offer artifacts.
- ///
- [DataMember(Name = "offerArtifacts", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferArtifacts { get; set; }
-
- ///
- /// Gets or sets Offer participants.
- ///
- [DataMember(Name = "offerParticipants", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferParticipants { get; set; }
-
- ///
- /// Gets or sets Offer accepted date.
- ///
- [DataMember(Name = "candidateResponseDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CandidateResponseDate { get; set; }
-
- ///
- /// Gets or sets Date when candidate uploads the documents successfully
- ///
- [DataMember(Name = "candidateDocumentUploadDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CandidateDocumentUploadDate { get; set; }
-
- ///
- /// Gets or sets a value indicating whether the offer exits multiple version
- ///
- [DataMember(Name = "isMultipleVersionExist", IsRequired = false, EmitDefaultValue = false)]
- public bool IsMultipleVersionExist { get; set; }
-
- ///
- /// Gets or sets previous Offer ID
- ///
- [DataMember(Name = "previousOfferID", IsRequired = false, EmitDefaultValue = false)]
- public string PreviousOfferID { get; set; }
-
- ///
- /// Gets or sets next OFfer ID
- ///
- [DataMember(Name = "nextOfferID", IsRequired = false, EmitDefaultValue = false)]
- public string NextOfferID { get; set; }
-
- ///
- /// Gets or sets a value indicating whether offer is locked or not
- ///
- [DataMember(Name = "isLocked", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsLocked { get; set; }
-
- ///
- /// Gets or sets a value indicating whether IsOkToContactCandidate after decline.
- ///
- [DataMember(Name = "isOkToContactCandidateAfterDecline", IsRequired = false)]
- public bool? IsOkToContactCandidateAfterDecline { get; set; }
-
- ///
- /// Gets or sets decline reasons.
- ///
- [DataMember(Name = "declineReasons", IsRequired = false)]
- public OfferDeclineReason[] DeclineReasons { get; set; }
-
- ///
- /// Gets or sets decline comment.
- ///
- [DataMember(Name = "declineComment", IsRequired = false)]
- public string DeclineComment { get; set; }
-
- ///
- /// Gets or sets Offer withdraw date.
- ///
- [DataMember(Name = "offerWithdrawDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferWithdrawDate { get; set; }
-
- ///
- /// Gets or sets job application.
- ///
- [IgnoreDataMember]
- public V1.Application Application { get; set; }
-
- ///
- /// Gets or sets the Job Application Activity
- ///
- [IgnoreDataMember]
- public string JobApplicationActivity { get; set; }
-
- ///
- /// Gets or sets the sections for the offer
- ///
- [DataMember(Name = "sections", IsRequired = false, EmitDefaultValue = false)]
- public IList Sections { get; set; }
-
- ///
- /// Gets or sets Template ID for the offer
- ///
- [DataMember(Name = "templateID", IsRequired = false, EmitDefaultValue = false)]
- public string TemplateID { get; set; }
-
- ///
- /// Gets or sets a value indicating the notes for non standard offer
- ///
- [DataMember(Name = "nonStandardOfferNotes", IsRequired = false, EmitDefaultValue = false)]
- public string NonStandardOfferNotes { get; set; }
-
- ///
- /// Gets or sets close offer comment.
- ///
- [DataMember(Name = "closeOfferComment", IsRequired = false)]
- public string CloseOfferComment { get; set; }
-
- ///
- /// Gets or sets OfferStatusReason before closing offer.
- ///
- [DataMember(Name = "statusReasonBeforeClose", IsRequired = false, EmitDefaultValue = false)]
- public OfferStatusReason? StatusReasonBeforeClose { get; set; }
-
- ///
- /// Gets or sets Offer close date.
- ///
- [DataMember(Name = "offerCloseDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferCloseDate { get; set; }
-
- ///
- /// Gets or sets a value indicating whether offer is sequential approval or not.
- ///
- [DataMember(Name = "isSequentialApprovalRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsSequentialApprovalRequired { get; set; }
-
- ///
- /// Gets or sets Offer expiration date.
- ///
- [DataMember(Name = "offerExpirationDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferExpirationDate { get; set; }
-
- ///
- /// Gets or sets Required Candidate Documents.
- ///
- [DataMember(Name = "requiredCandidateDocuments", IsRequired = false, EmitDefaultValue = false)]
- public List RequiredCandidateDocuments { get; set; }
-
- ///
- /// Gets or sets TokenValues
- ///
- [DataMember(Name = "tokenValues", IsRequired = false, EmitDefaultValue = false)]
- public IList TokenValues { get; set; }
-
- ///
- /// Gets or sets templatePackageID for the offer
- ///
- [DataMember(Name = "templatePackageID", IsRequired = false, EmitDefaultValue = false)]
- public string TemplatePackageID { get; set; }
-
- ///
- /// Gets or sets Template Package Name
- ///
- [DataMember(Name = "templatePackageName", IsRequired = false, EmitDefaultValue = false)]
- public string TemplatePackageName { get; set; }
-
- ///
- /// Gets or sets offer Package Documents.
- ///
- [DataMember(Name = "offerPackageDocuments", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferPackageDocuments { get; set; }
-
- ///
- /// Gets or sets Offer Publish date.
- ///
- [DataMember(Name = "offerPublishDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferPublishDate { get; set; }
-
- ///
- /// Gets or sets the company name
- ///
- [IgnoreDataMember]
- public string CompanyName { get; set; }
-
- ///
- /// Gets or sets the e sign type used.
- ///
- [DataMember(Name = "esignTypeUsed", IsRequired = false, EmitDefaultValue = true)]
- public ESignType ESignTypeUsed { get; set; }
-
- ///
- /// Gets or sets offer created date.
- ///
- [DataMember(Name = "createdDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CreatedDate { get; set; }
-
- ///
- /// Gets or sets the graph object identifier of the user who created the offer
- ///
- [DataMember(Name = "createdByOid", IsRequired = false, EmitDefaultValue = false)]
- public string CreatedByOid { get; set; }
-
- ///
- /// Gets or sets offer updated date.
- ///
- [DataMember(Name = "updatedDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? UpdatedDate { get; set; }
-
- ///
- /// Gets or sets the graph object identifier of the user who updated the offer
- ///
- [DataMember(Name = "updatedByOid", IsRequired = false, EmitDefaultValue = false)]
- public string UpdatedByOid { get; set; }
-
- ///
- /// Gets or sets the Offer Notes for the Job Application
- ///
- [DataMember(Name = "offerNotes", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferNotes { get; set; }
-
- ///
- /// Gets or sets the Optional tokens in the offer
- ///
- [DataMember(Name = "optionalTokens", IsRequired = false, EmitDefaultValue = false)]
- public IList OptionalTokens { get; set; }
-
- ///
- /// Gets or sets the current author participant id of the Offer
- ///
- [DataMember(Name = "currentAuthorParticipantId", IsRequired = false, EmitDefaultValue = false)]
- public string OfferCurrentAuthorParticipantId { get; set; }
-
- ///
- /// Gets or sets the author who created non standard notes
- ///
- [DataMember(Name = "NonStandardNotesCreatedBy", IsRequired = false, EmitDefaultValue = false)]
- public string NonStandardNotesCreatedBy { get; set; }
-
- ///
- /// Gets or sets the current author participant of the Offer
- ///
- [IgnoreDataMember]
- public OfferParticipant OfferCurrentAuthorParticipant { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferActivity.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferActivity.cs
deleted file mode 100644
index 06b09ce6..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferActivity.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// The Offer data contract
- ///
- [DataContract]
- public class OfferActivity
- {
- /// Gets or sets url.
- [DataMember(Name = "url", IsRequired = true)]
- public string Url { get; set; }
-
- /// Gets or sets the status.
- [DataMember(Name = "status", IsRequired = false)]
- public OfferStatus Status { get; set; }
-
- /// Gets or sets the job offer status reason.
- [DataMember(Name = "jobOfferStatusReason", IsRequired = false)]
- public OfferStatusReason? JobOfferStatusReason { get; set; }
-
- /// Gets or sets the OfferDate.
- [DataMember(Name = "offerDate", IsRequired = false)]
- public DateTime? OfferDate { get; set; }
-
- ///
- /// Gets or sets job hiring team.
- ///
- [DataMember(Name = "hiringTeam", IsRequired = false, EmitDefaultValue = false)]
- public IList HiringTeam { get; set; }
-
- ///
- /// Gets or sets a value indicating whether offer valid for candidate.
- ///
- [DataMember(Name = "isValidOfferVersion", IsRequired = false)]
- public bool? IsValidOfferVersion { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferApprovalEmail.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferApprovalEmail.cs
deleted file mode 100644
index 663ad8f0..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferApprovalEmail.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
-
- ///
- /// Approval email of an Offer.
- ///
- public class OfferApprovalEmail
- {
- ///
- /// Gets or sets Offer ID
- ///
- public string OfferId { get; set; }
-
- ///
- /// Gets or sets EmailSubject
- ///
- public string EmailSubject { get; set; }
-
- ///
- /// Gets or sets EmailContent
- ///
- public string EmailContent { get; set; }
-
- ///
- /// Gets or sets Email Cc
- ///
- public List EmailCc { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferArtifact.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferArtifact.cs
deleted file mode 100644
index fdf6ae35..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferArtifact.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.IO;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// The Offer Artifact data contract
- ///
- [DataContract]
- public class OfferArtifact
- {
- ///
- /// Gets or sets Offer Artifact ID of model
- ///
- [DataMember(Name = "offerArtifactID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferArtifactID { get; set; }
-
- ///
- /// Gets or sets name
- ///
- [DataMember(Name = "name", IsRequired = false, EmitDefaultValue = false)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets file label
- ///
- [DataMember(Name = "fileLabel", IsRequired = false, EmitDefaultValue = false)]
- public string FileLabel { get; set; }
-
- ///
- /// Gets or sets Description
- ///
- [DataMember(Name = "description", IsRequired = false, EmitDefaultValue = false)]
- public string Description { get; set; }
-
- ///
- /// Gets or sets Artifact Type
- ///
- [DataMember(Name = "artifactType", IsRequired = false)]
- public OfferArtifactType ArtifactType { get; set; }
-
- ///
- /// Gets or sets attachment document type.
- ///
- [DataMember(Name = "documentType", IsRequired = false)]
- public OfferArtifactDocumentType DocumentType { get; set; }
-
- ///
- /// Gets or sets uploaded by.
- ///
- [DataMember(Name = "uploadedBy", IsRequired = false)]
- public OfferArtifactUploadedBy? UploadedBy { get; set; }
-
- ///
- /// Gets or sets internalResourceUri.
- ///
- [IgnoreDataMember]
- public string InternalResourceUri { get; set; }
-
- ///
- /// Gets or sets externalResourceUri.
- ///
- [IgnoreDataMember]
- public string ExternalResourceUri { get; set; }
-
- ///
- /// Gets or sets Created Date Time.
- ///
- [IgnoreDataMember]
- public DateTime CreatedDateTime { get; set; }
-
- ///
- /// Gets or sets Contents.
- ///
- [IgnoreDataMember]
- public Stream Content { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferCandidate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferCandidate.cs
deleted file mode 100644
index d027cea1..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferCandidate.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.V1;
-
- ///
- /// The OfferCandidate data contract
- ///
- [DataContract]
- public class OfferCandidate
- {
- ///
- /// Gets or sets OfferActivity
- ///
- [DataMember(Name = "offerActivity", IsRequired = false, EmitDefaultValue = false)]
- public IEnumerable OfferActivity { get; set; }
-
- ///
- /// Gets or sets OfferDocument
- ///
- [DataMember(Name = "offerDocument", IsRequired = false, EmitDefaultValue = false)]
- public OfferDocument OfferDocument { get; set; }
-
- ///
- /// Gets or sets OfferPackageDocument
- ///
- [DataMember(Name = "offerPackageDocument", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferPackageDocument { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferContributorUpdate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferContributorUpdate.cs
deleted file mode 100644
index 152e0301..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferContributorUpdate.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Offer Contributor Update model
- ///
- [DataContract]
- public class OfferContributorUpdate : AadUser
- {
- ///
- /// Gets or sets Role of team member
- ///
- [DataMember(Name = "role")]
- public OfferParticipantRole Role { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocument.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocument.cs
deleted file mode 100644
index 1684f14a..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocument.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V1;
-
- ///
- /// The Offer data contract
- ///
- [DataContract]
- public class OfferDocument
- {
- ///
- /// Gets or sets OfferID of model
- ///
- [DataMember(Name = "offerID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets Offer artifacts.
- ///
- [DataMember(Name = "offerArtifacts", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferArtifacts { get; set; }
-
- ///
- /// Gets or sets Date when candidate uploads the documents successfully
- ///
- [DataMember(Name = "candidateDocumentUploadDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? CandidateDocumentUploadDate { get; set; }
-
- ///
- /// Gets or sets Offer expiration date.
- ///
- [DataMember(Name = "offerExpirationDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferExpirationDate { get; set; }
-
- ///
- /// Gets or sets Required Candidate Documents.
- ///
- [DataMember(Name = "requiredCandidateDocuments", IsRequired = false, EmitDefaultValue = false)]
- public List RequiredCandidateDocuments { get; set; }
-
- ///
- /// Gets or sets a value indicating whether gets or sets offer expiry status.
- ///
- [DataMember(Name = "IsOfferExpired", IsRequired = false, EmitDefaultValue = false)]
- public bool IsOfferExpired { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocumentSign.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocumentSign.cs
deleted file mode 100644
index ee9a1d00..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferDocumentSign.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Runtime.Serialization;
-
- /// The project artifact.
- [DataContract]
- public class OfferDocumentSign
- {
- /// Gets or sets the Candidate Name.
- [DataMember(Name = "candidateName")]
- public string CandidateName { get; set; }
-
- /// Gets or sets the offer id.
- [DataMember(Name = "offerId")]
- public string OfferId { get; set; }
-
- /// Gets or sets the offer id.
- [DataMember(Name = "offerPackageDocumentId")]
- public string OfferPackageDocumentId { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferFeedback.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferFeedback.cs
deleted file mode 100644
index fa1887d4..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferFeedback.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// The Offer participant feedback.
- ///
- [DataContract]
- public class OfferFeedback
- {
- ///
- /// Gets or sets Comment.
- ///
- [DataMember(Name = "comment", IsRequired = false, EmitDefaultValue = false)]
- public string Comment { get; set; }
-
- ///
- /// Gets or sets OfferParticipant's Status.
- ///
- [DataMember(Name = "status", IsRequired = false, EmitDefaultValue = false)]
- public OfferParticipantStatus? Status { get; set; }
-
- ///
- /// Gets or sets OfferParticipant's Status Reason.
- ///
- [DataMember(Name = "statusReason", IsRequired = false, EmitDefaultValue = false)]
- public OfferParticipantStatusReason? StatusReason { get; set; }
-
- ///
- /// Gets or sets the feedback requested date.
- ///
- [DataMember(Name = "requestDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? RequestDate { get; set; }
-
- ///
- /// Gets or sets feedback responded date.
- ///
- [DataMember(Name = "respondDate", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? RespondDate { get; set; }
-
- ///
- /// Gets or sets whether feedback was submitted.
- ///
- [DataMember(Name = "isSubmitted", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsSubmitted { get; set; }
-
- ///
- /// Gets or sets whether feedback was submitted.
- ///
- [DataMember(Name = "submittedBy", IsRequired = false, EmitDefaultValue = false)]
- public string SubmittedBy { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageAttachmentRequest.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageAttachmentRequest.cs
deleted file mode 100644
index 93264335..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageAttachmentRequest.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using Microsoft.AspNetCore.Http;
-
- ////TODO
- ///
- /// Specifies the Data Contract for Applicant Attachment Request
- ///
- [DataContract]
- public class OfferPackageAttachmentRequest
- {
- ///
- /// Gets or sets file which has attachment content
- ///
- [DataMember(Name = "files")]
- public IFormFileCollection Files { get; set; }
-
- ///
- /// Gets or sets name with which attachment should be tagged.
- ///
- [DataMember(Name = "fileLabels")]
- public IEnumerable FileLabels { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocument.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocument.cs
deleted file mode 100644
index 4674c7e2..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocument.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V1
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.V2;
-
- ///
- /// Specifies the Data Contract for Offer Package Document
- ///
- [DataContract]
- public class OfferPackageDocument
- {
- ///
- /// Gets or sets offerPackageDocumentId.
- ///
- [DataMember(Name = "offerPackageDocumentId", IsRequired = true)]
- public string OfferPackageDocumentId { get; set; }
-
- ///
- /// Gets or sets Template ID.
- ///
- [DataMember(Name = "templateID", IsRequired = false)]
- public string TemplateID { get; set; }
-
- ///
- /// Gets or sets Name
- ///
- [DataMember(Name = "name", IsRequired = false)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets a value indicating whether documnet is required or not.
- ///
- [DataMember(Name = "IsRequired", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsRequired { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Offer Text is Editable.
- ///
- [DataMember(Name = "isOfferTextEditable", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsOfferTextEditable { get; set; }
-
- ///
- /// Gets or sets Ordinal.
- ///
- [DataMember(Name = "ordinal", IsRequired = true)]
- public int Ordinal { get; set; }
-
- ///
- /// Gets or sets tokens.
- ///
- [DataMember(Name = "tokens", IsRequired = false, EmitDefaultValue = false)]
- public IList Tokens { get; set; }
-
- ///
- /// Gets or sets OfferArtifacts.
- ///
- [DataMember(Name = "offerArtifacts", IsRequired = false, EmitDefaultValue = false)]
- public IList OfferArtifacts { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Offer Document deleted.
- ///
- [DataMember(Name = "isDeleted", IsRequired = false, EmitDefaultValue = false)]
- public bool? IsDeleted { get; set; }
-
- ///
- /// Gets or sets a value indicating whether candidate sign is required or not.
- ///
- [DataMember(Name = "isCandidateSignRequired")]
- public bool? IsCandidateSignRequired { get; set; }
-
- ///
- /// Gets or sets a value indicating whether candidate has signed the document or not.
- ///
- [DataMember(Name = "candidateSigned")]
- public bool? CandidateSigned { get; set; }
-
- ///
- /// Gets or sets a value for candidate sign date
- ///
- [DataMember(Name = "candidateSignDate")]
- public DateTime? CandidateSignDate { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocumentsContent.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocumentsContent.cs
deleted file mode 100644
index acaacd9f..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferPackageDocumentsContent.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using Microsoft.AspNetCore.Http;
-
- //TODO
- ///
- /// Specifies the Data Contract for saving offer package documents
- ///
- [DataContract]
- public class OfferPackageDocumentsContent
- {
- ///
- /// Gets or sets file to be saved
- ///
- [DataMember(Name = "files", IsRequired = false)]
- public IList Files { get; set; }
-
- ///
- /// Gets or sets id of the file to be saved.
- ///
- [DataMember(Name ="offerPackageDocumentIds", IsRequired = false)]
- public IList OfferPackageDocumentIds { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipant.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipant.cs
deleted file mode 100644
index acc5a3e9..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipant.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Participant in if an Offer.
- ///
- [DataContract]
- public class OfferParticipant : Person
- {
- ///
- /// Gets or sets OfferParticipantID.
- ///
- [DataMember(Name = "offerParticipantID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferParticipantID { get; set; }
-
- ///
- /// Gets or sets role.
- ///
- [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = false)]
- public OfferParticipantRole? Role { get; set; }
-
- ///
- /// Gets or sets Offer Feedback
- ///
- [DataMember(Name = "feedback", IsRequired = false, EmitDefaultValue = false)]
- public OfferFeedback Feedback { get; set; }
-
- ///
- /// Gets or sets Ordinal of team member
- ///
- [DataMember(Name = "Ordinal", IsRequired = false, EmitDefaultValue = false)]
- public long? Ordinal { get; set; }
-
- ///
- /// Gets or sets OfferLastEditedOn of team member
- ///
- [DataMember(Name = "offerLastEditedOn", IsRequired = false, EmitDefaultValue = false)]
- public DateTime? OfferLastEditedOn { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipantUpdate.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipantUpdate.cs
deleted file mode 100644
index 25f0bf27..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferParticipantUpdate.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Offer Participant update model
- ///
- [DataContract]
- public class OfferParticipantUpdate : AadUser
- {
- ///
- /// Gets or sets Role of team member
- ///
- [DataMember(Name = "role")]
- public OfferParticipantRole Role { get; set; }
-
- ///
- /// Gets or sets Ordinal of team member
- ///
- [DataMember(Name = "Ordinal", IsRequired = false, EmitDefaultValue = false)]
- public long? Ordinal { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRuleset.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRuleset.cs
deleted file mode 100644
index 60af02b3..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRuleset.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Offer Ruleset
- ///
- [DataContract]
- public class OfferRuleset
- {
- ///
- /// Gets or sets Section Name.
- ///
- [DataMember(Name = "id", IsRequired = true)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets Section Color.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets rulesets.
- ///
- [DataMember(Name = "fields", IsRequired = false)]
- public IList Fields { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRulesetField.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRulesetField.cs
deleted file mode 100644
index 4749e879..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferRulesetField.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
-
- ///
- /// Specifies the Data Contract for Offer Ruleset Field
- ///
- [DataContract]
- public class OfferRulesetField
- {
- ///
- /// Gets or sets Section Name.
- ///
- [DataMember(Name = "id", IsRequired = true)]
- public string Id { get; set; }
-
- ///
- /// Gets or sets Section Color.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets token value for field
- ///
- [DataMember(Name = "value", IsRequired = false)]
- public string Value { get; set; }
-
- ///
- /// Gets or sets token display text for field
- ///
- [DataMember(Name = "displayText", IsRequired = false)]
- public string DisplayText { get; set; }
-
- ///
- /// Gets or sets data type of token.
- ///
- [DataMember(Name = "dataType", IsRequired = false)]
- public OfferTemplateRulesetFieldType? DataType { get; set; }
-
- ///
- /// Gets or sets a value indicating whether Token is Overridden or not
- ///
- [DataMember(Name = "isOverridden", IsRequired = false)]
- public bool IsOverridden { get; set; }
- }
-}
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferSection.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferSection.cs
deleted file mode 100644
index f3d8d72e..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferSection.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System.Collections.Generic;
- using System.Runtime.Serialization;
-
- ///
- /// Specifies the Data Contract for Offer Section
- ///
- [DataContract]
- public class OfferSection
- {
- ///
- /// Gets or sets Section Name.
- ///
- [DataMember(Name = "name", IsRequired = true)]
- public string Name { get; set; }
-
- ///
- /// Gets or sets Section Color.
- ///
- [DataMember(Name = "color", IsRequired = true)]
- public string Color { get; set; }
-
- ///
- /// Gets or sets tokens.
- ///
- [DataMember(Name = "tokens", IsRequired = false)]
- public IList Tokens { get; set; }
- }
-}
\ No newline at end of file
diff --git a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferTemplatePackage.cs b/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferTemplatePackage.cs
deleted file mode 100644
index e584b5b5..00000000
--- a/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/OfferTemplatePackage.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-//-----------------------------------------------------------------------
-// Copyright (c) Microsoft Corporation.
-// Licensed under the MIT License.
-//-----------------------------------------------------------------------
-
-namespace HR.TA.Common.OfferManagement.Contracts.V2
-{
- using System;
- using System.Collections.Generic;
- using System.Runtime.Serialization;
- using HR.TA.Common.OfferManagement.Contracts.Enums.V1;
- using HR.TA.Common.OfferManagement.Contracts.V1;
-
- ///
- /// The Offer data contract
- ///
- [DataContract]
- public class OfferTemplatePackage
- {
- ///
- /// Gets or sets OfferID of model
- ///
- [DataMember(Name = "offerID", IsRequired = true, EmitDefaultValue = false)]
- public string OfferID { get; set; }
-
- ///
- /// Gets or sets TokenValues
- ///
- [DataMember(Name = "tokenValues", IsRequired = false, EmitDefaultValue = false)]
- public IList TokenValues { get; set; }
-
- ///