last works ...
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
using xBotService.Models;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
using xBotService.Constants;
|
||||
using System.Threading;
|
||||
|
||||
namespace xBotService.Interfaces
|
||||
{
|
||||
public interface IXBotProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve Bot Info ...
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotResUser> GetMe(
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Sending Simple String Message to Bot ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="replyMarkup"></param>
|
||||
/// <param name="parseMode"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessageResponse> SendMessage(
|
||||
long chatId,
|
||||
string text,
|
||||
XBotReplyMarkup replyMarkup = null,
|
||||
XBotMessageParseMode parseMode = XBotMessageParseMode.Html,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Sending Verification Request Menu ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="label"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessageResponse> SendVerificationMenu(
|
||||
long chatId,
|
||||
string label = "🔐 دریافت کد وریفیکیشن",
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Send Verification Code to Requests ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="ttlSeconds"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessageResponse> SendVerificationCode(
|
||||
long chatId,
|
||||
string code,
|
||||
int ttlSeconds,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// an Accept for Exit Loading on Bot ...
|
||||
/// </summary>
|
||||
/// <param name="callbackQueryId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="showAlert"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessageResponse> AnswerCallbackQuery(
|
||||
string callbackQueryId,
|
||||
string text = null,
|
||||
bool showAlert = false,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Remove Inline Keyboard After Click (Optional) ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="messageId"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<XBotMessageResponse> RemoveInlineKeyboard(
|
||||
long chatId,
|
||||
long messageId,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve Messages ...
|
||||
/// </summary>
|
||||
/// <param name="offset"></param>
|
||||
/// <param name="timeout"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<XBotUpdate>> GetUpdates(
|
||||
long offset = 0,
|
||||
int timeout = 30,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Set Webhook for Retrieve Messages on Recieved ...
|
||||
/// </summary>
|
||||
/// <param name="webhookUrl"></param>
|
||||
/// <param name="secretToken"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> SetWebhook(
|
||||
string webhookUrl,
|
||||
string secretToken = null,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
using Newtonsoft.Json;
|
||||
using xCommons.Extensions;
|
||||
using xBotService.Constants;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xBotService.Models
|
||||
{
|
||||
// public class XBotMessageRequest
|
||||
// {
|
||||
// public long ChatId { get; set; }
|
||||
// public string Text { get; set; }
|
||||
// public XBotReplyMarkup ReplyMarkup { get; set; } = null;
|
||||
// public string ParseMode { get; set; } = XBotMessageParseMode.Html.GetStringValue();
|
||||
// }
|
||||
|
||||
// public class XBotReplyMarkup
|
||||
// {
|
||||
// public List<List<XBotInlineButton>> InlineKeyboard { get; set; }
|
||||
// }
|
||||
|
||||
// public class XBotInlineButton
|
||||
// {
|
||||
// public string Text { get; set; }
|
||||
// public string Url { get; set; }
|
||||
// public string CallbackData { get; set; }
|
||||
// }
|
||||
|
||||
// public class XBotMessageResponse
|
||||
// {
|
||||
// public bool Ok { get; set; }
|
||||
// public string Description { get; set; }
|
||||
// public XBotResMessage Result { get; set; }
|
||||
// }
|
||||
|
||||
// public class XBotResMessage
|
||||
// {
|
||||
// public long Date { get; set; }
|
||||
// public string Text { get; set; }
|
||||
// public long MessageId { get; set; }
|
||||
// public XBotResUser From { get; set; }
|
||||
// public XBotResChat Chat { get; set; }
|
||||
// }
|
||||
|
||||
public class XBotResUser
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonProperty("is_bot")]
|
||||
public bool IsBot { get; set; }
|
||||
|
||||
[JsonProperty("last_name")]
|
||||
public string LastName { get; set; }
|
||||
|
||||
[JsonProperty("username")]
|
||||
public string Username { get; set; }
|
||||
|
||||
[JsonProperty("first_name")]
|
||||
public string FirstName { get; set; }
|
||||
|
||||
[JsonProperty("language_code")]
|
||||
public string LanguageCode { get; set; }
|
||||
|
||||
[JsonProperty("has_main_web_app")]
|
||||
public string HasMainWebApp { get; set; }
|
||||
|
||||
[JsonProperty("has_topics_enabled")]
|
||||
public bool HasTopicsEnabled { get; set; }
|
||||
|
||||
[JsonProperty("allows_users_to_create_topics")]
|
||||
public bool AllowsUsersToCreateTopics { get; set; }
|
||||
}
|
||||
|
||||
// public class XBotResChat
|
||||
// {
|
||||
// public long Id { get; set; }
|
||||
// public string Type { get; set; }
|
||||
// public string Title { get; set; }
|
||||
// public string Username { get; set; }
|
||||
// public string FirstName { get; set; }
|
||||
// }
|
||||
|
||||
// public class XBotUpdate
|
||||
// {
|
||||
// public long UpdateId { get; set; }
|
||||
// public XBotResMessage Message { get; set; }
|
||||
// public XBotCallbackQuery CallbackQuery { get; set; }
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// Base Bot Response ...
|
||||
/// </summary>
|
||||
public class XBotResponse : XBotResponse<object>
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Base Bot Response ...
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class XBotResponse<T>
|
||||
{
|
||||
public bool Ok { get; set; }
|
||||
public T Result { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Bot Message Send Request ...
|
||||
/// </summary>
|
||||
public class XBotSendMessageRequest
|
||||
{
|
||||
[JsonProperty("chat_id")]
|
||||
public long ChatId { get; set; }
|
||||
|
||||
[JsonProperty("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonProperty("reply_markup")]
|
||||
public object ReplyMarkup { get; set; }
|
||||
|
||||
[JsonProperty("message_thread_id")]
|
||||
public long MessageThreadId { get; set; }
|
||||
|
||||
[JsonProperty("reply_to_message_id")]
|
||||
public long ReplyToMessageId { get; set; }
|
||||
}
|
||||
|
||||
// public class XBotCallbackQuery
|
||||
// {
|
||||
// public string Id { get; set; }
|
||||
// public string Data { get; set; }
|
||||
// public XBotResUser From { get; set; }
|
||||
// public XBotResMessage Message { get; set; }
|
||||
// }
|
||||
}
|
||||
@@ -0,0 +1,973 @@
|
||||
using System;
|
||||
using RestSharp;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Constants;
|
||||
using xBotService.Models;
|
||||
using xCommons.Extensions;
|
||||
using xBotService.Constants;
|
||||
using xExceptions.Constants;
|
||||
using xBotService.Interfaces;
|
||||
using xIdentityModels.Models;
|
||||
using System.Threading.Tasks;
|
||||
using xHttpService.Constants;
|
||||
using xIdentityService.Models;
|
||||
using xHttpService.Interfaces;
|
||||
using RestSharp.Authenticators;
|
||||
using xIdentityModels.Constants;
|
||||
using xBotService.Configuration;
|
||||
using xIdentityModels.Extensions;
|
||||
using xIdentityService.Constants;
|
||||
using System.Collections.Generic;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xIdentityService.Configuration;
|
||||
|
||||
namespace xBotService.Providers
|
||||
{
|
||||
public class XBotProvider : IXBotProvider
|
||||
{
|
||||
//
|
||||
private readonly IXHttpProvider httpProvider;
|
||||
private readonly ILogger<XBotProvider> logger;
|
||||
private readonly IXTokenProvider tokenProvider;
|
||||
private readonly IXIdentityProvider identityProvider;
|
||||
private readonly XValidationProvider validationProvider;
|
||||
private readonly XBotServiceConfiguration configuration;
|
||||
private readonly XIdentityServiceConfiguration identityConfiguration;
|
||||
|
||||
public XBotProvider(
|
||||
IXHttpProvider httpProvider,
|
||||
ILogger<XBotProvider> logger,
|
||||
IXTokenProvider tokenProvider,
|
||||
IXIdentityProvider identityProvider,
|
||||
XValidationProvider validationProvider,
|
||||
XBotServiceConfiguration configuration,
|
||||
XIdentityServiceConfiguration identityConfiguration
|
||||
)
|
||||
{
|
||||
//
|
||||
this.logger = logger;
|
||||
this.httpProvider = httpProvider;
|
||||
this.tokenProvider = tokenProvider;
|
||||
this.configuration = configuration;
|
||||
this.identityProvider = identityProvider;
|
||||
this.validationProvider = validationProvider;
|
||||
this.identityConfiguration = identityConfiguration;
|
||||
}
|
||||
|
||||
//
|
||||
#region Tools ...
|
||||
/// <summary>
|
||||
/// Get an Instance of Http Client
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public HttpClient GetHttpClient()
|
||||
{
|
||||
//
|
||||
HttpClient httpClient = null;
|
||||
|
||||
//
|
||||
// httpClient = new HttpClient ();
|
||||
var httpClientHandler = new HttpClientHandler()
|
||||
{
|
||||
ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) =>
|
||||
{
|
||||
//
|
||||
logger.LogInformation(
|
||||
$"XSSL Handler: {Environment.NewLine}, sender: {sender}, {Environment.NewLine} cert: {cert}, {Environment.NewLine} chain: {chain}, {Environment.NewLine} sslPolicyErrors: {sslPolicyErrors}"
|
||||
);
|
||||
|
||||
//
|
||||
return true;
|
||||
},
|
||||
ClientCertificateOptions = ClientCertificateOption.Manual,
|
||||
};
|
||||
httpClient = new HttpClient(httpClientHandler);
|
||||
|
||||
//
|
||||
// Set Timeout ...
|
||||
// TODO: Fix this ...
|
||||
// httpClient.Timeout = TimeSpan
|
||||
// .FromSeconds (identityConfiguration.DefaultClientTimeout);
|
||||
|
||||
//
|
||||
return httpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get an Instance of RestClient
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public RestClient GetRestClient(XTokenResponse tokens = null)
|
||||
{
|
||||
//
|
||||
var client = new RestClient(configuration.BaseRoute);
|
||||
|
||||
//
|
||||
// Set Authenticator ...
|
||||
if (!tokens.IsNull() &&
|
||||
!tokens.AccessToken.IsNullOrEmpty())
|
||||
{
|
||||
client.Authenticator = new JwtAuthenticator(tokens.AccessToken);
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Token ...
|
||||
if (!tokens.IsNull() &&
|
||||
!tokens.RefreshToken.IsNullOrEmpty())
|
||||
{
|
||||
client.AddDefaultHeader(XAuthorization.RefreshToken, tokens.RefreshToken);
|
||||
}
|
||||
|
||||
//
|
||||
// ExpiresAt ...
|
||||
if (!tokens.IsNull() &&
|
||||
tokens.ExpiresAt > 0)
|
||||
{
|
||||
client.AddDefaultHeader(XAuthorization.ExpiresAt, tokens.ExpiresAt.AsHttpParamString());
|
||||
}
|
||||
|
||||
//
|
||||
// Set Default Timeout ...
|
||||
client.Timeout = configuration.DefaultClientTimeout;
|
||||
|
||||
//
|
||||
// SSL Validation Handler ...
|
||||
client.RemoteCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) =>
|
||||
{
|
||||
//
|
||||
logger.LogInformation(
|
||||
$"XSSL Handler: {Environment.NewLine}, sender: {sender}, {Environment.NewLine} cert: {cert}, {Environment.NewLine} chain: {chain}, {Environment.NewLine} sslPolicyErrors: {sslPolicyErrors}"
|
||||
);
|
||||
|
||||
//
|
||||
return true;
|
||||
};
|
||||
|
||||
//
|
||||
return client;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get an Instance of RestRequest
|
||||
/// </summary>
|
||||
public RestRequest GetRestRequest(
|
||||
XBotEndpoints endpoint,
|
||||
bool addXPoweredValue = true,
|
||||
IDictionary<string, string> @params = null,
|
||||
IDictionary<string, string> headers = null,
|
||||
IDictionary<string, string> queryStrings = null
|
||||
)
|
||||
{
|
||||
//
|
||||
var url = endpoint.GetStringValue();
|
||||
|
||||
//
|
||||
// Add Route Payloads ...
|
||||
if (!@params.IsNull() && @params.Count > 0)
|
||||
{
|
||||
//
|
||||
var enumerator = @params.GetEnumerator();
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
|
||||
//
|
||||
url = url.Replace(item.Key, item.Value.ToUrlEncoded());
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Add Query Strings ...
|
||||
if (!queryStrings.IsNull() && queryStrings.Count > 0)
|
||||
{
|
||||
//
|
||||
url = $"{url}?";
|
||||
var enumerator = queryStrings.GetEnumerator();
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
|
||||
//
|
||||
url += $"{item.Key}={item.Value.ToUrlEncoded()}&";
|
||||
}
|
||||
|
||||
//
|
||||
// remove lates & ...
|
||||
if (url.EndsWith("&"))
|
||||
{
|
||||
url = url.Substring(0, url.Length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Create request ...
|
||||
var request = new RestRequest(url, DataFormat.Json);
|
||||
|
||||
//
|
||||
if (addXPoweredValue)
|
||||
{
|
||||
request.AddHeader(XAuthorization.XPoweredBy, identityConfiguration.XPoweredValue);
|
||||
}
|
||||
|
||||
//
|
||||
// Add Headers to request ...
|
||||
if (!headers.IsNull() && headers.Count > 0)
|
||||
{
|
||||
//
|
||||
var enumerator = headers.GetEnumerator();
|
||||
while (enumerator.MoveNext())
|
||||
{
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
request.AddHeader(item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return request;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handle Call Specific Request and retrieve Response
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="method"></param>
|
||||
/// <param name="supportRefreshingTokens"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns></returns>
|
||||
public async Task<T> RunRestRequest<T>(
|
||||
RestClient client,
|
||||
RestRequest request,
|
||||
XHttpMethod method,
|
||||
bool supportRefreshingTokens = true,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var response = await Task.Run(async () =>
|
||||
{
|
||||
//
|
||||
IRestResponse resp = null;
|
||||
|
||||
//
|
||||
// Call Endpoint Service using Specified Method ...
|
||||
switch (method)
|
||||
{
|
||||
//
|
||||
// Get ...
|
||||
case XHttpMethod.GET:
|
||||
resp = client.Get(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Put ...
|
||||
case XHttpMethod.PUT:
|
||||
resp = client.Put(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Post ...
|
||||
case XHttpMethod.POST:
|
||||
resp = client.Post(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Delete ...
|
||||
case XHttpMethod.DELETE:
|
||||
resp = client.Delete(request);
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
if (!resp.IsSuccessful)
|
||||
{
|
||||
//
|
||||
// Log Exception ...
|
||||
logger.LogError($"Error: {resp.ErrorMessage}");
|
||||
logger.LogError($"Exception: {resp.ErrorException.ToJSON()}");
|
||||
if (!resp.ErrorMessage.IsNullOrEmpty() &&
|
||||
resp.ErrorMessage.Contains("timed out"))
|
||||
{
|
||||
XException.Timeout.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Tokens or Issue Correct Exception ...
|
||||
if (supportRefreshingTokens &&
|
||||
resp.StatusCode == System.Net.HttpStatusCode.Unauthorized)
|
||||
{
|
||||
//
|
||||
var isRefreshed = request.Parameters.Any(rp =>
|
||||
rp.Name == XParam.XIsRefreshed.GetStringValue() &&
|
||||
rp.Value.ToString().ToNormalString() == true.ToJSON());
|
||||
|
||||
//
|
||||
logger.LogInformation($"isRefreshed: {isRefreshed}");
|
||||
|
||||
//
|
||||
// Get Access Token ...
|
||||
XTokenResponse tokens = null;
|
||||
var accessToken = request.Parameters.FirstOrDefault(rp =>
|
||||
rp.Name.ToNormalString() == XAuthorization.Header.ToNormalString()).Value.ToString();
|
||||
if (!accessToken.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
accessToken = accessToken.Replace(XAuthorization.TokenIdentifier, "");
|
||||
|
||||
//
|
||||
if (!accessToken.IsNullOrEmpty())
|
||||
{
|
||||
tokens = await tokenProvider.RetrieveToken(accessToken);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Token and then re do request ...
|
||||
if (!isRefreshed &&
|
||||
!accessToken.IsNullOrEmpty() &&
|
||||
!tokens.IsNull() &&
|
||||
tokens.IsRefreshable())
|
||||
{
|
||||
//
|
||||
request.AddHeader(XParam.XIsRefreshed.GetStringValue(), true.ToJSON());
|
||||
|
||||
//
|
||||
// Refreshe Tokens ...
|
||||
var refreshedTokens = await identityProvider.RefreshTokens(tokens);
|
||||
|
||||
//
|
||||
// Renew Rest Client with Refreshed Tokens ...
|
||||
var timeout = client.Timeout;
|
||||
client = GetRestClient(refreshedTokens);
|
||||
client.Timeout = Timeout.Infinite;
|
||||
|
||||
//
|
||||
// Do Request Again using renew Client ...
|
||||
return await RunRestRequest<T>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: method);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
var ex = resp.Content.ToXError();
|
||||
if (!ex.IsNull())
|
||||
{
|
||||
throw ex.ToException();
|
||||
}
|
||||
|
||||
//
|
||||
// UnAuthorized ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.Unauthorized)
|
||||
{
|
||||
XException.NotAuthorized.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// NotFound ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.NotFound)
|
||||
{
|
||||
XException.NotFound.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
XException.ActionFailed.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var result = resp.Content.FromJSON<T>();
|
||||
return result;
|
||||
}, cancellationToken);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
public async Task<XBaseRestResponse<T>> RunRestRequestByResponse<T>(
|
||||
RestClient client,
|
||||
RestRequest request,
|
||||
XHttpMethod method,
|
||||
bool supportRefreshingTokens = true,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var response = await Task.Run(async () =>
|
||||
{
|
||||
//
|
||||
IRestResponse resp = null;
|
||||
|
||||
//
|
||||
// Call Endpoint Service using Specified Method ...
|
||||
switch (method)
|
||||
{
|
||||
//
|
||||
// Get ...
|
||||
case XHttpMethod.GET:
|
||||
resp = client.Get(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Put ...
|
||||
case XHttpMethod.PUT:
|
||||
resp = client.Put(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Post ...
|
||||
case XHttpMethod.POST:
|
||||
resp = client.Post(request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Delete ...
|
||||
case XHttpMethod.DELETE:
|
||||
resp = client.Delete(request);
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
if (!resp.IsSuccessful)
|
||||
{
|
||||
//
|
||||
// Log Exception ...
|
||||
logger.LogError($"Error: {resp.ErrorMessage}");
|
||||
logger.LogError($"Exception: {resp.ErrorException.ToJSON()}");
|
||||
if (!resp.ErrorMessage.IsNullOrEmpty() &&
|
||||
resp.ErrorMessage.Contains("timed out"))
|
||||
{
|
||||
XException.Timeout.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Tokens or Issue Correct Exception ...
|
||||
if (supportRefreshingTokens &&
|
||||
resp.StatusCode == System.Net.HttpStatusCode.Unauthorized)
|
||||
{
|
||||
//
|
||||
var isRefreshed = request.Parameters.Any(rp =>
|
||||
rp.Name == XParam.XIsRefreshed.GetStringValue() &&
|
||||
rp.Value.ToString().ToNormalString() == true.ToJSON());
|
||||
|
||||
//
|
||||
logger.LogInformation($"isRefreshed: {isRefreshed}");
|
||||
|
||||
//
|
||||
// Get Access Token ...
|
||||
XTokenResponse tokens = null;
|
||||
var accessToken = request.Parameters.FirstOrDefault(rp =>
|
||||
rp.Name.ToNormalString() == XAuthorization.Header.ToNormalString()).Value.ToString();
|
||||
if (!accessToken.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
accessToken = accessToken.Replace(XAuthorization.TokenIdentifier, "");
|
||||
|
||||
//
|
||||
if (!accessToken.IsNullOrEmpty())
|
||||
{
|
||||
tokens = await tokenProvider.RetrieveToken(accessToken);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Token and then re do request ...
|
||||
if (!isRefreshed &&
|
||||
!accessToken.IsNullOrEmpty() &&
|
||||
!tokens.IsNull() &&
|
||||
tokens.IsRefreshable())
|
||||
{
|
||||
//
|
||||
request.AddHeader(XParam.XIsRefreshed.GetStringValue(), true.ToJSON());
|
||||
|
||||
//
|
||||
// Refreshe Tokens ...
|
||||
var refreshedTokens = await identityProvider.RefreshTokens(tokens);
|
||||
|
||||
//
|
||||
// Renew Rest Client with Refreshed Tokens ...
|
||||
var timeout = client.Timeout;
|
||||
client = GetRestClient(refreshedTokens);
|
||||
client.Timeout = Timeout.Infinite;
|
||||
|
||||
//
|
||||
// Do Request Again using renew Client ...
|
||||
return await RunRestRequestByResponse<T>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: method
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
var ex = resp.Content.ToXError();
|
||||
if (!ex.IsNull())
|
||||
{
|
||||
throw ex.ToException();
|
||||
}
|
||||
|
||||
//
|
||||
// UnAuthorized ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.Unauthorized)
|
||||
{
|
||||
XException.NotAuthorized.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// NotFound ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.NotFound)
|
||||
{
|
||||
XException.NotFound.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
XException.ActionFailed.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var result = new XBaseRestResponse<T>
|
||||
{
|
||||
Response = resp,
|
||||
Model = resp.Content.FromJSON<T>()
|
||||
};
|
||||
|
||||
//
|
||||
return result;
|
||||
}, cancellationToken);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get User SelectBy Param
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <param name="forceNotNull"></param>
|
||||
/// <param name="excludes"></param>
|
||||
/// <returns></returns>
|
||||
public string GetUserSelectByParam(
|
||||
XActionRequest model,
|
||||
bool forceNotNull = true,
|
||||
ICollection<XUserSelectBy> excludes = null
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate Args ...
|
||||
validationProvider.NotNull(model);
|
||||
|
||||
//
|
||||
var id = model.UserId;
|
||||
var userName = model.UserName;
|
||||
var email = model.Email;
|
||||
var phoneNumber = model.MobileNumber;
|
||||
|
||||
//
|
||||
if (excludes != null)
|
||||
{
|
||||
//
|
||||
if (excludes.Contains(XUserSelectBy.ID))
|
||||
{
|
||||
id = null;
|
||||
}
|
||||
if (excludes.Contains(XUserSelectBy.Email))
|
||||
{
|
||||
email = null;
|
||||
}
|
||||
if (excludes.Contains(XUserSelectBy.MobileNumber))
|
||||
{
|
||||
phoneNumber = null;
|
||||
}
|
||||
if (excludes.Contains(XUserSelectBy.Username))
|
||||
{
|
||||
userName = null;
|
||||
}
|
||||
}
|
||||
|
||||
var selectByParam =
|
||||
id.IsNullOrEmpty() ?
|
||||
userName.IsNullOrEmpty() ?
|
||||
email.IsNullOrEmpty() ?
|
||||
phoneNumber.IsNullOrEmpty() ? null : phoneNumber : email : userName : id;
|
||||
|
||||
//
|
||||
// Check result ...
|
||||
if (forceNotNull &&
|
||||
selectByParam.IsNullOrEmpty())
|
||||
{
|
||||
XException.InvalidData.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
return selectByParam;
|
||||
}
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Service ...
|
||||
/// <summary>
|
||||
/// Retrieve Bot Info ...
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotResUser> GetMe(
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.GetMe,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
var response = await RunRestRequest<XBotResUser>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.GET,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sending Simple String Message to Bot ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="replyMarkup"></param>
|
||||
/// <param name="parseMode"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotMessageResponse> SendMessage(
|
||||
long chatId,
|
||||
string text,
|
||||
XBotReplyMarkup replyMarkup = null,
|
||||
XBotMessageParseMode parseMode = XBotMessageParseMode.Html,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
if (chatId <= 0 || text.IsNullOrEmpty())
|
||||
{
|
||||
XException.InvalidArgs.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.SendMessage,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
request.AddJsonBody(new
|
||||
{
|
||||
text = text,
|
||||
caht_id = chatId,
|
||||
reply_markup = replyMarkup,
|
||||
parse_mode = parseMode.GetStringValue()
|
||||
});
|
||||
|
||||
//
|
||||
var response = await RunRestRequest<XBotMessageResponse>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.POST,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sending Verification Request Menu ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="label"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotMessageResponse> SendVerificationMenu(
|
||||
long chatId,
|
||||
string label = "🔐 دریافت کد وریفیکیشن",
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
if (chatId <= 0 || label.IsNullOrEmpty())
|
||||
{
|
||||
XException.InvalidArgs.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
// Markup for Keyboards ...
|
||||
var markup = new XBotReplyMarkup
|
||||
{
|
||||
//
|
||||
InlineKeyboard =
|
||||
[
|
||||
//
|
||||
[
|
||||
//
|
||||
new XBotInlineButton
|
||||
{
|
||||
Text = label,
|
||||
CallbackData = "request_verification_code"
|
||||
}
|
||||
]
|
||||
]
|
||||
};
|
||||
|
||||
//
|
||||
var response = await SendMessage(
|
||||
chatId: chatId,
|
||||
text: "برای دریافت کد وریفیکیشن روی دکمه زیر کلیک کنید:",
|
||||
replyMarkup: markup,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send Verification Code to Requests ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="ttlSeconds"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotMessageResponse> SendVerificationCode(
|
||||
long chatId,
|
||||
string code,
|
||||
int ttlSeconds,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validate ...
|
||||
if (chatId <= 0 || ttlSeconds < 60 || code.IsNullOrEmpty())
|
||||
{
|
||||
XException.InvalidArgs.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var minutes = ttlSeconds / 60;
|
||||
var response = await SendMessage(
|
||||
chatId: chatId,
|
||||
cancellationToken: cancellationToken,
|
||||
text: $"✅ کد وریفیکیشن شما:\n\n<code>{code}</code>\n\n⏱ این کد تا {minutes} دقیقه معتبر است."
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// an Accept for Exit Loading on Bot ...
|
||||
/// </summary>
|
||||
/// <param name="callbackQueryId"></param>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="showAlert"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotMessageResponse> AnswerCallbackQuery(
|
||||
string callbackQueryId,
|
||||
string text = null,
|
||||
bool showAlert = false,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validation ...
|
||||
validationProvider.GroupValidationBuilder()
|
||||
.AddNotEmpty(callbackQueryId)
|
||||
.ValidateGroup();
|
||||
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.AnswerCallbackQuery,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
request.AddJsonBody(new
|
||||
{
|
||||
text = text,
|
||||
show_alert = showAlert,
|
||||
callback_query_id = callbackQueryId,
|
||||
});
|
||||
|
||||
//
|
||||
var response = await RunRestRequest<XBotMessageResponse>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.POST,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove Inline Keyboard After Click (Optional) ...
|
||||
/// </summary>
|
||||
/// <param name="chatId"></param>
|
||||
/// <param name="messageId"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<XBotMessageResponse> RemoveInlineKeyboard(
|
||||
long chatId,
|
||||
long messageId,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
// Validation ...
|
||||
if (chatId <= 0 || messageId <= 0)
|
||||
{
|
||||
XException.InvalidArgs.Throw();
|
||||
}
|
||||
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.EditMessageReplyMarkup,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
request.AddJsonBody(new
|
||||
{
|
||||
chat_id = chatId,
|
||||
message_id = messageId,
|
||||
reply_markup = new { inline_keyboard = new List<List<object>>() }
|
||||
});
|
||||
|
||||
//
|
||||
var response = await RunRestRequest<XBotMessageResponse>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.POST,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve Messages ...
|
||||
/// </summary>
|
||||
/// <param name="offset"></param>
|
||||
/// <param name="timeout"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<List<XBotUpdate>> GetUpdates(
|
||||
long offset = 0,
|
||||
int timeout = 30,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.GetUpdates,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
},
|
||||
queryStrings: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XOffest, offset.ToString() },
|
||||
{ XBotParams.XTimeout, timeout.ToString() }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
var iResponse = await RunRestRequest<XBotUpdatesResponse>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.GET,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
var response = iResponse.Result ?? [];
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set Webhook for Retrieve Messages on Recieved ...
|
||||
/// </summary>
|
||||
/// <param name="webhookUrl"></param>
|
||||
/// <param name="secretToken"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public virtual async Task<bool> SetWebhook(
|
||||
string webhookUrl,
|
||||
string secretToken = null,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var client = GetRestClient();
|
||||
var request = GetRestRequest(
|
||||
endpoint: XBotEndpoints.SetWebhook,
|
||||
@params: new Dictionary<string, string>
|
||||
{
|
||||
{ XBotParams.XTokenParam, configuration.Token }
|
||||
}
|
||||
);
|
||||
|
||||
//
|
||||
request.AddJsonBody(new
|
||||
{
|
||||
url = webhookUrl,
|
||||
secret_token = secretToken
|
||||
});
|
||||
|
||||
//
|
||||
var iResponse = await RunRestRequest<XBotMessageResponse>(
|
||||
client: client,
|
||||
request: request,
|
||||
method: XHttpMethod.POST,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
var response = iResponse?.Ok ?? false;
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+52
-52
@@ -1,5 +1,5 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\public-api.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\public-api.ts
|
||||
|
||||
/*
|
||||
* Public API Surface of x-framework-api-sdk
|
||||
@@ -101,7 +101,7 @@ export * from './lib/x-saherelm-api.service';
|
||||
// Module ...
|
||||
export * from './lib/x-saherelm-api-sdk.module';
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\x-saherelm-api-sdk.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\x-saherelm-api-sdk.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
@@ -130,7 +130,7 @@ import { XFrameworkIdentitySdkModule } from 'x-framework-identity-sdk';
|
||||
})
|
||||
export class XSaherElmApiSdkModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\x-saherelm-api.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\x-saherelm-api.service.ts
|
||||
|
||||
import { XLoggable } from 'x-framework-core';
|
||||
import { Inject, Injectable } from '@angular/core';
|
||||
@@ -163,7 +163,7 @@ export class XSaherElmAPIService extends XLoggable {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\i-x-entity-actions.interface.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\i-x-entity-actions.interface.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { XBaseRangeRequestDto } from 'x-framework-core';
|
||||
@@ -638,7 +638,7 @@ export interface IXEntityActions<TModel, TKey> {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\x-base-entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\x-base-entity.service.ts
|
||||
|
||||
import {
|
||||
XQueryDto,
|
||||
@@ -1437,7 +1437,7 @@ export abstract class XBaseEntityService<TModel, TKey>
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\x-base.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\base\x-base.guard.ts
|
||||
|
||||
import {
|
||||
Route,
|
||||
@@ -1551,7 +1551,7 @@ export abstract class XBaseGuard
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\config\x-saherelm-api-sdk.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\config\x-saherelm-api-sdk.config.ts
|
||||
|
||||
import { XFrameworkCoreConfig } from 'x-framework-core';
|
||||
import { XFrameworkServicesConfig } from 'x-framework-services';
|
||||
@@ -1573,7 +1573,7 @@ export interface XSaherElmApiSDKConfig extends XSharedConfig {
|
||||
corsBypasserProxy: string;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\configurations\x-configurations.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\configurations\x-configurations.service.ts
|
||||
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable, Inject } from '@angular/core';
|
||||
@@ -1606,7 +1606,7 @@ export class XConfigurationsService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\x-file.services.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\x-file.services.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XFileEntityService } from './services/x-file.entity.service';
|
||||
@@ -1630,7 +1630,7 @@ export class XFileServices {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\x-file.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\x-file.typings.ts
|
||||
|
||||
/**
|
||||
* All Available EndPoint Routes ...
|
||||
@@ -1662,7 +1662,7 @@ export enum XFileParam {
|
||||
Files = 'files',
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\models\x-file.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\models\x-file.dto.ts
|
||||
|
||||
import {
|
||||
XBaseDto,
|
||||
@@ -1868,7 +1868,7 @@ export function fileEntityToDto(
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.entity.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.entity.push.service.ts
|
||||
|
||||
import { Injectable } from "@angular/core";
|
||||
import { XFileEntity } from "../models/x-file.dto";
|
||||
@@ -1895,7 +1895,7 @@ export class XFileEntityPushService extends XBaseEntityPushService<XFileEntity>
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.entity.service.ts
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
@@ -1937,7 +1937,7 @@ export class XFileEntityService extends XBaseEntityService<
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.provider.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\files\services\x-file.provider.service.ts
|
||||
|
||||
import {
|
||||
toArray,
|
||||
@@ -2948,7 +2948,7 @@ export class XFileProviderService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\admin-or-agent.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\admin-or-agent.guard.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XBaseGuard } from '../base/x-base.guard';
|
||||
@@ -2964,7 +2964,7 @@ export class AdminOrAgentGuard extends XBaseGuard {
|
||||
];
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\admin.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\admin.guard.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XBaseGuard } from '../base/x-base.guard';
|
||||
@@ -2977,7 +2977,7 @@ export class AdminGuard extends XBaseGuard {
|
||||
roles = XAvailableRoles.Admin;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\agent.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\agent.guard.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XBaseGuard } from '../base/x-base.guard';
|
||||
@@ -2990,7 +2990,7 @@ export class AgentGuard extends XBaseGuard {
|
||||
roles = XAvailableRoles.Agent;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\user.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\guards\user.guard.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XBaseGuard } from '../base/x-base.guard';
|
||||
@@ -3003,7 +3003,7 @@ export class UserGuard extends XBaseGuard {
|
||||
roles = XAvailableRoles.User;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\models\x-person.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\models\x-person.dto.ts
|
||||
|
||||
import {
|
||||
XBaseDto,
|
||||
@@ -3086,7 +3086,7 @@ export const isXPersonDto = typeGuard<XPersonDto>([
|
||||
'lastname',
|
||||
]);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\models\x-reference.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\models\x-reference.dto.ts
|
||||
|
||||
import {
|
||||
nameof,
|
||||
@@ -3302,7 +3302,7 @@ export function references2String<T = any>(
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\services\x-push-token-fetcher.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\services\x-push-token-fetcher.service.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
@@ -3360,7 +3360,7 @@ export class XPushTokenFetcherService
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\x-string.services.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\x-string.services.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XStringEntityService } from './services/x-string.entity.service';
|
||||
@@ -3384,7 +3384,7 @@ export class XStringServices {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\x-string.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\x-string.typings.ts
|
||||
|
||||
/**
|
||||
* All Available EndPoint Routes ...
|
||||
@@ -3438,7 +3438,7 @@ export enum XStringParam {
|
||||
Language = 'language',
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\models\x-string.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\models\x-string.dto.ts
|
||||
|
||||
import {
|
||||
XBaseDto,
|
||||
@@ -3633,7 +3633,7 @@ export const isXStringDto = typeGuard<XStringDto>([
|
||||
'translatedValue',
|
||||
]);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.entity.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.entity.push.service.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XStringDto } from '../models/x-string.dto';
|
||||
@@ -3660,7 +3660,7 @@ export class XStringEntityPushService extends XBaseEntityPushService<XStringDto>
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.entity.service.ts
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
@@ -3702,7 +3702,7 @@ export class XStringEntityService extends XBaseEntityService<
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.provider.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\strings\services\x-string.provider.service.ts
|
||||
|
||||
import {
|
||||
HttpEvent,
|
||||
@@ -5547,7 +5547,7 @@ export class XStringProviderService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\x-tag.services.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\x-tag.services.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XTagEntityService } from './services/x-tag.entity.service';
|
||||
@@ -5571,7 +5571,7 @@ export class XTagServices {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\x-tag.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\x-tag.typings.ts
|
||||
|
||||
/**
|
||||
* All Available EndPoint Routes ...
|
||||
@@ -5597,7 +5597,7 @@ export enum XTagParam {
|
||||
Query = 'query'
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\models\x-tag.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\models\x-tag.dto.ts
|
||||
|
||||
import {
|
||||
hasChild,
|
||||
@@ -5738,7 +5738,7 @@ export function tagEntity2Dto(value: XTagEntity) {
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.entity.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.entity.push.service.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XTagEntity } from '../models/x-tag.dto';
|
||||
@@ -5773,7 +5773,7 @@ export class XTagEntityPushService extends XBaseEntityPushService<XTagEntity> {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.entity.service.ts
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
import { XTagEntity } from '../models/x-tag.dto';
|
||||
@@ -5815,7 +5815,7 @@ export class XTagEntityService extends XBaseEntityService<
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.provider.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tags\services\x-tag.provider.service.ts
|
||||
|
||||
import {
|
||||
toArray,
|
||||
@@ -6472,7 +6472,7 @@ export class XTagProviderService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\x-terms.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\x-terms.service.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XTermsPushService } from './services/x-terms.push.service';
|
||||
@@ -6494,7 +6494,7 @@ export class XTermsServices {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\x-terms.typings.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\x-terms.typings.dto.ts
|
||||
|
||||
/**
|
||||
* All Available EndPoint Routes ...
|
||||
@@ -6516,7 +6516,7 @@ export enum XTermsParam {
|
||||
Language = 'language',
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\services\x-terms.provider.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\services\x-terms.provider.service.ts
|
||||
|
||||
import {
|
||||
HttpEvent,
|
||||
@@ -7026,7 +7026,7 @@ export class XTermsProviderService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\services\x-terms.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\terms\services\x-terms.push.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import {
|
||||
@@ -7198,7 +7198,7 @@ export class XTermsPushService extends XBasePushService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tokens\x-injectable-tokens.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tokens\x-injectable-tokens.ts
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { XSaherElmApiSDKConfig } from '../config/x-saherelm-api-sdk.config';
|
||||
@@ -7207,7 +7207,7 @@ export const X_SAHERELM_API_SDK_CONFIG = new InjectionToken<XSaherElmApiSDKConfi
|
||||
'x_config'
|
||||
);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-model.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-model.tools.ts
|
||||
|
||||
import { isArray, isObject } from 'x-framework-core';
|
||||
|
||||
@@ -7232,7 +7232,7 @@ export function prepareModel<T>(model: T) {
|
||||
return model;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-role.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-role.tools.ts
|
||||
|
||||
import {
|
||||
toArray,
|
||||
@@ -7521,7 +7521,7 @@ export function extractAvaialableRoles() {
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-route.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\tools\x-route.tools.ts
|
||||
|
||||
import {
|
||||
hasChild,
|
||||
@@ -7562,7 +7562,7 @@ export function fillRouteParams(
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-endpoint.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-endpoint.typings.ts
|
||||
|
||||
//
|
||||
//#region Custom Header and Params ...
|
||||
@@ -7656,7 +7656,7 @@ export enum XConfigurationEndPoint {
|
||||
export type XConfigurationEndPoints = keyof typeof XConfigurationEndPoint;
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-push-provider.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-push-provider.typings.ts
|
||||
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
import { isNullOrEmptyString, isNullOrUndefined } from 'x-framework-core';
|
||||
@@ -7692,7 +7692,7 @@ export function applyConnectionIdToHeader(
|
||||
return headers;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-role.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\typings\x-role.typings.ts
|
||||
|
||||
export enum XAvailableRoles {
|
||||
Admin = 'admin',
|
||||
@@ -7722,7 +7722,7 @@ export interface XUserRoleInfo {
|
||||
isUser: boolean;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\x-webinar.services.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\x-webinar.services.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XWebinarPushService } from './services/x-webinar.push.service';
|
||||
@@ -7750,7 +7750,7 @@ export class XWebinarServices {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\x-webinar.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\x-webinar.typings.ts
|
||||
|
||||
/**
|
||||
* All Available EndPoint Routes ...
|
||||
@@ -7835,7 +7835,7 @@ export enum XWebinarEntityPushAction {
|
||||
Unsubscribe = 'Unsubscribe',
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\models\x-webinar.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\models\x-webinar.dto.ts
|
||||
|
||||
import {
|
||||
XBaseDto,
|
||||
@@ -8037,7 +8037,7 @@ export const isXWebinarDto = typeGuard<XWebinarDto>([
|
||||
'title',
|
||||
]);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.entity.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.entity.push.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import { Injectable } from '@angular/core';
|
||||
@@ -8207,7 +8207,7 @@ export class XWebinarEntityPushService extends XBaseEntityPushService<XWebinarDt
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.entity.service.ts
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
@@ -8249,7 +8249,7 @@ export class XWebinarEntityService extends XBaseEntityService<
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.provider.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.provider.service.ts
|
||||
|
||||
import {
|
||||
toArray,
|
||||
@@ -10108,7 +10108,7 @@ export class XWebinarProviderService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinar.push.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import {
|
||||
@@ -10371,7 +10371,7 @@ export class XWebinarPushService extends XBaseWebRTCService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinarsubscriber.entity.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xApiSDKHolder\projects\x-saherelm-api-sdk\src\lib\webinars\services\x-webinarsubscriber.entity.service.ts
|
||||
|
||||
import { Router } from '@angular/router';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
@@ -1,67 +0,0 @@
|
||||
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xBotService\Constants\ConfigurationNodeNames.cs
|
||||
|
||||
namespace xBotService.Constants
|
||||
{
|
||||
public partial struct ConfigurationNodeNames
|
||||
{
|
||||
public const string BOT_SERVICE_NODE = "BotServiceConfiguration";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xBotService\Models\Dtos\XBotUserDto.cs
|
||||
|
||||
using xModels.Base;
|
||||
using xModels.Dtos;
|
||||
|
||||
namespace xBotService.Models.Dtos
|
||||
{
|
||||
/// <summary>
|
||||
/// Bot User / System User Relation ...
|
||||
/// </summary>
|
||||
public class XBotUserDto : XBaseIntIDEntityDto
|
||||
{
|
||||
/// <summary>
|
||||
/// User Id ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// System Person Information ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public virtual XPersonDto User { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Chat Bot User Name ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string BotUserName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xBotService\Models\Entities\XBotUser.cs
|
||||
|
||||
using xModels.Base;
|
||||
|
||||
namespace xBotService.Models.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Bot User / System User Relation ...
|
||||
/// </summary>
|
||||
public class XBotUser : XBaseIntIDEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// User Id ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Chat Bot User Name ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string BotUserName { get; set; }
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+274
-274
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,253 +0,0 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xExceptions\Attributes\StringValueAttribute.cs
|
||||
|
||||
using System;
|
||||
|
||||
namespace xExceptions.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// an attribute which attached to enums to carry propper string
|
||||
/// </summary>
|
||||
public partial class StringValueAttribute : Attribute {
|
||||
public string StringValue { get; set; }
|
||||
|
||||
public StringValueAttribute (string value) {
|
||||
this.StringValue = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xExceptions\Constants\XException.cs
|
||||
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xExceptions.Constants
|
||||
{
|
||||
public enum XException {
|
||||
//
|
||||
#region Invalid Exceptions 1xx ...
|
||||
[StringValue ("Invalid Data ...")]
|
||||
InvalidData = 100,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Date ...")]
|
||||
InvalidDate = 101,
|
||||
|
||||
//
|
||||
[StringValue ("Bad Request ...")]
|
||||
BadRequest = 102,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Args ...")]
|
||||
InvalidArgs = 103,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Message ...")]
|
||||
InvalidMessage = 104,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Token ...")]
|
||||
InvalidToken = 105,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Verification Code ...")]
|
||||
InvalidVerificationCode = 106,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Email Address ...")]
|
||||
InvalidEmailAddress = 107,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Mobile Number ...")]
|
||||
InvalidMobileNumber = 108,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Password ...")]
|
||||
InvalidPassword = 109,
|
||||
|
||||
//
|
||||
[StringValue ("Inavlid Url ...")]
|
||||
InavlidUrl = 110,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Device ...")]
|
||||
InvalidDevice = 111,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Profile Image ...")]
|
||||
InvalidProfileImage = 112,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid File ...")]
|
||||
InavlidFile = 113,
|
||||
|
||||
//
|
||||
[StringValue ("Invalid Username ...")]
|
||||
InvalidUserName = 114,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Not (...) Exceptions 2xx ...
|
||||
//
|
||||
[StringValue ("Not Found ...")]
|
||||
NotFound = 200,
|
||||
|
||||
//
|
||||
[StringValue ("Not Allowed ...")]
|
||||
NotAllowed = 201,
|
||||
|
||||
//
|
||||
[StringValue ("Not Authorized ...")]
|
||||
NotAuthorized = 202,
|
||||
|
||||
//
|
||||
[StringValue ("Not Visible ...")]
|
||||
NotVisible = 203,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region User/Registration/Account/Bann Exceptions 3xx ...
|
||||
//
|
||||
[StringValue ("Account Locked out Until:{0}")]
|
||||
AccountLockedOut = 300,
|
||||
|
||||
//
|
||||
[StringValue ("Login Failed ...")]
|
||||
LoginFailed = 301,
|
||||
|
||||
//
|
||||
[StringValue ("User Registered Before ...")]
|
||||
UserRegisteredBefore = 302,
|
||||
|
||||
//
|
||||
[StringValue ("User Disabled ...")]
|
||||
UserDisabled = 303,
|
||||
//
|
||||
[StringValue ("Device Banned Until:{0}")]
|
||||
DeviceBanned = 304,
|
||||
|
||||
//
|
||||
[StringValue ("You can't Request Verification code Until:{0}")]
|
||||
VerificationCodeResendNotAllowed = 305,
|
||||
|
||||
//
|
||||
[StringValue ("Passwords Same ...")]
|
||||
PasswordsSame = 306,
|
||||
|
||||
//
|
||||
[StringValue ("Mobiles Same ...")]
|
||||
MobilesSame = 307,
|
||||
|
||||
//
|
||||
[StringValue ("Emails Same ...")]
|
||||
EmailsSame = 308,
|
||||
|
||||
//
|
||||
[StringValue ("Mobile In Used ...")]
|
||||
MobileInUsed = 309,
|
||||
|
||||
//
|
||||
[StringValue ("Email In Used ...")]
|
||||
EmailInUsed = 310,
|
||||
|
||||
//
|
||||
[StringValue ("Mobile Not Confirmed ...")]
|
||||
MobileNotConfirmed = 311,
|
||||
|
||||
//
|
||||
[StringValue ("Email Not Confirmed ...")]
|
||||
EmailNotConfirmed = 312,
|
||||
|
||||
//
|
||||
[StringValue ("Post Banned ...")]
|
||||
PostBanned = 313,
|
||||
|
||||
//
|
||||
[StringValue ("User Banned ...")]
|
||||
UserBanned = 314,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region General Exceptions 4xx ...
|
||||
//
|
||||
[StringValue ("Unknown Error ...")]
|
||||
Unknown = 400,
|
||||
|
||||
//
|
||||
[StringValue ("Duplicate ...")]
|
||||
Duplicate = 401,
|
||||
|
||||
//
|
||||
[StringValue ("Action Failed ...")]
|
||||
ActionFailed = 402,
|
||||
|
||||
//
|
||||
[StringValue ("Expired Date ...")]
|
||||
ExpiredDate = 403,
|
||||
|
||||
//
|
||||
[StringValue ("Unavailable ...")]
|
||||
Unavailable = 404,
|
||||
|
||||
//
|
||||
[StringValue ("Max Allowed Tag Exceeded ...")]
|
||||
MaxAllowedTagExceeded = 405,
|
||||
|
||||
//
|
||||
[StringValue ("Timed out ...")]
|
||||
Timeout = 406,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region File Exceptions 5xx ...
|
||||
//
|
||||
[StringValue ("Empty File ...")]
|
||||
EmptyFile = 500,
|
||||
|
||||
//
|
||||
[StringValue ("max File size exceeded ...")]
|
||||
MaxFileSizeExceeded = 501,
|
||||
|
||||
//
|
||||
[StringValue ("Unsupported File Type ...")]
|
||||
UnsupportedFileType = 502,
|
||||
|
||||
//
|
||||
[StringValue ("Max Allowed Media Exceeded ...")]
|
||||
MaxAllowedMediaExceeded = 503,
|
||||
#endregion
|
||||
|
||||
//
|
||||
#region Configuration Exceptions 6xx ...
|
||||
//
|
||||
[StringValue ("Invalid Configuration ...")]
|
||||
InvalidConfiguration = 600,
|
||||
|
||||
//
|
||||
[StringValue ("Storage Service Initiallization Failed ...")]
|
||||
StorageServiceInitialFailed = 601,
|
||||
|
||||
//
|
||||
[StringValue ("Message Service Initialization Failed ...")]
|
||||
MessageServiceInitialFailed = 602,
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xExceptions\Models\XError.cs
|
||||
|
||||
namespace xExceptions.Models {
|
||||
public partial class XError {
|
||||
/// <summary>
|
||||
/// th ID of Error
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// the String Value of Error
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+358
-358
File diff suppressed because it is too large
Load Diff
+81
-81
@@ -1,5 +1,5 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\jalali-moment.d.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\jalali-moment.d.ts
|
||||
|
||||
declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
||||
declare function moment(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
||||
@@ -760,7 +760,7 @@ declare namespace moment {
|
||||
|
||||
export = moment;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\public-api.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\public-api.ts
|
||||
|
||||
/*
|
||||
* Public API Surface of x-framework-core
|
||||
@@ -894,7 +894,7 @@ export * from './lib/modules/x-directives.module';
|
||||
export * from './lib/x-framework-core.module';
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\test.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\test.ts
|
||||
|
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
@@ -923,7 +923,7 @@ const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\x-framework-core.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\x-framework-core.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicModule } from '@ionic/angular'
|
||||
@@ -947,14 +947,14 @@ import { XHammerGestureConfig } from './classes/x-hammer-gesture-config';
|
||||
})
|
||||
export class XFrameworkCoreModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-base.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-base.service.ts
|
||||
|
||||
import { XLoggable } from './x-loggable';
|
||||
|
||||
export abstract class XBaseService extends XLoggable {
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-hammer-gesture-config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-hammer-gesture-config.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HammerGestureConfig } from '@angular/platform-browser';
|
||||
@@ -974,7 +974,7 @@ export class XHammerGestureConfig extends HammerGestureConfig {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-loggable.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-loggable.ts
|
||||
|
||||
import {
|
||||
isNullOrUndefined,
|
||||
@@ -1097,7 +1097,7 @@ export abstract class XLoggable implements GetLogTag {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-persian-date-adapter.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-persian-date-adapter.ts
|
||||
|
||||
import * as moment_ from 'jalali-moment';
|
||||
const moment = moment_;
|
||||
@@ -1347,7 +1347,7 @@ export const LocaleFactory = () => {
|
||||
return window[XParam.Language];
|
||||
};
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-renderer.class.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\classes\x-renderer.class.ts
|
||||
|
||||
import {
|
||||
NgZone,
|
||||
@@ -1779,7 +1779,7 @@ export class XRenderer extends XLoggable {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\config\x-framework-core.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\config\x-framework-core.config.ts
|
||||
|
||||
import { XCountryCode } from '../typings/x.typings';
|
||||
import { XNotificationSound } from '../typings/x-notification.typings';
|
||||
@@ -1848,7 +1848,7 @@ export interface XFrameworkCoreConfig {
|
||||
defaultActionDelay: number;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-border.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-border.enum.ts
|
||||
|
||||
export enum XBorderStyle {
|
||||
Dotted = 'dotted',
|
||||
@@ -1865,7 +1865,7 @@ export enum XBorderStyle {
|
||||
|
||||
export type XBorderStyleIdentifier = XBorderStyle | string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-crud.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-crud.enum.ts
|
||||
|
||||
export enum XCrudAction {
|
||||
Add = 'add',
|
||||
@@ -1875,7 +1875,7 @@ export enum XCrudAction {
|
||||
|
||||
export type XCrudActionIdentifier = XCrudAction | string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-exception.resources.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-exception.resources.ts
|
||||
|
||||
import { XExceptionIndex } from '../typings/x-exception.typings';
|
||||
|
||||
@@ -2237,7 +2237,7 @@ export const Exceptions: XExceptionIndex = {
|
||||
//#endregion
|
||||
};
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-file.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-file.enum.ts
|
||||
|
||||
//
|
||||
//#region XFile Types ...
|
||||
@@ -2828,7 +2828,7 @@ export const XFileInfos = [
|
||||
];
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-header.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-header.enum.ts
|
||||
|
||||
export enum XHeader {
|
||||
File = 'file',
|
||||
@@ -2855,7 +2855,7 @@ export function getAuthorizationHeaderValue(token: string) {
|
||||
return `${XHeader.AuthorizationPrefix}${token}`;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-param.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-param.enum.ts
|
||||
|
||||
export enum XParam {
|
||||
//
|
||||
@@ -2900,13 +2900,13 @@ export enum XParam {
|
||||
|
||||
export type XParamIdentifier = XParam | string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-setting.resources.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-setting.resources.ts
|
||||
|
||||
export enum XSettingsStorageKey {
|
||||
Locale = '[SETTINGS] Locale'
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-translation.resources.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x-translation.resources.ts
|
||||
|
||||
export enum XResourceIDs {
|
||||
//
|
||||
@@ -3143,11 +3143,11 @@ export enum XResourceIDs {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x.constants.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\constants\x.constants.ts
|
||||
|
||||
export const DEFAULT_JAVASCRIPT_VOID_HREF = 'javascript:void(0)';
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-clipboard.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-clipboard.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3197,7 +3197,7 @@ export class XClipboardDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-color.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-color.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3298,7 +3298,7 @@ export class XColorDirective implements OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-droppable.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-droppable.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3536,7 +3536,7 @@ export class XDroppableDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-file-reader.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-file-reader.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3674,7 +3674,7 @@ export class XFileReaderDirective implements OnInit, OnChanges, OnDestroy {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-focus-handler.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-focus-handler.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3784,7 +3784,7 @@ export class XFocusedHandlerDirective {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-focus.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-focus.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3878,7 +3878,7 @@ export class XFocusDirective
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-formatter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-formatter.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -3942,7 +3942,7 @@ export class XFormatterDirective implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-mouse-handler.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-mouse-handler.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -4132,7 +4132,7 @@ export class XMouseHandlerDirective
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-enter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-enter.directive.ts
|
||||
|
||||
import { Directive, Output, EventEmitter, HostListener } from '@angular/core';
|
||||
|
||||
@@ -4153,7 +4153,7 @@ export class XOnEnterDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-escape.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-escape.directive.ts
|
||||
|
||||
import { Directive, Output, EventEmitter, HostListener } from '@angular/core';
|
||||
|
||||
@@ -4174,7 +4174,7 @@ export class XOnEscapeDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-outside-click.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-on-outside-click.directive.ts
|
||||
|
||||
import {
|
||||
Output,
|
||||
@@ -4206,7 +4206,7 @@ export class XOutsideClickDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-render.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-render.directive.ts
|
||||
|
||||
import {
|
||||
Directive,
|
||||
@@ -4272,7 +4272,7 @@ export class XRenderDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-scroll-behavior.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-scroll-behavior.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -4604,7 +4604,7 @@ export class XScrollBehaviourDirective
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-slider.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-slider.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -4725,7 +4725,7 @@ export class XSliderDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-stop-click-propagation.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-stop-click-propagation.directive.ts
|
||||
|
||||
import { Directive, HostListener } from '@angular/core';
|
||||
|
||||
@@ -4740,7 +4740,7 @@ export class XStopClickPropagationDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-var.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\directives\x-var.directive.ts
|
||||
|
||||
import {
|
||||
isNullOrUndefined,
|
||||
@@ -4797,7 +4797,7 @@ export class XVarDirective {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\guards\x-can-deactivate.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\guards\x-can-deactivate.guard.ts
|
||||
|
||||
import {
|
||||
CanDeactivate,
|
||||
@@ -4830,7 +4830,7 @@ export class XCanDeactivateGuard implements CanDeactivate<XCanDeactivate> {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-base-dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-base-dto.ts
|
||||
|
||||
import { isSameObject } from '../tools/x-object.tools';
|
||||
|
||||
@@ -4894,7 +4894,7 @@ export interface XBaseStorableDto<T> extends XBaseDto {
|
||||
id?: T
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-base.indexed.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-base.indexed.dto.ts
|
||||
|
||||
import { XBaseDto } from './x-base-dto';
|
||||
|
||||
@@ -4907,7 +4907,7 @@ export interface XBaseIndexedDto<T, TKey, Tindex> extends XBaseDto {
|
||||
export interface XBaseIntIndexedDto<T>
|
||||
extends XBaseIndexedDto<T, string, number> {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-grouped-data.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\models\x-grouped-data.dto.ts
|
||||
|
||||
import { XBaseDto } from "./x-base-dto";
|
||||
|
||||
@@ -4917,7 +4917,7 @@ export interface XGroupedDataDto<T, TGroupedy> extends XBaseDto {
|
||||
timeStamp: Date;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\modules\x-directives.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\modules\x-directives.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
@@ -5026,7 +5026,7 @@ import { XStopClickPropagationDirective } from '../directives/x-stop-click-propa
|
||||
})
|
||||
export class XDirectivesModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-as.pipe.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-as.pipe.ts
|
||||
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@@ -5047,7 +5047,7 @@ export class XAsPipe implements PipeTransform {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-formatter.pipe.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-formatter.pipe.ts
|
||||
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { applyFormat, clearFormat } from '../tools/x-formatter.tools';
|
||||
@@ -5089,7 +5089,7 @@ export class XFormatterPipe implements PipeTransform {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-log.pipe.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-log.pipe.ts
|
||||
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@@ -5111,7 +5111,7 @@ export class XLogPipe implements PipeTransform {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-safe-html.pipe.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\pipes\x-safe-html.pipe.ts
|
||||
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
@@ -5130,7 +5130,7 @@ export class XSafeHtmlPipe implements PipeTransform {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tokens\x-injectable-tokens.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tokens\x-injectable-tokens.ts
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { XFrameworkCoreConfig } from '../config/x-framework-core.config';
|
||||
@@ -5139,7 +5139,7 @@ export const X_FRAMEWORK_CORE_CONFIG = new InjectionToken<XFrameworkCoreConfig>(
|
||||
'x_config'
|
||||
);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-array.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-array.tools.ts
|
||||
|
||||
//
|
||||
//#region Array Tools ...
|
||||
@@ -5451,7 +5451,7 @@ export function isXEqual<T>(a: T[], b: T[]): boolean {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-color.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-color.tools.ts
|
||||
|
||||
import {
|
||||
isNumber,
|
||||
@@ -6669,7 +6669,7 @@ export function getXColorValue(color: XColorIdentifier) {
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-date-time.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-date-time.tools.ts
|
||||
|
||||
import {
|
||||
isDate,
|
||||
@@ -7246,7 +7246,7 @@ export function isValueDate(source: any) {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-exception.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-exception.tools.ts
|
||||
|
||||
import {
|
||||
keys,
|
||||
@@ -7394,7 +7394,7 @@ export type XExceptionIdentifier =
|
||||
| XException
|
||||
| string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-file.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-file.tools.ts
|
||||
|
||||
import {
|
||||
XMimeType,
|
||||
@@ -8629,7 +8629,7 @@ export function downloadFile(
|
||||
//#endregion
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-formatter.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-formatter.tools.ts
|
||||
|
||||
import { hasChild } from './x-array.tools';
|
||||
import { removeAll } from './x-string.tools';
|
||||
@@ -8919,7 +8919,7 @@ function getCurrencyFormattedValue(options: XFormatterOption, value: any) {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-number.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-number.tools.ts
|
||||
|
||||
//
|
||||
//#region Number Tools ...
|
||||
@@ -8946,7 +8946,7 @@ export function random(min?: number, max?: number) {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-object.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-object.tools.ts
|
||||
|
||||
import {
|
||||
isDate,
|
||||
@@ -10113,7 +10113,7 @@ export function waitForXElements(selector: string): Promise<HTMLElement[]> {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-observable.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-observable.tools.ts
|
||||
|
||||
import {
|
||||
of,
|
||||
@@ -10302,7 +10302,7 @@ export function nextSubjectWhenElementExists<TAction>(
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-page.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-page.tools.ts
|
||||
|
||||
import { toPromise } from './x-observable.tools';
|
||||
import { XPage } from '../typings/x-page.typings';
|
||||
@@ -10451,7 +10451,7 @@ export async function parentPagesByRoute(
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-string.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-string.tools.ts
|
||||
|
||||
import { Md5 } from 'md5-typescript';
|
||||
import { hasChild, toArray } from './x-array.tools';
|
||||
@@ -10970,7 +10970,7 @@ export function parseListString(listString: string, seperator: string = ',') {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-task.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-task.tools.ts
|
||||
|
||||
export const taskIdStartKey = '_[';
|
||||
export const taskIdEndKey = ']';
|
||||
@@ -11062,7 +11062,7 @@ export function setTaskId(key: string | any, id: string | any) {
|
||||
return `${key.toString()}${taskIdStartKey}${id.toString()}${taskIdEndKey}`;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-to-form-data.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-to-form-data.ts
|
||||
|
||||
import {
|
||||
isDate,
|
||||
@@ -11213,7 +11213,7 @@ export async function logFormData(source: FormData) {
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-convert.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-convert.tools.ts
|
||||
|
||||
//
|
||||
//#region Type Converter ...
|
||||
@@ -11275,7 +11275,7 @@ export function toBoolean(object: any) {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-defaults.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-defaults.tools.ts
|
||||
|
||||
import {
|
||||
isArray,
|
||||
@@ -11343,7 +11343,7 @@ export function getDefaultValue<T>(t: XStandardType<T>): Observable<T> {
|
||||
);
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-detect.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-type-detect.tools.ts
|
||||
|
||||
/**
|
||||
* Custom Data Types ...
|
||||
@@ -11561,7 +11561,7 @@ export function isPromise(variable: any) {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-uuid-tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\tools\x-uuid-tools.ts
|
||||
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { v5 as uuidv5 } from 'uuid';
|
||||
@@ -11580,11 +11580,11 @@ export function generateUuid(
|
||||
return result;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-base-component.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-base-component.typings.ts
|
||||
|
||||
export const DEFAULT_EXPORT_TYPING_BASE = 'default';
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-color.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-color.typings.ts
|
||||
|
||||
//
|
||||
import { XBaseKeyValue } from './x.typings';
|
||||
@@ -11692,7 +11692,7 @@ export type XColorFormatIdentifier = XColorFormat | string;
|
||||
export interface XColorKeyValue extends XBaseKeyValue<string> {}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-date-time.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-date-time.typings.ts
|
||||
|
||||
export enum XUnitOfTime {
|
||||
Year,
|
||||
@@ -11700,7 +11700,7 @@ export enum XUnitOfTime {
|
||||
Day
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-exception.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-exception.typings.ts
|
||||
|
||||
import { XExceptionIDs, Exceptions } from '../constants/x-exception.resources';
|
||||
|
||||
@@ -11716,7 +11716,7 @@ export type XExceptionIndex = {
|
||||
|
||||
export type XExceptions = keyof typeof Exceptions;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-manager.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-manager.typings.ts
|
||||
|
||||
export enum XUiEvent {
|
||||
//
|
||||
@@ -11739,7 +11739,7 @@ export enum XUiEvent {
|
||||
Ready
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-notification.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-notification.typings.ts
|
||||
|
||||
import {
|
||||
AlertInput,
|
||||
@@ -12004,7 +12004,7 @@ export interface XPickerOptions extends XXPickerOptions {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-page.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-page.typings.ts
|
||||
|
||||
import { XOneOrManyType } from './x.typings';
|
||||
import { XResourceIdentifier } from './x-translation.typings';
|
||||
@@ -12020,7 +12020,7 @@ export interface XPage {
|
||||
description?: XResourceIdentifier;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-query.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-query.typings.ts
|
||||
|
||||
export interface XBaseDataPagerQuery {
|
||||
filter?: string;
|
||||
@@ -12033,7 +12033,7 @@ export interface XBaseDataPagerQueryResult<T = any> {
|
||||
items: T[];
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-setting.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-setting.typings.ts
|
||||
|
||||
export type XOrientation = 'landscape' | 'portrait';
|
||||
|
||||
@@ -12062,7 +12062,7 @@ export type XCssProperties =
|
||||
| 'toolbar-height'
|
||||
| string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-storage.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-storage.typings.ts
|
||||
|
||||
/**
|
||||
* represent a single item which can be stored ...
|
||||
@@ -12072,7 +12072,7 @@ export interface XStorageItem {
|
||||
value: string;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-task-manager.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-task-manager.typings.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { XException } from './x-exception.typings';
|
||||
@@ -12093,7 +12093,7 @@ export interface XTask<T> {
|
||||
error?: XException;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-theme-manager.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-theme-manager.typings.ts
|
||||
|
||||
export enum XThemeType {
|
||||
Light = 'light',
|
||||
@@ -12231,7 +12231,7 @@ export interface XThemePack {
|
||||
dark: XThemeDescriptor;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-translation.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x-translation.typings.ts
|
||||
|
||||
import { XResourceIDs } from '../constants/x-translation.resources';
|
||||
import { toEnNumbers, toPersianNumbers } from '../tools/x-string.tools';
|
||||
@@ -12285,7 +12285,7 @@ export function applyLocale(content: string, locale: XLocale = 'en-US') {
|
||||
|
||||
export type XResourceIdentifier = XResourceIDs | XTranslationId | string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\typings\x.typings.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import { XFileBlob } from '../tools/x-file.tools';
|
||||
@@ -12517,7 +12517,7 @@ export type XGConstructor<T = {}> = new (...args: any[]) => T;
|
||||
export type XConstructor = new (...args: any[]) => {};
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-general-validators.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-general-validators.ts
|
||||
|
||||
import {
|
||||
XPhoneNumber,
|
||||
@@ -12836,7 +12836,7 @@ export class XValidators {
|
||||
}
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-email.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-email.directive.ts
|
||||
|
||||
import { Directive } from '@angular/core';
|
||||
import { isValidEmail } from './x-general-validators';
|
||||
@@ -12868,7 +12868,7 @@ export class XValidEmailDirective implements Validator {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-phone-number.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-phone-number.directive.ts
|
||||
|
||||
import { XCountryCode } from '../typings/x.typings';
|
||||
import { Directive, Input, Inject } from '@angular/core';
|
||||
@@ -12907,7 +12907,7 @@ export class XValidPhoneNumberDirective implements Validator {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-url.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-valid-url.directive.ts
|
||||
|
||||
import { Directive, Input } from '@angular/core';
|
||||
import { isValidURL } from './x-general-validators';
|
||||
@@ -12946,7 +12946,7 @@ export class XValidUrlDirective implements Validator {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-value-match.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkCoreHolder\projects\x-framework-core\src\lib\validators\x-value-match.directive.ts
|
||||
|
||||
import {
|
||||
NgModel,
|
||||
+39
-39
@@ -1,5 +1,5 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\public-api.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\public-api.ts
|
||||
|
||||
/*
|
||||
* Public API Surface of x-framework-identity-sdk
|
||||
@@ -72,7 +72,7 @@ export * from './lib/tokens/x-injectable-tokens';
|
||||
// Module ...
|
||||
export * from './lib/x-framework-identity-sdk.module';
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\test.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\test.ts
|
||||
|
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
@@ -101,7 +101,7 @@ const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\x-account.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\x-account.service.ts
|
||||
|
||||
import {
|
||||
X_API_CONFIG,
|
||||
@@ -134,7 +134,7 @@ export class XAccountService extends XAccountFinalService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\x-framework-identity-sdk.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\x-framework-identity-sdk.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
@@ -162,7 +162,7 @@ import { XFrameworkServicesModule } from 'x-framework-services';
|
||||
})
|
||||
export class XFrameworkIdentitySdkModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\base\x-base-api.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\base\x-base-api.service.ts
|
||||
|
||||
import {
|
||||
XParam,
|
||||
@@ -791,7 +791,7 @@ export abstract class XBaseApiService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\config\x-api-service.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\config\x-api-service.config.ts
|
||||
|
||||
import {
|
||||
XApiHeader,
|
||||
@@ -945,7 +945,7 @@ export const COLLECTION_FORMATS = {
|
||||
pipes: '|'
|
||||
};
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\config\x-framework-identity-sdk.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\config\x-framework-identity-sdk.config.ts
|
||||
|
||||
import { XFrameworkCoreConfig } from 'x-framework-core';
|
||||
import { XFrameworkServicesConfig } from 'x-framework-services';
|
||||
@@ -1012,7 +1012,7 @@ export interface XFrameworkIdentitySDKConfig extends XSharedConfig {
|
||||
Pages: any;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-account.keys.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-account.keys.ts
|
||||
|
||||
export enum XAccountStorageKeys {
|
||||
UserSelectBy = '[ACCOUNT] USER',
|
||||
@@ -1020,7 +1020,7 @@ export enum XAccountStorageKeys {
|
||||
UserInfos = '[ACCOUNT] USER INFO'
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-api-scope.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-api-scope.enum.ts
|
||||
|
||||
export enum XApiScope {
|
||||
Read,
|
||||
@@ -1029,7 +1029,7 @@ export enum XApiScope {
|
||||
Manage,
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-header.enum.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\constants\x-header.enum.ts
|
||||
|
||||
export enum XApiHeader {
|
||||
ExpiresAt = 'expires_at',
|
||||
@@ -1042,7 +1042,7 @@ export function getAuthorizationHeaderValue(token: string): string {
|
||||
return `${XApiHeader.AuthorizationPrefix}${token}`;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\guards\auth.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\guards\auth.guard.ts
|
||||
|
||||
import {
|
||||
Route,
|
||||
@@ -1144,7 +1144,7 @@ export class AuthGuard
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\guards\not-auth.guard.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\guards\not-auth.guard.ts
|
||||
|
||||
import {
|
||||
Route,
|
||||
@@ -1251,7 +1251,7 @@ export class NotAuthGuard
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\helpers\x-account.helper.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\helpers\x-account.helper.ts
|
||||
|
||||
import { XValidators } from 'x-framework-core';
|
||||
import { XUserAccountInfo } from '../typings/x-account.typings';
|
||||
@@ -1267,7 +1267,7 @@ export function validateUserAccountInfo(model: XUserAccountInfo): void {
|
||||
XValidators.validateBiggerThan(0, model.expiresAt);
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-device-info.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-device-info.dto.ts
|
||||
|
||||
export interface XDeviceInfo {
|
||||
os: string;
|
||||
@@ -1288,7 +1288,7 @@ export enum XDeviceTypes {
|
||||
Desktop
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-discovery.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-discovery.dto.ts
|
||||
|
||||
import { XBaseDto } from 'x-framework-core';
|
||||
|
||||
@@ -1351,7 +1351,7 @@ export interface XDiscoveryDto extends XBaseDto {
|
||||
tokenEndpointAuthenticationMethodsSupported?: Array<string>;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-friend-dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-friend-dto.ts
|
||||
|
||||
import {
|
||||
XBaseDto,
|
||||
@@ -1436,7 +1436,7 @@ export function isDefaultFriendDto(model: XFriendDto) {
|
||||
return isSameObject(prepareFriendDtoFields(model), defaultFriendDto);
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-friendship.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-friendship.dto.ts
|
||||
|
||||
import { XBaseDto } from 'x-framework-core';
|
||||
|
||||
@@ -1472,7 +1472,7 @@ export interface XFriendshipInfoDto {
|
||||
followings: number;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-login.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-login.dto.ts
|
||||
|
||||
import { XLocale } from 'x-framework-core';
|
||||
import { XUserProfileDto } from './x-user.dto';
|
||||
@@ -1496,7 +1496,7 @@ export interface XLoginResponseDto extends XTokenResponseDto {
|
||||
profile: XUserProfileDto;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-page.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-page.dto.ts
|
||||
|
||||
export interface XPageRequestDto {
|
||||
first?: number;
|
||||
@@ -1514,7 +1514,7 @@ export interface XPageResponseDto<T> {
|
||||
hasPreviousPage: boolean;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-query.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-query.dto.ts
|
||||
|
||||
export interface XQueryDto {
|
||||
page?: number;
|
||||
@@ -1536,7 +1536,7 @@ export interface XQueryResultDto<T = any> {
|
||||
totalFilteredPages?: number;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-registration-dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-registration-dto.ts
|
||||
|
||||
import { XDeviceInfo } from './x-device-info.dto';
|
||||
import { XBaseRequestDto, XBaseResponseDto } from 'x-framework-core';
|
||||
@@ -1568,7 +1568,7 @@ export interface XActionResponseDto extends XBaseResponseDto {
|
||||
expiration?: Date;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-string.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-string.dto.ts
|
||||
|
||||
import {
|
||||
XLocale,
|
||||
@@ -1631,7 +1631,7 @@ export function isDefaultStringDto(model: XStringDto) {
|
||||
return isSameObject(prepareStringDtoFields(model), defaultStringDto);
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-user.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\models\x-user.dto.ts
|
||||
|
||||
import {
|
||||
fromUtcDate,
|
||||
@@ -1823,7 +1823,7 @@ export interface XBusinessOwner extends XBaseNumberIDDto {
|
||||
userId: string;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.admin.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.admin.service.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
@@ -2001,7 +2001,7 @@ export class XAccountAdminService extends XAccountRegistrationService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.authentication.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.authentication.service.ts
|
||||
|
||||
import {
|
||||
XHeader,
|
||||
@@ -2546,7 +2546,7 @@ export abstract class XAccountAuthenticationService extends XAccountBaseService
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.base.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.base.service.ts
|
||||
|
||||
import {
|
||||
keys,
|
||||
@@ -3790,7 +3790,7 @@ export abstract class XAccountBaseService extends XBaseApiService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.final.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.final.service.ts
|
||||
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { filter, map } from 'rxjs/operators';
|
||||
@@ -3833,7 +3833,7 @@ export abstract class XAccountFinalService extends XAccountSearchService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.friendship.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.friendship.service.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
@@ -5186,7 +5186,7 @@ export abstract class XAccountFriendshipService extends XAccountProfileService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.profile.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.profile.service.ts
|
||||
|
||||
import {
|
||||
XavatarDto,
|
||||
@@ -5885,7 +5885,7 @@ export abstract class XAccountProfileService extends XAccountAuthenticationServi
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.registration.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.registration.service.ts
|
||||
|
||||
import { of } from 'rxjs';
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -7009,7 +7009,7 @@ export abstract class XAccountRegistrationService extends XAccountFriendshipServ
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.search.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\partial\x-account.search.service.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
import {
|
||||
@@ -7081,7 +7081,7 @@ export abstract class XAccountSearchService extends XAccountAdminService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\providers\x-url.encoder.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\providers\x-url.encoder.ts
|
||||
|
||||
import { HttpUrlEncodingCodec } from '@angular/common/http';
|
||||
|
||||
@@ -7096,7 +7096,7 @@ export class XHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\services\api-http-interceptor.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\services\api-http-interceptor.service.ts
|
||||
|
||||
import {
|
||||
XHeader,
|
||||
@@ -7442,7 +7442,7 @@ export class ApiHttpInterceptorService
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\tokens\x-injectable-tokens.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\tokens\x-injectable-tokens.ts
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { XApiConfiguration } from '../config/x-api-service.config';
|
||||
@@ -7456,7 +7456,7 @@ export const X_API_CONFIG = new InjectionToken<XApiConfiguration>(
|
||||
'apiConfiguration'
|
||||
);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\tools\x-endpoint.tools.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\tools\x-endpoint.tools.ts
|
||||
|
||||
import {
|
||||
values,
|
||||
@@ -7529,7 +7529,7 @@ export function setParams<TParams>(
|
||||
return route;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-account.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-account.typings.ts
|
||||
|
||||
import { XLoginResponseDto } from '../models/x-login.dto';
|
||||
|
||||
@@ -7545,7 +7545,7 @@ export interface XAccountState extends XUserAccountInfo {
|
||||
isLoggedIn: boolean;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-endpoint.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-endpoint.typings.ts
|
||||
|
||||
export enum XEndPoint {
|
||||
Account,
|
||||
@@ -7678,7 +7678,7 @@ export enum XAccountEndPoint {
|
||||
|
||||
export type XAccountEndPoints = keyof typeof XAccountEndPoint;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-registration.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\typings\x-registration.typings.ts
|
||||
|
||||
export enum RegistrationStep {
|
||||
Terms = 'terms',
|
||||
@@ -7691,7 +7691,7 @@ export enum RegistrationStep {
|
||||
|
||||
export type RegistrationStepIdentifier = RegistrationStep | string;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\validators\api-validators.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkIdentitySDKHolder\projects\x-framework-identity-sdk\src\lib\validators\api-validators.ts
|
||||
|
||||
import {
|
||||
tap,
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\public-api.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\public-api.ts
|
||||
|
||||
/*
|
||||
* Public API Surface of x-framework-push-service
|
||||
@@ -33,7 +33,7 @@ export * from './lib/base/x-base-entity.push.service';
|
||||
// Module ...
|
||||
export * from './lib/x-framework-push-service.module';
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\x-framework-push-service.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\x-framework-push-service.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
|
||||
@@ -47,7 +47,7 @@ import { NgModule } from '@angular/core';
|
||||
})
|
||||
export class XFrameworkPushServiceModule { }
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-entity.push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-entity.push.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import { Injectable } from '@angular/core';
|
||||
@@ -435,7 +435,7 @@ export abstract class XBaseEntityPushService<TEntity> extends XBasePushService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-push.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-push.service.ts
|
||||
|
||||
import {
|
||||
isFunction,
|
||||
@@ -768,7 +768,7 @@ export abstract class XBasePushService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-web-rtc.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-base-web-rtc.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import {
|
||||
@@ -905,7 +905,7 @@ export abstract class XBaseWebRTCService extends XBasePushService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-rtc-peer.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\base\x-rtc-peer.service.ts
|
||||
|
||||
|
||||
import { Inject, Injectable } from '@angular/core';
|
||||
@@ -938,7 +938,7 @@ export class XRTCPeerService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\config\x-framework-push-service.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\config\x-framework-push-service.config.ts
|
||||
|
||||
import { LogLevel } from '@microsoft/signalr';
|
||||
import { XFrameworkCoreConfig } from 'x-framework-core';
|
||||
@@ -960,7 +960,7 @@ export interface XFrameworkPushServiceConfig extends XSharedConfig {
|
||||
iceServers: Array<RTCIceServer>;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\models\x-hub-connection.dto.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\models\x-hub-connection.dto.ts
|
||||
|
||||
import { XBaseDto } from 'x-framework-core';
|
||||
|
||||
@@ -970,7 +970,7 @@ export interface XHubConnectionDto extends XBaseDto {
|
||||
connectionId: string;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\policies\x-push-service-connection-retry-policy.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\policies\x-push-service-connection-retry-policy.ts
|
||||
|
||||
import { Inject } from '@angular/core';
|
||||
import { IRetryPolicy, RetryContext } from '@microsoft/signalr';
|
||||
@@ -1009,7 +1009,7 @@ export class XPushServiceConnectionRetryPolicy implements IRetryPolicy {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\policies\x-push-service-token-fetcher.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\policies\x-push-service-token-fetcher.ts
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@@ -1021,7 +1021,7 @@ export interface IXPushServiceTokenFetcher {
|
||||
getToken(): string;
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\tokens\x-injectable-tokens.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\tokens\x-injectable-tokens.ts
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { IXPushServiceTokenFetcher } from '../policies/x-push-service-token-fetcher';
|
||||
@@ -1035,7 +1035,7 @@ export const X_FRAMEWORK_PUSH_SERVICE_TOKEN_FETCHER = new InjectionToken<IXPushS
|
||||
'x_push_token_fetcher'
|
||||
);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\typings\x-push-notification.typings.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkPushServiceHolder\projects\x-framework-push-service\src\lib\typings\x-push-notification.typings.ts
|
||||
|
||||
/**
|
||||
* Base Hub Service Actions ...
|
||||
+31
-31
@@ -1,5 +1,5 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\crypto-js.d.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\crypto-js.d.ts
|
||||
|
||||
// Type definitions for crypto-js v4.0.0
|
||||
// Project: https://github.com/brix/crypto-js
|
||||
@@ -1761,7 +1761,7 @@ declare namespace CryptoJS {
|
||||
|
||||
export = CryptoJS;
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\public-api.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\public-api.ts
|
||||
|
||||
/*
|
||||
* Public API Surface of x-framework-services
|
||||
@@ -1814,7 +1814,7 @@ export * from './lib/modules/x-directives.module';
|
||||
export * from './lib/x-framework-services.module';
|
||||
//#endregion
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\test.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\test.ts
|
||||
|
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
@@ -1843,7 +1843,7 @@ const context = require.context('./', true, /\.spec\.ts$/);
|
||||
// And load the modules.
|
||||
context.keys().map(context);
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-dialog.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-dialog.service.ts
|
||||
|
||||
import {
|
||||
NavController,
|
||||
@@ -2422,7 +2422,7 @@ export class XDialogService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-framework-services.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-framework-services.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
@@ -2475,7 +2475,7 @@ import { XSecureStorageService } from './x-secure-storage.service';
|
||||
})
|
||||
export class XFrameworkServicesModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-geolocation.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-geolocation.service.ts
|
||||
|
||||
import {
|
||||
getError,
|
||||
@@ -2671,7 +2671,7 @@ export class XGeolocationService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-history.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-history.service.ts
|
||||
|
||||
import { Subject } from 'rxjs';
|
||||
import { Injectable } from '@angular/core';
|
||||
@@ -2773,7 +2773,7 @@ export class XHistoryService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-http-interceptor.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-http-interceptor.service.ts
|
||||
|
||||
import {
|
||||
HttpEvent,
|
||||
@@ -2862,7 +2862,7 @@ export class XHttpInterceptorService
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-identifier.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-identifier.service.ts
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { XBaseService } from 'x-framework-core';
|
||||
@@ -2978,7 +2978,7 @@ export class XIdentifierService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-localization.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-localization.service.ts
|
||||
|
||||
import {
|
||||
XParam,
|
||||
@@ -3271,7 +3271,7 @@ export class XLocalizationService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager.service.ts
|
||||
|
||||
import { Location } from '@angular/common';
|
||||
import { Platform } from '@angular/cdk/platform';
|
||||
@@ -3346,7 +3346,7 @@ export class XManagerService extends XManagerFinalService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-notification.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-notification.service.ts
|
||||
|
||||
import {
|
||||
XColor,
|
||||
@@ -3715,7 +3715,7 @@ export class XNotificationService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-secure-storage.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-secure-storage.service.ts
|
||||
|
||||
import {
|
||||
fromJson,
|
||||
@@ -3855,7 +3855,7 @@ export class XSecureStorageService extends XStorageService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-security.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-security.service.ts
|
||||
|
||||
import * as CryptoJS from 'crypto-js';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
@@ -4031,7 +4031,7 @@ export class XSecurityService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-settings.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-settings.service.ts
|
||||
|
||||
import {
|
||||
isArray,
|
||||
@@ -4512,7 +4512,7 @@ export class XSettingsService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-storage.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-storage.service.ts
|
||||
|
||||
import {
|
||||
fromJson,
|
||||
@@ -4718,7 +4718,7 @@ export class XStorageService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-task-manager.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-task-manager.service.ts
|
||||
|
||||
import {
|
||||
XTask,
|
||||
@@ -5016,7 +5016,7 @@ export class XTaskManagerService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-theme-manager.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-theme-manager.service.ts
|
||||
|
||||
import {
|
||||
keys,
|
||||
@@ -6235,7 +6235,7 @@ export class XThemeManagerService extends XBaseService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\config\x-framework-services.config.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\config\x-framework-services.config.ts
|
||||
|
||||
import { XFrameworkCoreConfig } from 'x-framework-core';
|
||||
|
||||
@@ -6244,7 +6244,7 @@ export interface XFrameworkServicesConfig extends XFrameworkCoreConfig {
|
||||
geoLocationConfig?: PositionOptions
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-currency-formatter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-currency-formatter.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -6438,7 +6438,7 @@ export class XCurrencyFormatterDirective implements ControlValueAccessor {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-date-presenter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-date-presenter.directive.ts
|
||||
|
||||
import {
|
||||
XLocale,
|
||||
@@ -6529,7 +6529,7 @@ export class XDatePresenterDirective implements OnInit, OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-from-input-formatter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-from-input-formatter.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -7025,7 +7025,7 @@ export class XFromInputFormatterDirective implements ControlValueAccessor {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-locale-input-formatter.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-locale-input-formatter.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -7165,7 +7165,7 @@ export class XLocaleInputFormatterDirective implements ControlValueAccessor {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-swipable.directive.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\directives\x-swipable.directive.ts
|
||||
|
||||
import {
|
||||
Input,
|
||||
@@ -7494,7 +7494,7 @@ export class XSwipableDirective
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\modules\x-directives.module.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\modules\x-directives.module.ts
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
@@ -7541,7 +7541,7 @@ import { XLocaleInputFormatterDirective } from '../directives/x-locale-input-for
|
||||
})
|
||||
export class XDirectivesModule {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\pipes\x-translate.pipe.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\pipes\x-translate.pipe.ts
|
||||
|
||||
import {
|
||||
XLocale,
|
||||
@@ -7599,7 +7599,7 @@ export class XTranslatePipe implements PipeTransform {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\tokens\x-injectable-tokens.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\tokens\x-injectable-tokens.ts
|
||||
|
||||
import { InjectionToken } from '@angular/core';
|
||||
import { XFrameworkServicesConfig } from '../config/x-framework-services.config';
|
||||
@@ -7608,7 +7608,7 @@ export const X_FRAMEWORK_SERVICES_CONFIG = new InjectionToken<
|
||||
XFrameworkServicesConfig
|
||||
>('x_config');
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-base.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-base.service.ts
|
||||
|
||||
import { Location } from '@angular/common';
|
||||
import { XBaseService } from 'x-framework-core';
|
||||
@@ -7659,13 +7659,13 @@ export abstract class XManagerBaseService extends XBaseService {
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-final.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-final.service.ts
|
||||
|
||||
import { XManagerRouteService } from './x-manager-route.service';
|
||||
|
||||
export abstract class XManagerFinalService extends XManagerRouteService {}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-route.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-route.service.ts
|
||||
|
||||
import {
|
||||
keys,
|
||||
@@ -8067,7 +8067,7 @@ export abstract class XManagerRouteService extends XManagerUIStateService {
|
||||
//#endregion
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-ui-state.service.ts
|
||||
### FILE: C:\Users\saherelm\Documents\Projects\xSaherelmWorkspace\Modules\xFrameworkServicesHolder\projects\x-framework-services\src\lib\x-manager-service-partial\x-manager-ui-state.service.ts
|
||||
|
||||
import {
|
||||
XLocale,
|
||||
+154
-154
File diff suppressed because it is too large
Load Diff
@@ -1,767 +0,0 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Configurations\XHttpServiceConfiguration.cs
|
||||
|
||||
namespace xHttpService.Configurations {
|
||||
public partial class XHttpServiceConfiguration {
|
||||
/// <summary>
|
||||
/// Determines Http Handler Check SSL or not ...
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public bool DisableSSLCheck { get; set; }
|
||||
public int DefaultClientTimeout { get; set; } = 360;
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Constants\ConfigurationNodeNames.cs
|
||||
|
||||
namespace xHttpService.Constants {
|
||||
public partial struct ConfigurationNodeNames {
|
||||
public const string HTTP_SERVICE_NODE_NAME = "HttpServiceConfiguration";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Constants\XHttpMethod.cs
|
||||
|
||||
using xExceptions.Attributes;
|
||||
|
||||
namespace xHttpService.Constants {
|
||||
public enum XHttpMethod {
|
||||
[StringValue ("GET")]
|
||||
GET,
|
||||
|
||||
[StringValue ("POST")]
|
||||
POST,
|
||||
|
||||
[StringValue ("PUT")]
|
||||
PUT,
|
||||
|
||||
[StringValue ("DELETE")]
|
||||
DELETE
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Constants\XSSEConstants.cs
|
||||
|
||||
namespace xHttpService.Constants
|
||||
{
|
||||
public struct XSSEConstants
|
||||
{
|
||||
public const string DataIdentifier = "data:";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\DI\XDIHelperExtension.cs
|
||||
|
||||
using System;
|
||||
using xCommons.Extensions;
|
||||
using xHttpService.Constants;
|
||||
using xHttpService.Providers;
|
||||
using xHttpService.Interfaces;
|
||||
using xHttpService.Configurations;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace xHttpService.DI {
|
||||
public static partial class XDIHelperExtension {
|
||||
/// <summary>
|
||||
/// Retrieve XHttpService Configuration from AppSettings
|
||||
/// </summary>
|
||||
/// <param name="configuration"></param>
|
||||
/// <returns></returns>
|
||||
public static XHttpServiceConfiguration GetXHttpServiceConfiguration (this IConfiguration configuration) {
|
||||
//
|
||||
var xHttpSection = configuration.GetSection (ConfigurationNodeNames.HTTP_SERVICE_NODE_NAME);
|
||||
return xHttpSection.Get<XHttpServiceConfiguration> ();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XHttpService Configuration
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXHttpServiceConfiguration (
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration
|
||||
) {
|
||||
//
|
||||
var httpServiceConfiguration = configuration.GetXHttpServiceConfiguration ();
|
||||
services.AddXHttpServiceConfiguration(httpServiceConfiguration);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XHttpService Configuration
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXHttpServiceConfiguration (
|
||||
this IServiceCollection services,
|
||||
XHttpServiceConfiguration configuration
|
||||
) {
|
||||
//
|
||||
if (configuration.IsNull ()) {
|
||||
Console.WriteLine($"xHttpService: there is no provided configurations, using default ...");
|
||||
configuration = new XHttpServiceConfiguration ();
|
||||
}
|
||||
|
||||
//
|
||||
services.AddSingleton<XHttpServiceConfiguration> (configuration);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XHttpService on DI ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXHttpService (
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration
|
||||
) {
|
||||
//
|
||||
// Register Service Configuration ...
|
||||
if (services.GetRegisteredService<XHttpServiceConfiguration> ().IsNull ()) {
|
||||
services.AddXHttpServiceConfiguration (configuration);
|
||||
}
|
||||
|
||||
//
|
||||
// Register Service ...
|
||||
services.AddSingleton<IXHttpProvider, XHttpProvider> ();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XHttpService on DI ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXHttpService (
|
||||
this IServiceCollection services,
|
||||
XHttpServiceConfiguration configuration
|
||||
) {
|
||||
//
|
||||
// Register Service Configuration ...
|
||||
if (services.GetRegisteredService<XHttpServiceConfiguration> ().IsNull ()) {
|
||||
services.AddXHttpServiceConfiguration (configuration);
|
||||
}
|
||||
|
||||
//
|
||||
// Register Service ...
|
||||
services.AddSingleton<IXHttpProvider, XHttpProvider> ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Extensions\RestSharpExtensions.cs
|
||||
|
||||
using RestSharp;
|
||||
using xModels.Dtos;
|
||||
using xCommons.Constants;
|
||||
using xCommons.Extensions;
|
||||
|
||||
namespace xHttpService.Extensions
|
||||
{
|
||||
public static partial class RestSharpExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Attach an instance of XQuery to a RestRequest object
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="query"></param>
|
||||
/// <returns></returns>
|
||||
public static RestRequest AttachXQuery(
|
||||
this RestRequest source,
|
||||
XQuery query
|
||||
)
|
||||
{
|
||||
//
|
||||
if (query.IsNull())
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
//
|
||||
// ContainsDetail ...
|
||||
//
|
||||
var containsDetailKey = System.Uri.EscapeDataString(nameof(query.ContainsDetail));
|
||||
var containsDetailValue = query.ContainsDetail.AsHttpParamString();
|
||||
source.AddQueryParameter(containsDetailKey, containsDetailValue);
|
||||
|
||||
//
|
||||
// IsAscending ...
|
||||
var isAscendingKey = System.Uri.EscapeDataString(nameof(query.IsAscending));
|
||||
var isAscendingValue = query.IsAscending.AsHttpParamString();
|
||||
source.AddQueryParameter(isAscendingKey, isAscendingValue);
|
||||
|
||||
//
|
||||
// Filter ...
|
||||
if (!query.Filter.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
var key = System.Uri.EscapeDataString(nameof(query.Filter));
|
||||
var value = query.Filter.AsHttpParamString();
|
||||
source.AddQueryParameter(key, value);
|
||||
}
|
||||
|
||||
//
|
||||
// SortBy ...
|
||||
if (!query.SortBy.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
var key = System.Uri.EscapeDataString(nameof(query.SortBy));
|
||||
var value = query.SortBy.AsHttpParamString();
|
||||
source.AddQueryParameter(key, value);
|
||||
}
|
||||
|
||||
//
|
||||
// Page ...
|
||||
if (query.Page > 0)
|
||||
{
|
||||
//
|
||||
var key = System.Uri.EscapeDataString(nameof(query.Page));
|
||||
var value = query.Page.AsHttpParamString();
|
||||
source.AddQueryParameter(key, value);
|
||||
}
|
||||
|
||||
//
|
||||
// PageSize ...
|
||||
if (query.PageSize > 0)
|
||||
{
|
||||
//
|
||||
var key = System.Uri.EscapeDataString(nameof(query.PageSize));
|
||||
var value = query.PageSize.AsHttpParamString();
|
||||
source.AddQueryParameter(key, value);
|
||||
}
|
||||
|
||||
//
|
||||
return source;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add Dest User to Query Strings ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="destUser"></param>
|
||||
/// <returns></returns>
|
||||
public static RestRequest AttachDestUser(
|
||||
this RestRequest source,
|
||||
string destUser
|
||||
)
|
||||
{
|
||||
//
|
||||
if (destUser.IsNullOrEmpty())
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
//
|
||||
var destUserKey = System.Uri.EscapeDataString(nameof(destUser));
|
||||
var destUserValue = destUser.AsHttpParamString();
|
||||
source.AddQueryParameter(destUserKey, destUserValue);
|
||||
|
||||
//
|
||||
return source;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add XPoweredBy Header to specific RestRequest Headers ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="poweredByValue"></param>
|
||||
/// <returns></returns>
|
||||
public static RestRequest AddXPoweredBy(
|
||||
this RestRequest source,
|
||||
string poweredByValue
|
||||
)
|
||||
{
|
||||
//
|
||||
source.AddHeader(
|
||||
XAuthorization.XPoweredBy,
|
||||
poweredByValue
|
||||
);
|
||||
|
||||
//
|
||||
return source;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add XAccessToken Header to specific RestRequest Headers ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
/// <param name="token"></param>
|
||||
/// <returns></returns>
|
||||
public static RestRequest AddXAccessToken(
|
||||
this RestRequest source,
|
||||
string token
|
||||
)
|
||||
{
|
||||
//
|
||||
token = $"{XAuthentication.BEARER} {token}";
|
||||
|
||||
//
|
||||
source.AddHeader(
|
||||
XAuthorization.Header,
|
||||
token
|
||||
);
|
||||
|
||||
//
|
||||
return source;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Extensions\XSseExtensions.cs
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using xCommons.Extensions;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Http.Features;
|
||||
|
||||
namespace xHttpService.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Server-Sent Events (SSE) Helpers ...
|
||||
/// Format (per Spec): [event: name\n] data: line\n ... \n
|
||||
/// </summary>
|
||||
public static class XSseExtensions
|
||||
{
|
||||
//
|
||||
// Event Names ...
|
||||
public const string SseDoneEvent = "done";
|
||||
public const string SseErrorEvent = "error";
|
||||
public const string SseContentType = "text/event-stream; charset=utf-8";
|
||||
|
||||
/// <summary>
|
||||
/// Configure Response for SSE (Headers + Disable Buffering) ...
|
||||
/// Must be Called before any Write ...
|
||||
/// </summary>
|
||||
/// <param name="source"></param>
|
||||
public static void PrepareSseResponse(
|
||||
this HttpResponse source
|
||||
)
|
||||
{
|
||||
//
|
||||
if (source.IsNull() || source.HasStarted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
source.StatusCode = StatusCodes.Status200OK;
|
||||
source.ContentType = SseContentType;
|
||||
source.Headers["Cache-Control"] = "no-cache, no-store";
|
||||
source.Headers["X-Accel-Buffering"] = "no";
|
||||
|
||||
//
|
||||
// Disable Response Buffering ...
|
||||
source.HttpContext.Features
|
||||
.Get<IHttpBufferingFeature>()?
|
||||
.DisableResponseBuffering();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write an Object as JSON (camelCase) SSE Event ...
|
||||
/// </summary>
|
||||
public static Task WriteSseEventAsync<T>(
|
||||
this HttpResponse source,
|
||||
T data,
|
||||
string eventName = null,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var payload = data.IsNull()
|
||||
? "null"
|
||||
: data.ToJSON(camelCase: true);
|
||||
|
||||
//
|
||||
return source.WriteSseRawAsync(payload, eventName, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write Raw Text as SSE Event (Multi Line Text is Split into Multiple data: Lines) ...
|
||||
/// </summary>
|
||||
public static async Task WriteSseRawAsync(
|
||||
this HttpResponse source,
|
||||
string payload,
|
||||
string eventName = null,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var builder = new StringBuilder();
|
||||
if (!eventName.IsNullOrEmpty())
|
||||
{
|
||||
builder.Append("event: ").Append(eventName).Append('\n');
|
||||
}
|
||||
|
||||
//
|
||||
var normalized = (payload ?? string.Empty)
|
||||
.Replace("\r\n", "\n")
|
||||
.Replace('\r', '\n');
|
||||
foreach (var line in normalized.Split('\n'))
|
||||
{
|
||||
builder.Append("data: ").Append(line).Append('\n');
|
||||
}
|
||||
builder.Append('\n');
|
||||
|
||||
//
|
||||
await source.WriteAsync(builder.ToString(), Encoding.UTF8, cancellationToken);
|
||||
await source.Body.FlushAsync(cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write Terminating "done" Event ...
|
||||
/// </summary>
|
||||
public static Task WriteSseDoneAsync(
|
||||
this HttpResponse source,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
return source.WriteSseRawAsync("[DONE]", SseDoneEvent, cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write "error" Event (Never Throws; Used when Stream has Already Started) ...
|
||||
/// </summary>
|
||||
public static async Task WriteSseErrorAsync(
|
||||
this HttpResponse source,
|
||||
string message
|
||||
)
|
||||
{
|
||||
//
|
||||
try
|
||||
{
|
||||
await source.WriteSseEventAsync(
|
||||
data: new { error = message ?? "Stream Failed" },
|
||||
eventName: SseErrorEvent,
|
||||
cancellationToken: CancellationToken.None
|
||||
);
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Client Gone ...
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is Exception Caused by Client Disconnect / Cancellation ...
|
||||
/// </summary>
|
||||
public static bool IsClientCancellation(
|
||||
this Exception source,
|
||||
CancellationToken cancellationToken
|
||||
)
|
||||
{
|
||||
return source is OperationCanceledException && cancellationToken.IsCancellationRequested;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Interfaces\IXHttpProvider.cs
|
||||
|
||||
using RestSharp;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using xHttpService.Constants;
|
||||
using xIdentityModels.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xHttpService.Interfaces {
|
||||
public partial interface IXHttpProvider {
|
||||
HttpClient GetHttpClient ();
|
||||
RestClient GetRestClient (
|
||||
string baseUrl = null,
|
||||
string poweredByValue = null,
|
||||
XTokenResponse tokens = null
|
||||
);
|
||||
RestRequest GetRestRequet (
|
||||
string endpoint,
|
||||
IDictionary<string, string> @params = null,
|
||||
IDictionary<string, string> headers = null,
|
||||
IDictionary<string, string> queryStrings = null
|
||||
);
|
||||
Task<T> RunRestRequest<T> (
|
||||
RestClient client,
|
||||
RestRequest request,
|
||||
XHttpMethod method
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xHttpService\Providers\XHttpProvider.cs
|
||||
|
||||
using System;
|
||||
using RestSharp;
|
||||
using xModels.Base;
|
||||
using System.Net.Http;
|
||||
using xCommons.Constants;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using System.Threading.Tasks;
|
||||
using xHttpService.Constants;
|
||||
using xIdentityModels.Models;
|
||||
using xHttpService.Interfaces;
|
||||
using RestSharp.Authenticators;
|
||||
using System.Collections.Generic;
|
||||
using xHttpService.Configurations;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace xHttpService.Providers {
|
||||
public partial class XHttpProvider : XBaseClass, IXHttpProvider {
|
||||
|
||||
private readonly XHttpServiceConfiguration configuration;
|
||||
|
||||
public XHttpProvider (
|
||||
ILoggerFactory loggerFactory,
|
||||
XHttpServiceConfiguration configuration
|
||||
) : base (loggerFactory) {
|
||||
this.configuration = configuration;
|
||||
}
|
||||
|
||||
//
|
||||
#region Actions ...
|
||||
/// <summary>
|
||||
/// Get an Instance of Http Client
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public HttpClient GetHttpClient () {
|
||||
//
|
||||
HttpClient httpClient = null;
|
||||
httpClient = new HttpClient ();
|
||||
|
||||
//
|
||||
if (configuration.DisableSSLCheck) {
|
||||
//
|
||||
var httpHandler = new HttpClientHandler ();
|
||||
httpHandler.ServerCertificateCustomValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
|
||||
|
||||
//
|
||||
httpClient = new HttpClient (httpHandler);
|
||||
}
|
||||
|
||||
//
|
||||
// Set Timeout ...
|
||||
httpClient.Timeout = TimeSpan
|
||||
.FromSeconds (configuration.DefaultClientTimeout);
|
||||
|
||||
//
|
||||
return httpClient;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get an Instance of RestClient
|
||||
/// </summary>
|
||||
/// <param name="baseUrl"></param>
|
||||
/// <param name="poweredByValue"></param>
|
||||
/// <param name="tokens"></param>
|
||||
/// <returns></returns>
|
||||
public RestClient GetRestClient (
|
||||
string baseUrl = null,
|
||||
string poweredByValue = null,
|
||||
XTokenResponse tokens = null
|
||||
) {
|
||||
//
|
||||
var client = new RestClient (baseUrl);
|
||||
|
||||
//
|
||||
// Add XPowered By to Default Headers ...
|
||||
if (!poweredByValue.IsNullOrEmpty ()) {
|
||||
client.AddDefaultHeader (XAuthorization.XPoweredBy, poweredByValue);
|
||||
}
|
||||
|
||||
//
|
||||
// Set Authenticator ...
|
||||
if (!tokens.IsNull () &&
|
||||
!tokens.AccessToken.IsNullOrEmpty ()) {
|
||||
client.Authenticator = new JwtAuthenticator (tokens.AccessToken);
|
||||
}
|
||||
|
||||
//
|
||||
// Refresh Token ...
|
||||
if (!tokens.IsNull () &&
|
||||
!tokens.RefreshToken.IsNullOrEmpty ()) {
|
||||
client.AddDefaultHeader (XAuthorization.RefreshToken, tokens.RefreshToken);
|
||||
}
|
||||
|
||||
//
|
||||
// ExpiresAt ...
|
||||
if (!tokens.IsNull () &&
|
||||
tokens.ExpiresAt > 0) {
|
||||
client.AddDefaultHeader (XAuthorization.ExpiresAt, tokens.ExpiresAt.AsHttpParamString ());
|
||||
}
|
||||
|
||||
//
|
||||
// Set Default Timeout ...
|
||||
client.Timeout = configuration.DefaultClientTimeout;
|
||||
|
||||
//
|
||||
// SSL Validation Handler ...
|
||||
if (configuration.DisableSSLCheck) {
|
||||
client.RemoteCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => true;
|
||||
}
|
||||
|
||||
//
|
||||
return client;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get an Instance of RestRequest
|
||||
/// </summary>
|
||||
/// <param name="endpoint"></param>
|
||||
/// <param name="params"></param>
|
||||
/// <param name="headers"></param>
|
||||
/// <param name="queryStrings"></param>
|
||||
/// <returns></returns>
|
||||
public RestRequest GetRestRequet (
|
||||
string endpoint,
|
||||
IDictionary<string, string> @params = null,
|
||||
IDictionary<string, string> headers = null,
|
||||
IDictionary<string, string> queryStrings = null
|
||||
) {
|
||||
//
|
||||
var url = endpoint.ToString ();
|
||||
|
||||
//
|
||||
// Add Route Payloads ...
|
||||
if (!@params.IsNull () && @params.Count > 0) {
|
||||
//
|
||||
var enumerator = @params.GetEnumerator ();
|
||||
while (enumerator.MoveNext ()) {
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
|
||||
//
|
||||
url = url.Replace (item.Key, item.Value.ToUrlEncoded ());
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Add Query Strings ...
|
||||
if (!queryStrings.IsNull () && queryStrings.Count > 0) {
|
||||
//
|
||||
url = $"{url}?";
|
||||
var enumerator = queryStrings.GetEnumerator ();
|
||||
while (enumerator.MoveNext ()) {
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
|
||||
//
|
||||
url += $"{item.Key}={item.Value.ToUrlEncoded ()}&";
|
||||
}
|
||||
|
||||
//
|
||||
// remove lates & ...
|
||||
if (url.EndsWith ("&")) {
|
||||
url = url.Substring (0, url.Length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Create request ...
|
||||
var request = new RestRequest (url, DataFormat.Json);
|
||||
|
||||
//
|
||||
// Add Headers to request ...
|
||||
if (!headers.IsNull () && headers.Count > 0) {
|
||||
//
|
||||
var enumerator = headers.GetEnumerator ();
|
||||
while (enumerator.MoveNext ()) {
|
||||
//
|
||||
var item = enumerator.Current;
|
||||
request.AddHeader (item.Key, item.Value);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return request;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handle Call Specific Request and retrieve Response
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="method"></param>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns></returns>
|
||||
public async Task<T> RunRestRequest<T> (
|
||||
RestClient client,
|
||||
RestRequest request,
|
||||
XHttpMethod method
|
||||
) {
|
||||
//
|
||||
var response = await Task.Run (() => {
|
||||
//
|
||||
IRestResponse resp = null;
|
||||
|
||||
//
|
||||
// Call Endpoint Service using Specified Method ...
|
||||
switch (method) {
|
||||
//
|
||||
// Get ...
|
||||
case XHttpMethod.GET:
|
||||
resp = client.Get (request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Put ...
|
||||
case XHttpMethod.PUT:
|
||||
resp = client.Put (request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Post ...
|
||||
case XHttpMethod.POST:
|
||||
resp = client.Post (request);
|
||||
break;
|
||||
|
||||
//
|
||||
// Delete ...
|
||||
case XHttpMethod.DELETE:
|
||||
resp = client.Delete (request);
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
if (!resp.IsSuccessful) {
|
||||
//
|
||||
// UnAuthorized ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.Unauthorized) {
|
||||
XException.NotAuthorized.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
// NotFound ...
|
||||
if (resp.StatusCode == System.Net.HttpStatusCode.NotFound) {
|
||||
XException.NotFound.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
// Timeout ...
|
||||
if (!resp.ErrorMessage.IsNullOrEmpty () &&
|
||||
resp.ErrorMessage.Contains ("timed out")) {
|
||||
XException.Timeout.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
// ErrorMessage ...
|
||||
if (!resp.ErrorMessage.IsNullOrEmpty ()) {
|
||||
throw new Exception (resp.ErrorMessage);
|
||||
}
|
||||
|
||||
//
|
||||
// Default Exception ...
|
||||
XException.BadRequest.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
var result = resp.Content.FromJSON<T> ();
|
||||
return result;
|
||||
});
|
||||
|
||||
//
|
||||
return response;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,727 +0,0 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Constants\ConfigurationNodeNames.cs
|
||||
|
||||
namespace xMessageService.Constants {
|
||||
public partial struct ConfigurationNodeNames {
|
||||
public const string MESSAGE_NODE_NAME = "MessageConfiguration";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Constants\xMessageServiceConstants.cs
|
||||
|
||||
namespace xMessageService.Constants {
|
||||
public struct xMessageServiceConstants {
|
||||
public const string DEFAULT_EMPTY_PROVIDER = "EMPTY";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\DI\XDIHelperExtension.cs
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xCommons.Extensions;
|
||||
using xMessageService.Models;
|
||||
using xMessageService.Constants;
|
||||
using xMessageService.Providers;
|
||||
using System.Collections.Generic;
|
||||
using xMessageService.Interfaces;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace xMessageService.DI {
|
||||
public static partial class XDIHelperExtension {
|
||||
/// <summary>
|
||||
/// Retrieve XMessage Configuration from App Settings
|
||||
/// </summary>
|
||||
/// <param name="config"></param>
|
||||
/// <returns></returns>
|
||||
public static XMessageConfiguration GetXMessageConfiguration (this IConfiguration config) {
|
||||
//
|
||||
var xMessageConfigSection = config.GetSection (ConfigurationNodeNames.MESSAGE_NODE_NAME);
|
||||
var xMessageConfiguration = xMessageConfigSection.Get<XMessageConfiguration> ();
|
||||
|
||||
//
|
||||
var defaultMailConfiguration = new Dictionary<string, XMailConfiguration> {
|
||||
["EMPTY"] =
|
||||
new XMailConfiguration {
|
||||
Title = xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER,
|
||||
Host = "",
|
||||
Port = 25,
|
||||
EnableSsl = false,
|
||||
Username = "",
|
||||
Password = ""
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
var defaultSmsConfiguration = new Dictionary<string, XSmsConfiguration> {
|
||||
["EMPTY"] =
|
||||
new XSmsConfiguration {
|
||||
ServiceUrl = "",
|
||||
Username = "",
|
||||
Password = "",
|
||||
LineNumber = "",
|
||||
UserApiKey = "",
|
||||
SecretKey = "",
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
if (xMessageConfiguration.IsNull ()) {
|
||||
//
|
||||
xMessageConfiguration = new XMessageConfiguration {
|
||||
DefaultSMSProvider = xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER,
|
||||
DefaultMailProvider = xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER,
|
||||
MailConfigurations = defaultMailConfiguration,
|
||||
SmsConfigurations = defaultSmsConfiguration
|
||||
};
|
||||
|
||||
//
|
||||
// Warn Message is Default Configuration ...
|
||||
Console.WriteLine ($"IMPORTANT: xMessageService Configuration is Default, so the Service can't works properly ...");
|
||||
}
|
||||
|
||||
//
|
||||
// Handle Default Mail Provider ...
|
||||
if (xMessageConfiguration.DefaultMailProvider.IsNullOrEmpty ()) {
|
||||
//
|
||||
if (xMessageConfiguration.IsNull () ||
|
||||
//
|
||||
xMessageConfiguration.MailConfigurations.IsNull () ||
|
||||
xMessageConfiguration.MailConfigurations.Count == 0) {
|
||||
//
|
||||
Console.WriteLine ("There is no defined Mail Provider Configurations ...");
|
||||
xMessageConfiguration.DefaultMailProvider = xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER;
|
||||
}
|
||||
|
||||
//
|
||||
if (xMessageConfiguration.DefaultMailProvider == xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER) {
|
||||
xMessageConfiguration.MailConfigurations = defaultMailConfiguration;
|
||||
} else {
|
||||
xMessageConfiguration.DefaultMailProvider = xMessageConfiguration.MailConfigurations.Keys.First ();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Handle Default SMS Provider ...
|
||||
if (xMessageConfiguration.DefaultSMSProvider.IsNullOrEmpty ()) {
|
||||
//
|
||||
if (xMessageConfiguration.IsNull () ||
|
||||
xMessageConfiguration.SmsConfigurations.IsNull () ||
|
||||
xMessageConfiguration.SmsConfigurations.Count == 0) {
|
||||
//
|
||||
Console.WriteLine ("There is no defined SMS Provider Configurations ...");
|
||||
xMessageConfiguration.DefaultSMSProvider = xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER;
|
||||
}
|
||||
|
||||
//
|
||||
if (xMessageConfiguration.DefaultSMSProvider == xMessageServiceConstants.DEFAULT_EMPTY_PROVIDER) {
|
||||
xMessageConfiguration.SmsConfigurations = defaultSmsConfiguration;
|
||||
} else {
|
||||
xMessageConfiguration.DefaultSMSProvider = xMessageConfiguration.SmsConfigurations.Keys.First ();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return xMessageConfiguration;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register XMessage Service
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="config"></param>
|
||||
public static void AddXMessageService (this IServiceCollection services, IConfiguration config) {
|
||||
//
|
||||
var xMessageConfiguration = config.GetXMessageConfiguration ();
|
||||
services.AddSingleton<XMessageConfiguration> (xMessageConfiguration);
|
||||
|
||||
//
|
||||
// Register SMS Service ...
|
||||
var xSmsService = new XSmsService (
|
||||
xMessageConfiguration.DefaultSMSProvider,
|
||||
xMessageConfiguration.SmsConfigurations
|
||||
);
|
||||
services.AddSingleton<IXSmsService> (xSmsService);
|
||||
|
||||
//
|
||||
// Register Mail Service ...
|
||||
var xMailService = new XMailService (
|
||||
xMessageConfiguration.DefaultMailProvider,
|
||||
xMessageConfiguration.MailConfigurations
|
||||
);
|
||||
services.AddSingleton<IXMailService> (xMailService);
|
||||
|
||||
//
|
||||
// Register MEssage Provider ...
|
||||
services.AddSingleton<IXMessageProvider, XMessageProvider> ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Interfaces\IXMailService.cs
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXMailService {
|
||||
Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Interfaces\IXMessageProvider.cs
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXMessageProvider {
|
||||
bool IsReady (
|
||||
bool? checkMailService = false,
|
||||
bool? checkSmsService = false
|
||||
);
|
||||
|
||||
Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
);
|
||||
|
||||
Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Interfaces\IXSmsService.cs
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
|
||||
namespace xMessageService.Interfaces {
|
||||
public partial interface IXSmsService {
|
||||
Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Models\XMailConfiguration.cs
|
||||
|
||||
namespace xMessageService.Models {
|
||||
public partial class XMailConfiguration {
|
||||
public string Title { get; set; }
|
||||
public string Host { get; set; }
|
||||
public int Port { get; set; }
|
||||
public bool EnableSsl { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Models\XMessage.cs
|
||||
|
||||
using xModels.Base;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xMessageService.Models {
|
||||
public partial class XMessage : XBaseDto {
|
||||
public HashSet<string> Recievers { get; set; } = new HashSet<string> ();
|
||||
public string Message { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Models\XMessageConfiguration.cs
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xMessageService.Models {
|
||||
public partial class XMessageConfiguration {
|
||||
public string DefaultSMSProvider { get; set; }
|
||||
public string DefaultMailProvider { get; set; }
|
||||
public IDictionary<string, XMailConfiguration> MailConfigurations { get; set; }
|
||||
public IDictionary<string, XSmsConfiguration> SmsConfigurations { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Models\XSmsConfiguration.cs
|
||||
|
||||
namespace xMessageService.Models {
|
||||
public partial class XSmsConfiguration {
|
||||
public string ServiceUrl { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string LineNumber { get; set; }
|
||||
public string UserApiKey { get; set; }
|
||||
public string SecretKey { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Providers\XMailService.cs
|
||||
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Net.Mail;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
using System.Collections.Generic;
|
||||
using xMessageService.Interfaces;
|
||||
|
||||
namespace xMessageService.Providers {
|
||||
public partial class XMailService : IXMailService {
|
||||
private SmtpClient smtpClient;
|
||||
private readonly string defaultProvider;
|
||||
private readonly IDictionary<string, XMailConfiguration> configurations;
|
||||
|
||||
public XMailService (
|
||||
string defaultProvider,
|
||||
IDictionary<string, XMailConfiguration> configurations
|
||||
) {
|
||||
this.defaultProvider = defaultProvider;
|
||||
this.configurations = configurations;
|
||||
|
||||
//
|
||||
// Get instance of SMTP Client ...
|
||||
PrepareSmtpClient ();
|
||||
}
|
||||
|
||||
public Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
// Run Send Mail Asynchronous ...
|
||||
return Task.Run (() => {
|
||||
SendMail (message, provider);
|
||||
});
|
||||
}
|
||||
|
||||
#region Private ...
|
||||
/// <summary>
|
||||
/// Validate and Retrieve Provider Configuration for Service
|
||||
/// </summary>
|
||||
/// <param name="provider"></param>
|
||||
/// <returns></returns>
|
||||
private XMailConfiguration GetConfiguration (string provider = null) {
|
||||
//
|
||||
if (provider.IsNullOrEmpty ()) {
|
||||
provider = defaultProvider;
|
||||
}
|
||||
|
||||
//
|
||||
if (!configurations.Keys.Contains (provider)) {
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
return configurations[provider];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prepare SMTP Client by Using Specified/Default Provider
|
||||
/// </summary>
|
||||
/// <param name="provider"></param>
|
||||
private void PrepareSmtpClient (string provider = null) {
|
||||
//
|
||||
var config = GetConfiguration (provider);
|
||||
if (config.IsNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
smtpClient = new SmtpClient () {
|
||||
Host = config.Host,
|
||||
Port = config.Port,
|
||||
EnableSsl = config.EnableSsl,
|
||||
UseDefaultCredentials = false,
|
||||
Credentials = new NetworkCredential (
|
||||
config.Username,
|
||||
config.Password)
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prepare Mail Message With Specified/Default Provider
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
/// <returns></returns>
|
||||
private MailMessage PrepareMailMessage (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
if (message == null ||
|
||||
message.Message.IsNullOrEmpty () ||
|
||||
message.Recievers.Count == 0) {
|
||||
XException.InvalidMessage.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
var config = GetConfiguration (provider);
|
||||
var mailMessage = new MailMessage () {
|
||||
From = new MailAddress (config.Username),
|
||||
Subject = config.Title,
|
||||
Body = message.Message
|
||||
};
|
||||
|
||||
//
|
||||
foreach (var reciever in message.Recievers) {
|
||||
mailMessage.To.Add (reciever);
|
||||
}
|
||||
|
||||
//
|
||||
return mailMessage;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send Mail Using Specified/Default Provider
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
private void SendMail (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
if (smtpClient.IsNull()) {
|
||||
//
|
||||
Console.WriteLine ($"SMTP Error: MessageServiceInitialFailed ...");
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
var mailMessage = PrepareMailMessage (message, provider);
|
||||
|
||||
//
|
||||
try {
|
||||
smtpClient.Send (mailMessage);
|
||||
} catch (Exception ex) {
|
||||
//
|
||||
Console.WriteLine ($"SMTP Error: {ex.Message}");
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Providers\XMessageProvider.cs
|
||||
|
||||
using System;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
using xMessageService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace xMessageService.Providers {
|
||||
public partial class XMessageProvider : IXMessageProvider {
|
||||
private readonly XMessageConfiguration configuration;
|
||||
private readonly ILogger<XMessageProvider> logger;
|
||||
private readonly IXSmsService smsService;
|
||||
private readonly IXMailService mailService;
|
||||
|
||||
public XMessageProvider (
|
||||
XMessageConfiguration configuration,
|
||||
ILogger<XMessageProvider> logger,
|
||||
IXSmsService smsService,
|
||||
IXMailService mailService
|
||||
) {
|
||||
this.configuration = configuration;
|
||||
this.logger = logger;
|
||||
this.smsService = smsService;
|
||||
this.mailService = mailService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send a Mail Message
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
/// <param name="throwException"></param>
|
||||
/// <param name="exception"></param>
|
||||
/// <returns></returns>
|
||||
public async Task SendMailAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
) {
|
||||
//
|
||||
if (exception.IsNull ()) {
|
||||
exception = XException.ActionFailed.ToException ();
|
||||
}
|
||||
|
||||
//
|
||||
try {
|
||||
await mailService.SendMailAsync (message, provider);
|
||||
} catch (Exception ex) {
|
||||
//
|
||||
logger.LogError ($"Exeption: {ex.Message}");
|
||||
|
||||
//
|
||||
if (throwException) {
|
||||
throw exception;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send SMS Message
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
/// <param name="throwException"></param>
|
||||
/// <param name="exception"></param>
|
||||
/// <returns></returns>
|
||||
public async Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null,
|
||||
bool throwException = true,
|
||||
Exception exception = null
|
||||
) {
|
||||
//
|
||||
if (exception.IsNull ()) {
|
||||
exception = XException.ActionFailed.ToException ();
|
||||
}
|
||||
|
||||
//
|
||||
try {
|
||||
await smsService.SendSmsAsync (message, provider);
|
||||
} catch {
|
||||
if (throwException) {
|
||||
throw exception;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check Message Provider is Ready or not
|
||||
/// </summary>
|
||||
/// <param name="checkMailService"></param>
|
||||
/// <param name="checkSmsService"></param>
|
||||
/// <returns></returns>
|
||||
public bool IsReady (
|
||||
bool? checkMailService = false,
|
||||
bool? checkSmsService = false
|
||||
) {
|
||||
//
|
||||
var result = true;
|
||||
|
||||
//
|
||||
// Check Mail Service ...
|
||||
if (checkMailService.HasValue &&
|
||||
checkMailService.GetValueOrDefault ()) {
|
||||
result = result && mailService != null;
|
||||
}
|
||||
|
||||
//
|
||||
// Check Sms Service ...
|
||||
if (checkSmsService.HasValue &&
|
||||
checkSmsService.GetValueOrDefault ()) {
|
||||
result = result && smsService != null;
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xMessageService\Providers\XSmsService.cs
|
||||
|
||||
using System;
|
||||
using RestSharp;
|
||||
using PhoneNumbers;
|
||||
using xCommons.Extensions;
|
||||
using xExceptions.Constants;
|
||||
using System.Threading.Tasks;
|
||||
using xMessageService.Models;
|
||||
using System.Collections.Generic;
|
||||
using xMessageService.Interfaces;
|
||||
|
||||
namespace xMessageService.Providers {
|
||||
public partial class XSmsService : IXSmsService {
|
||||
private string serviceUrl;
|
||||
private readonly string defaultProvider;
|
||||
private readonly IDictionary<string, XSmsConfiguration> configurations;
|
||||
|
||||
public XSmsService (
|
||||
string defaultProvider,
|
||||
IDictionary<string, XSmsConfiguration> configurations
|
||||
) {
|
||||
this.defaultProvider = defaultProvider;
|
||||
this.configurations = configurations;
|
||||
|
||||
//
|
||||
PrepareServiceUrl ();
|
||||
}
|
||||
|
||||
public Task SendSmsAsync (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
// Run Send SMS Asynchronous ...
|
||||
return Task.Run (() => {
|
||||
SendSMS (message, provider);
|
||||
});
|
||||
}
|
||||
|
||||
#region Private ...
|
||||
/// <summary>
|
||||
/// Prepare Service Url for Specified/Default Provider
|
||||
/// </summary>
|
||||
/// <param name="provider"></param>
|
||||
private void PrepareServiceUrl (string provider = null) {
|
||||
//
|
||||
if (provider.IsNullOrEmpty ()) {
|
||||
provider = defaultProvider;
|
||||
}
|
||||
|
||||
//
|
||||
var config = GetConfiguration (provider);
|
||||
if (config.IsNull ()) {
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
serviceUrl = config.ServiceUrl;
|
||||
serviceUrl += "&username=" + config.Username + "&password=" + config.Password + "&";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Prepare Service url for Integrating XMessage by
|
||||
/// using Specified/Default Provider Configurations
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
private void PrepareSmsMessage (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
if (message == null ||
|
||||
message.Message.IsNullOrEmpty () ||
|
||||
message.Recievers.Count == 0) {
|
||||
XException.InvalidMessage.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
// Validating Mobile Numbers ...
|
||||
var phoneNumberUtil = PhoneNumbers.PhoneNumberUtil.GetInstance ();
|
||||
var recieversList = "";
|
||||
|
||||
//
|
||||
PrepareServiceUrl (provider);
|
||||
|
||||
//
|
||||
foreach (var reciever in message.Recievers) {
|
||||
try {
|
||||
//
|
||||
var mPhoneNumber = phoneNumberUtil.Parse (reciever, null);
|
||||
if (phoneNumberUtil.IsValidNumber (mPhoneNumber)) {
|
||||
//
|
||||
// Format Phone Numbers to the '+989120000000' pattern ...
|
||||
var recieverPhone = phoneNumberUtil.Format (mPhoneNumber, PhoneNumberFormat.E164);
|
||||
if (recieversList.Length > 0) {
|
||||
recieversList += ",";
|
||||
}
|
||||
recieversList += reciever;
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
|
||||
//
|
||||
var config = GetConfiguration ();
|
||||
|
||||
//
|
||||
// Preparing All Content and Configurations for Sending Messages ...
|
||||
serviceUrl += "to=" +
|
||||
recieversList +
|
||||
"&message=" +
|
||||
message.Message +
|
||||
"&from=" +
|
||||
config.LineNumber +
|
||||
"&flash=" +
|
||||
false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Send a Message as SMS by Specified/Default Provider
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
/// <param name="provider"></param>
|
||||
private void SendSMS (
|
||||
XMessage message,
|
||||
string provider = null
|
||||
) {
|
||||
//
|
||||
if (serviceUrl.IsNullOrEmpty ()) {
|
||||
//
|
||||
Console.WriteLine ($"SMS Error: MessageServiceInitialFailed ...");
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
try {
|
||||
//
|
||||
// preparing Service Url based on message data ...
|
||||
PrepareSmsMessage (message, provider);
|
||||
|
||||
//
|
||||
// Implementing Service Calling Using RestSharp Library ...
|
||||
// We Select RestSharp because it supports Sync/Async Calls ...
|
||||
var client = new RestClient (serviceUrl);
|
||||
var request = new RestRequest (Method.POST);
|
||||
|
||||
//
|
||||
// Send Request ...
|
||||
var response = client.Execute (request);
|
||||
} catch (Exception ex) {
|
||||
Console.WriteLine ($"SMS Error: {ex.Message}");
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validate and Retrieve Provider Configuration for Service
|
||||
/// </summary>
|
||||
/// <param name="provider"></param>
|
||||
/// <returns></returns>
|
||||
private XSmsConfiguration GetConfiguration (string provider = null) {
|
||||
//
|
||||
if (
|
||||
provider.IsNullOrEmpty () ||
|
||||
provider.ToNormalString () == "empty"
|
||||
) {
|
||||
//
|
||||
provider = defaultProvider;
|
||||
return null;
|
||||
}
|
||||
|
||||
//
|
||||
if (!configurations.Keys.Contains (provider)) {
|
||||
XException.MessageServiceInitialFailed.Throw ();
|
||||
}
|
||||
|
||||
//
|
||||
return configurations[provider];
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,574 +0,0 @@
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Configurations\XTermsAndConditionsServiceConfiguration.cs
|
||||
|
||||
using xDataService.Constants;
|
||||
using System.Collections.Generic;
|
||||
using xStringService.Models.Dtos;
|
||||
|
||||
namespace xTermsAndConditionsService.Configurations
|
||||
{
|
||||
/// <summary>
|
||||
/// Terms and Conditions Configuration ...
|
||||
/// </summary>
|
||||
public class XTermsAndConditionsServiceConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// Terms And Conditions Resource Title in XString Table ...
|
||||
/// </summary>
|
||||
public string ResourceTitle { get; set; } = "terms_and_conditions";
|
||||
|
||||
/// <summary>
|
||||
/// Seeding Mode for Terms and Conditions ...
|
||||
/// </summary>
|
||||
public XDbSeedingMode SeedingMode { get; set; } = XDbSeedingMode.AddIfNotExists;
|
||||
|
||||
/// <summary>
|
||||
/// Default Terms and Conditions for Add to Databse on App Startup ...
|
||||
/// </summary>
|
||||
public List<XStringDto> TermsAndConditions { get; set; } = null;
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Constants\ConfigurationNodeNames.cs
|
||||
|
||||
namespace xTermsAndConditionsService.Constants
|
||||
{
|
||||
public partial struct ConfigurationNodeNames
|
||||
{
|
||||
public const string TERMS_AND_CONDITIONS_SERVICE_NODE = "TermsAndConditionsService";
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Constants\XTermsAndConditionsServiceConstants.cs
|
||||
|
||||
namespace xTermsAndConditionsService.Constants
|
||||
{
|
||||
public struct XTermsAndConditionsServiceConstants
|
||||
{
|
||||
//
|
||||
// Service Extensions Log Tag ...
|
||||
public const string XTermsAndConditionsServiceDILogTag = "XTermsAndConditionsService";
|
||||
|
||||
//
|
||||
// Table Mapping Identifiers ...
|
||||
|
||||
//
|
||||
// GraphQL Collection Mappings ...
|
||||
|
||||
//
|
||||
// Hubs ...
|
||||
|
||||
//
|
||||
// Custome Constants ...
|
||||
|
||||
//
|
||||
// EF Repositories Helper Extensions ...
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Controllers\XTermsAndConditionsControllerBase.cs
|
||||
|
||||
using xCommons.Providers;
|
||||
using xCommons.Configurations;
|
||||
using xStringService.Controllers;
|
||||
using xIdentityService.Interfaces;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using xTermsAndConditionsService.Interfaces;
|
||||
|
||||
namespace xTermsAndConditionsService.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// a Base Controller Implementation for Providing Base Actions of
|
||||
/// Terms and Conditions Provided Actions ...
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
public abstract class XTermsAndConditionsControllerBase : XBaseResourceProviderControllerBase<IXTermsAndConditionsProvider>, IXTermsAndConditionsController
|
||||
{
|
||||
protected XTermsAndConditionsControllerBase(
|
||||
ILogger<XTermsAndConditionsControllerBase> logger,
|
||||
XAppConfiguration appConfiguration,
|
||||
IXIdentityProvider identityProvider,
|
||||
XValidationProvider validationProvider,
|
||||
IXTermsAndConditionsProvider provider
|
||||
) : base(
|
||||
logger,
|
||||
appConfiguration,
|
||||
identityProvider,
|
||||
validationProvider,
|
||||
provider
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\DI\XDIHelperExtension.cs
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using xPushService.DI;
|
||||
using xCommons.Extensions;
|
||||
using xPushService.Helpers;
|
||||
using xExceptions.Constants;
|
||||
using xCommons.Configurations;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using xStringService.Interfaces.Dtos;
|
||||
using xTermsAndConditionsService.Hubs;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using xTermsAndConditionsService.Constants;
|
||||
using xTermsAndConditionsService.Providers;
|
||||
using xTermsAndConditionsService.Interfaces;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using xTermsAndConditionsService.Configurations;
|
||||
|
||||
namespace xTermsAndConditionsService.DI
|
||||
{
|
||||
public static class XDIHelperExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Retrieve xTermsAndConditionsService Configuration from AppSettings ...
|
||||
/// </summary>
|
||||
/// <param name="configuration"></param>
|
||||
/// <returns></returns>
|
||||
public static XTermsAndConditionsServiceConfiguration GetXTermsAndConditionsServiceConfiguration(
|
||||
this IConfiguration configuration
|
||||
)
|
||||
{
|
||||
//
|
||||
var section = configuration.GetSection(ConfigurationNodeNames.TERMS_AND_CONDITIONS_SERVICE_NODE);
|
||||
var result = section.Get<XTermsAndConditionsServiceConfiguration>();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extract xTermsAndConditionsService Configurations from AppSettings
|
||||
/// and Register it in DI ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXTermsAndConditionsConfiguration(
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration
|
||||
)
|
||||
{
|
||||
//
|
||||
var serviceConfiguration = configuration.GetXTermsAndConditionsServiceConfiguration();
|
||||
services.AddXTermsAndConditionsConfiguration(serviceConfiguration);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register xTermsAndConditionsService Configurations in DI ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public static void AddXTermsAndConditionsConfiguration(
|
||||
this IServiceCollection services,
|
||||
XTermsAndConditionsServiceConfiguration configuration
|
||||
)
|
||||
{
|
||||
//
|
||||
if (configuration.IsNull())
|
||||
{
|
||||
Log($"there is no provided configurations, using default ...");
|
||||
configuration = new XTermsAndConditionsServiceConfiguration();
|
||||
}
|
||||
|
||||
//
|
||||
services.AddSingleton(configuration);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register TermsConditions Provider ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration">provided AppSettings Configuration</param>
|
||||
/// <param name="lifeTime"></param>
|
||||
public static void AddXTermsConditionsService(
|
||||
this IServiceCollection services,
|
||||
IConfiguration configuration,
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Transient
|
||||
)
|
||||
{
|
||||
//
|
||||
AddTermsAndConditionsService(
|
||||
services: services,
|
||||
lifeTime: lifeTime,
|
||||
configuration: configuration
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register TermsConditions Provider ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="configuration">provided xTermsAndConditionsService Configuration</param>
|
||||
/// <param name="lifeTime"></param>
|
||||
public static void AddXTermsConditionsService(
|
||||
this IServiceCollection services,
|
||||
XTermsAndConditionsServiceConfiguration configuration,
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Transient
|
||||
)
|
||||
{
|
||||
//
|
||||
AddTermsAndConditionsService(
|
||||
services: services,
|
||||
lifeTime: lifeTime,
|
||||
serviceConfiguration: configuration
|
||||
);
|
||||
}
|
||||
|
||||
public static void UseXTermsAndConditionsService(
|
||||
this IApplicationBuilder app
|
||||
)
|
||||
{
|
||||
//
|
||||
// Create an Scope for Services Acess ...
|
||||
using (var scope = app.ApplicationServices.CreateScope())
|
||||
{
|
||||
//
|
||||
// Inject Requirements ...
|
||||
var stringProvider = scope.ServiceProvider.GetService<IXStringServiceProvider>();
|
||||
var serviceConfiguration = scope.ServiceProvider.GetService<XTermsAndConditionsServiceConfiguration>();
|
||||
|
||||
//
|
||||
// Using XTerms Hub ...
|
||||
var pushHelper = new XPushServiceHelper();
|
||||
pushHelper.AddHub<XTermsHub>("terms");
|
||||
app.UseXPushService(pushHelper);
|
||||
|
||||
//
|
||||
// Validate Requirements Exists ...
|
||||
var isValid =
|
||||
!stringProvider.IsNull() &&
|
||||
!serviceConfiguration.IsNull() &&
|
||||
!serviceConfiguration.TermsAndConditions.IsNull() &&
|
||||
serviceConfiguration.TermsAndConditions.HasChild() &&
|
||||
serviceConfiguration.SeedingMode != xDataService.Constants.XDbSeedingMode.None;
|
||||
if (isValid)
|
||||
{
|
||||
//
|
||||
// Prepare Default Terms ...
|
||||
serviceConfiguration
|
||||
.TermsAndConditions
|
||||
.ToList()
|
||||
.ForEach(t => t.ResourceTitle = serviceConfiguration.ResourceTitle);
|
||||
|
||||
//
|
||||
// Loop through Terms and Conditions for Seeding ...
|
||||
foreach (var item in serviceConfiguration.TermsAndConditions)
|
||||
{
|
||||
//
|
||||
// Detect Exists Item ...
|
||||
var exists = stringProvider.FindOneAsync(
|
||||
predicate: x =>
|
||||
x.Language == item.Language &&
|
||||
x.ResourceTitle == item.ResourceTitle
|
||||
)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
||||
//
|
||||
var isExists = !exists.IsNullOrDefault();
|
||||
|
||||
//
|
||||
switch (serviceConfiguration.SeedingMode)
|
||||
{
|
||||
//
|
||||
case xDataService.Constants.XDbSeedingMode.AddOrUpdate:
|
||||
//
|
||||
// Update Exists by new Provided ...
|
||||
exists.TranslatedValue = item.TranslatedValue;
|
||||
exists = stringProvider.UpdateAsync(
|
||||
id: exists.Id,
|
||||
item: exists,
|
||||
saveChanges: true
|
||||
)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
||||
//
|
||||
Log($"Refresh Terms and Conditions of {exists.Language}");
|
||||
break;
|
||||
|
||||
//
|
||||
case xDataService.Constants.XDbSeedingMode.AddIfNotExists:
|
||||
//
|
||||
if (!isExists)
|
||||
{
|
||||
//
|
||||
exists = stringProvider.AddAsync(
|
||||
item: item,
|
||||
saveChanges: true
|
||||
)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
||||
//
|
||||
Log($"Add Terms and Conditions for {exists.Language}");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
#region Private ...
|
||||
/// <summary>
|
||||
/// a LogTag for Service ...
|
||||
/// </summary>
|
||||
private static string XLogTag = XTermsAndConditionsServiceConstants.XTermsAndConditionsServiceDILogTag;
|
||||
|
||||
/// <summary>
|
||||
/// print a log in Console ...
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
private static void Log(string message)
|
||||
{
|
||||
Console.WriteLine($"{XLogTag} => {message}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add Terms and Conditions Provider Service ...
|
||||
/// </summary>
|
||||
/// <param name="services"></param>
|
||||
/// <param name="lifeTime"></param>
|
||||
private static void AddTermsAndConditionsService(
|
||||
IServiceCollection services,
|
||||
IConfiguration configuration = null,
|
||||
XTermsAndConditionsServiceConfiguration serviceConfiguration = null,
|
||||
ServiceLifetime lifeTime = ServiceLifetime.Transient
|
||||
)
|
||||
{
|
||||
//
|
||||
var exception = XException.InvalidArgs.ToException(); ;
|
||||
|
||||
//
|
||||
// Services ...
|
||||
var isServicesExists = !services.IsNull();
|
||||
if (!isServicesExists)
|
||||
{
|
||||
//
|
||||
Log("AddTermsAndConditions failed, services not provided ...");
|
||||
throw exception;
|
||||
}
|
||||
|
||||
//
|
||||
// Validate Configuration ...
|
||||
var isConfigValid = !configuration.IsNull() || !serviceConfiguration.IsNull();
|
||||
if (!isConfigValid)
|
||||
{
|
||||
//
|
||||
Log("AddTermsAndConditions failed, configuration not provided ...");
|
||||
throw exception;
|
||||
}
|
||||
|
||||
//
|
||||
// Lifetime ...
|
||||
var isLifetimeExists = !lifeTime.IsNull();
|
||||
if (!isLifetimeExists)
|
||||
{
|
||||
//
|
||||
Log("AddTermsAndConditions failed, lifetime not provided ...");
|
||||
throw exception;
|
||||
}
|
||||
|
||||
//
|
||||
// Check Dependencies Exists ...
|
||||
var isDependenciesPassed = !services
|
||||
.GetRegisteredService<XAppConfiguration>()
|
||||
.IsNull() &&
|
||||
!services.GetRegisteredService<IXStringServiceProvider>()
|
||||
.IsNull();
|
||||
if (!isDependenciesPassed)
|
||||
{
|
||||
//
|
||||
Log("AddTermsAndConditions failed due Dependencies Issues, IXStringServiceProvider or XAppConfiguration not provided ...");
|
||||
throw exception;
|
||||
}
|
||||
|
||||
//
|
||||
// Service Configuration Handler ...
|
||||
if (serviceConfiguration.IsNull())
|
||||
{
|
||||
serviceConfiguration = configuration.GetXTermsAndConditionsServiceConfiguration();
|
||||
}
|
||||
services.AddXTermsAndConditionsConfiguration(serviceConfiguration);
|
||||
|
||||
//
|
||||
// Register Resource Providers ...
|
||||
services.Add(new ServiceDescriptor(typeof(IXTermsAndConditionsProvider), typeof(XTermsAndConditionsProvider), lifeTime));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Hubs\XTermsHub.cs
|
||||
|
||||
using System.Threading;
|
||||
using xPushService.Base;
|
||||
using xCommons.Extensions;
|
||||
using System.Threading.Tasks;
|
||||
using xPushService.Constants;
|
||||
using xStringService.Models.Dtos;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace xTermsAndConditionsService.Hubs
|
||||
{
|
||||
/// <summary>
|
||||
/// a Hub for Notifing Terms and Conditions Events to Connected Clients ...
|
||||
/// </summary>
|
||||
public class XTermsHub : XBaseHub
|
||||
{
|
||||
public XTermsHub(
|
||||
ILogger<XTermsHub> logger
|
||||
) : base(logger)
|
||||
{
|
||||
}
|
||||
|
||||
//
|
||||
#region Hub Actions ...
|
||||
/// <summary>
|
||||
/// Add Specified Terms and Conditions ...
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Add(
|
||||
XStringDto entity,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var connectionId = Context.ConnectionId;
|
||||
if (!connectionId.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
await Clients
|
||||
.AllExcept(connectionId)
|
||||
.SendAsync(
|
||||
XBaseEntityHubAction.Add.GetStringValue(),
|
||||
entity.ToJSON(camelCase: true),
|
||||
connectionId,
|
||||
cancellationToken
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Deleted Specified Terms and Conditions ...
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Delete(
|
||||
XStringDto entity,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var connectionId = Context.ConnectionId;
|
||||
if (!connectionId.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
await Clients
|
||||
.AllExcept(connectionId)
|
||||
.SendAsync(
|
||||
XBaseEntityHubAction.Delete.GetStringValue(),
|
||||
entity.ToJSON(camelCase: true),
|
||||
connectionId,
|
||||
cancellationToken
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Notify an Entity Updated ...
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public async Task Update(
|
||||
XStringDto entity,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
//
|
||||
var connectionId = Context.ConnectionId;
|
||||
if (!connectionId.IsNullOrEmpty())
|
||||
{
|
||||
//
|
||||
await Clients
|
||||
.AllExcept(connectionId)
|
||||
.SendAsync(
|
||||
XBaseEntityHubAction.Update.GetStringValue(),
|
||||
entity.ToJSON(camelCase: true),
|
||||
connectionId,
|
||||
cancellationToken
|
||||
);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Interfaces\IXTermsAndConditionsController.cs
|
||||
|
||||
using xStringService.Interfaces;
|
||||
|
||||
namespace xTermsAndConditionsService.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// an Interface for Describing Terms and Conditions Management Controller Actions ...
|
||||
/// </summary>
|
||||
public interface IXTermsAndConditionsController : IXBaseResourceProviderController
|
||||
{ }
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Interfaces\IXTermsAndConditionsProvider.cs
|
||||
|
||||
using xStringService.Interfaces;
|
||||
|
||||
namespace xTermsAndConditionsService.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// an Interface for Describing Terms and Conditions Management Provided Actions ...
|
||||
/// </summary>
|
||||
public interface IXTermsAndConditionsProvider : IXResourceProvider
|
||||
{ }
|
||||
}
|
||||
|
||||
### FILE: C:\Users\hkhazaeeasl\Documents\Projets\XProjects\xSaherelmWorkspace\Modules\xTermsAndConditionsService\Providers\XTermsAndConditionsProvider.cs
|
||||
|
||||
using xStringService.Providers;
|
||||
using xStringService.Interfaces.Dtos;
|
||||
using xTermsAndConditionsService.Interfaces;
|
||||
using xTermsAndConditionsService.Configurations;
|
||||
|
||||
namespace xTermsAndConditionsService.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// an Implementation of Terms and Conditions Management Provided Actions ...
|
||||
/// </summary>
|
||||
public class XTermsAndConditionsProvider : XBaseResourceProvider, IXTermsAndConditionsProvider
|
||||
{
|
||||
public XTermsAndConditionsProvider(
|
||||
IXStringServiceProvider provider,
|
||||
XTermsAndConditionsServiceConfiguration configuration
|
||||
) : base(
|
||||
resource: "NULL",
|
||||
provider
|
||||
)
|
||||
{
|
||||
//
|
||||
// Since we nee to Set Resource Title of Terms and Conditions
|
||||
// during instancing using Provided Configurations ...
|
||||
// set this value here ...
|
||||
resource = configuration.ResourceTitle;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -12943,6 +12943,240 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v{version}/XBotProvider/Me": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"XBotProvider"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "version",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-PoweredBy",
|
||||
"in": "header",
|
||||
"description": "a Basic Authorization Filter",
|
||||
"schema": {
|
||||
"type": "String",
|
||||
"default": "SaherElmITCenter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v{version}/XBotProvider/Updates": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"XBotProvider"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Limit",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Offset",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Timeout",
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-PoweredBy",
|
||||
"in": "header",
|
||||
"description": "a Basic Authorization Filter",
|
||||
"schema": {
|
||||
"type": "String",
|
||||
"default": "SaherElmITCenter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/XBotUpdateResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v{version}/XBotProvider/Message": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"XBotProvider"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "version",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-PoweredBy",
|
||||
"in": "header",
|
||||
"description": "a Basic Authorization Filter",
|
||||
"schema": {
|
||||
"type": "String",
|
||||
"default": "SaherElmITCenter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json-patch+json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotSendMessageRequest"
|
||||
}
|
||||
},
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotSendMessageRequest"
|
||||
}
|
||||
},
|
||||
"text/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotSendMessageRequest"
|
||||
}
|
||||
},
|
||||
"application/*+json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotSendMessageRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/XBotMessage"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v{version}/XBotProvider/Test/Hi": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"XBotProvider"
|
||||
],
|
||||
"summary": "Check the Controller Up and Running",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "version",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-PoweredBy",
|
||||
"in": "header",
|
||||
"description": "a Basic Authorization Filter",
|
||||
"schema": {
|
||||
"type": "String",
|
||||
"default": "SaherElmITCenter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/api/v{version}/XBotProvider/Test/PassRequireXPowered": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"XBotProvider"
|
||||
],
|
||||
"summary": "Check Controller ByPass XPowered Filter",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "version",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "1.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "X-PoweredBy",
|
||||
"in": "header",
|
||||
"description": "a Basic Authorization Filter",
|
||||
"schema": {
|
||||
"type": "String",
|
||||
"default": "SaherElmITCenter"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Success"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
@@ -14049,17 +14283,17 @@
|
||||
"memberType": {
|
||||
"$ref": "#/components/schemas/MemberTypes"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"declaringType": {
|
||||
"$ref": "#/components/schemas/Type"
|
||||
},
|
||||
"reflectedType": {
|
||||
"$ref": "#/components/schemas/Type"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"nullable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"module": {
|
||||
"$ref": "#/components/schemas/Module"
|
||||
},
|
||||
@@ -16020,6 +16254,241 @@
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"XBotCallbackQuery": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"user": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
},
|
||||
"message": {
|
||||
"$ref": "#/components/schemas/XBotMessage"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"description": "a Callbacked From a Inline Keyboard ..."
|
||||
},
|
||||
"XBotMessage": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"messageId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"messageThreadId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"from": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
},
|
||||
"date": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"chat": {
|
||||
"nullable": true
|
||||
},
|
||||
"senderChat": {
|
||||
"nullable": true
|
||||
},
|
||||
"forwardFrom": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
},
|
||||
"forwardFromChat": {
|
||||
"nullable": true
|
||||
},
|
||||
"forwardFromMessageId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"forwardDate": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"replyToMessage": {
|
||||
"$ref": "#/components/schemas/XBotMessage"
|
||||
},
|
||||
"editDate": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"mediaGroupId": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"text": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"entities": {
|
||||
"type": "array",
|
||||
"items": { },
|
||||
"nullable": true
|
||||
},
|
||||
"animation": {
|
||||
"nullable": true
|
||||
},
|
||||
"audio": {
|
||||
"nullable": true
|
||||
},
|
||||
"document": {
|
||||
"nullable": true
|
||||
},
|
||||
"photo": {
|
||||
"type": "array",
|
||||
"items": { },
|
||||
"nullable": true
|
||||
},
|
||||
"sticker": {
|
||||
"nullable": true
|
||||
},
|
||||
"video": {
|
||||
"nullable": true
|
||||
},
|
||||
"voice": {
|
||||
"nullable": true
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"captionEntities": {
|
||||
"type": "array",
|
||||
"items": { },
|
||||
"nullable": true
|
||||
},
|
||||
"contact": {
|
||||
"nullable": true
|
||||
},
|
||||
"location": {
|
||||
"nullable": true
|
||||
},
|
||||
"newChatMembers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
},
|
||||
"nullable": true
|
||||
},
|
||||
"leftChatMember": {
|
||||
"$ref": "#/components/schemas/XBotResUser"
|
||||
},
|
||||
"invoice": {
|
||||
"nullable": true
|
||||
},
|
||||
"successfulPayment": {
|
||||
"nullable": true
|
||||
},
|
||||
"webAppData": {
|
||||
"nullable": true
|
||||
},
|
||||
"replyMarkup": {
|
||||
"nullable": true
|
||||
},
|
||||
"forumTopicCreated": {
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"description": "Represent a Bot MEssage ..."
|
||||
},
|
||||
"XBotResUser": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"isBot": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"lastName": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"firstName": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"languageCode": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"hasMainWebApp": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"hasTopicsEnabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"allowsUsersToCreateTopics": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"description": "Represent XBot Response User ..."
|
||||
},
|
||||
"XBotSendMessageRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"chatId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"text": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"replyMarkup": {
|
||||
"nullable": true
|
||||
},
|
||||
"messageThreadId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"replyToMessageId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"description": "Bot Message Send Request ..."
|
||||
},
|
||||
"XBotUpdateResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"updateId": {
|
||||
"type": "integer",
|
||||
"format": "int64"
|
||||
},
|
||||
"message": {
|
||||
"$ref": "#/components/schemas/XBotMessage"
|
||||
},
|
||||
"editedMessage": {
|
||||
"$ref": "#/components/schemas/XBotMessage"
|
||||
},
|
||||
"callbackQuery": {
|
||||
"$ref": "#/components/schemas/XBotCallbackQuery"
|
||||
},
|
||||
"preCheckoutQuery": {
|
||||
"nullable": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"description": "Represent an Event in Bot ..."
|
||||
},
|
||||
"XCategoryDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
@@ -753,3 +753,130 @@ Response:
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Bot
|
||||
|
||||
### Me
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 57317004,
|
||||
"is_bot": true,
|
||||
"username": "xsaherelmbot",
|
||||
"first_name": "xBaleBot",
|
||||
"has_topics_enabled": false,
|
||||
"allows_users_to_create_topics": false
|
||||
}
|
||||
```
|
||||
|
||||
### Updates
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"update_id": 1,
|
||||
"message": {
|
||||
"message_id": 1,
|
||||
"message_thread_id": 0,
|
||||
"from": {
|
||||
"id": 1917703782,
|
||||
"is_bot": false,
|
||||
"last_name": "",
|
||||
"first_name": "kimia ",
|
||||
"has_topics_enabled": false,
|
||||
"allows_users_to_create_topics": false
|
||||
},
|
||||
"date": 1794469606,
|
||||
"chat": {
|
||||
"id": 1917703782,
|
||||
"type": "private",
|
||||
"first_name": "kimia "
|
||||
},
|
||||
"forward_from_message_id": 0,
|
||||
"forward_date": 0,
|
||||
"edit_date": 0,
|
||||
"text": "/start",
|
||||
"entities": [
|
||||
{
|
||||
"type": "bot_command",
|
||||
"offset": 0,
|
||||
"length": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update_id": 2,
|
||||
"message": {
|
||||
"message_id": 2,
|
||||
"message_thread_id": 0,
|
||||
"from": {
|
||||
"id": 442637838,
|
||||
"is_bot": false,
|
||||
"last_name": "",
|
||||
"first_name": "بهاره زرگر",
|
||||
"has_topics_enabled": false,
|
||||
"allows_users_to_create_topics": false
|
||||
},
|
||||
"date": 1794484300,
|
||||
"chat": {
|
||||
"id": 442637838,
|
||||
"type": "private",
|
||||
"first_name": "بهاره زرگر"
|
||||
},
|
||||
"forward_from_message_id": 0,
|
||||
"forward_date": 0,
|
||||
"edit_date": 0,
|
||||
"text": "/start",
|
||||
"entities": [
|
||||
{
|
||||
"type": "bot_command",
|
||||
"offset": 0,
|
||||
"length": 6
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### Message
|
||||
|
||||
Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"chatId": 442637838,
|
||||
"text": "SaherElm IT Center Invites You to xBotProvider ...",
|
||||
"replyMarkup": null,
|
||||
"messageThreadId": 0,
|
||||
"replyToMessageId": 0
|
||||
}
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"message_id": 4,
|
||||
"message_thread_id": 0,
|
||||
"from": {
|
||||
"id": 57317004,
|
||||
"is_bot": true,
|
||||
"last_name": "",
|
||||
"username": "xsaherelmbot",
|
||||
"first_name": "",
|
||||
"has_topics_enabled": false,
|
||||
"allows_users_to_create_topics": false
|
||||
},
|
||||
"date": 1794495172,
|
||||
"chat": {
|
||||
"id": 442637838,
|
||||
"type": "private"
|
||||
},
|
||||
"forward_from_message_id": 0,
|
||||
"forward_date": 0,
|
||||
"edit_date": 0,
|
||||
"text": "SaherElm IT Center Invites You to xBotProvider ..."
|
||||
}
|
||||
```
|
||||
|
||||
+1
-1
Submodule Modules/xBotService updated: d3b5ba622f...fa59823008
+1
-1
Submodule Modules/xHttpService updated: 3f707317bf...3afe34e438
+1
-1
Submodule Modules/xIdentityService updated: 89bc95865a...825e554878
+1
-1
Submodule Modules/xLoggingService updated: def0807fdd...2308ec0be3
+1
-1
Submodule Modules/xServices updated: 0a641f4117...7885a6b629
Reference in New Issue
Block a user