using AyCode.Services.SignalRs;

namespace FruitBank.Common.SignalRs;

public class SignalRTags : AcSignalRTags
{
    public const int GetSiteViewModelByUserId = int.MaxValue;

    public const int NotificationReceived = 5;

    public const int GetMeasuringModels = 10;

    public const int GetPartners = 20;
    public const int GetPartnerById = 21;
    public const int AddPartner = 25;
    public const int UpdatePartner = 26;

    public const int GetCargoPartners = 30;
    public const int GetCargoPartnerById = 31;
    public const int AddCargoPartner = 32;
    public const int UpdateCargoPartner = 33;

    public const int GetCargoTrucks = 35;
    public const int GetCargoTrucksByCargoPartnerId = 36;
    public const int GetCargoTruckById = 37;
    public const int AddCargoTruck = 38;
    public const int UpdateCargoTruck = 39;

    public const int GetShippings = 40;
    public const int GetNotMeasuredShippings = 41;
    public const int GetShippingById = 42;
    public const int AddShipping = 45;
    public const int UpdateShipping = 46;
    public const int ProcessAndSaveFullShippingJson = 48;

    public const int GetShippingItems = 50;
    public const int GetShippingItemById = 51;
    public const int GetShippingItemsByDocumentId = 52;
    public const int GetShippingItemsByShippingId = 53;
    public const int GetShippingItemsByPartnerId = 54;
    public const int AddShippingItem = 55;
    public const int UpdateShippingItem = 56;
    public const int UpdateMeasuredShippingItem = 57;

    public const int GetShippingDocuments = 60;
    public const int GetShippingDocumentById = 61;
    public const int GetShippingDocumentsByShippingId = 62;
    public const int GetShippingDocumentsByProductId = 63;
    public const int GetShippingDocumentsByPartnerId = 64;
    public const int AddShippingDocument = 65;
    public const int UpdateShippingDocument = 66;

    public const int GetMeasuringUsers = 70;
    public const int GetCustomerDtoById = 71;
    public const int GetCustomerRolesByCustomerId = 72;

    public const int GetProductDtos = 80;
    public const int GetProductDtoById = 81;
    public const int GetAllMeasuringProductDtos = 82;
    public const int GetMeasuringProductDtoById = 83;

    public const int GetShippingItemPallets = 94;
    public const int AddShippingItemPallet = 95;
    public const int UpdateShippingItemPallet = 96;
    public const int AddOrUpdateMeasuredShippingItemPallet = 97;
    public const int AddOrUpdateMeasuredShippingItemPallets = 98;

    public const int GetAllOrderDtos = 111;
    public const int GetOrderDtoById = 112;
    public const int GetAllOrderDtoByIds = 113;
    public const int GetPendingOrderDtos = 114;
    public const int GetAllOrderDtoByProductId = 115;
    public const int GetPendingOrderDtosForMeasuring = 116;
    public const int GetOrderDatesForMeasuring = 117;
    public const int StartMeasuring = 118;
    public const int SetOrderStatusToComplete = 119;
    
    public const int GetOrderItemDtoById = 120;
    public const int GetAllOrderItemDtos = 121;
    public const int GetAllOrderItemDtoByOrderId = 122;
    public const int GetAllOrderItemDtoByProductId = 123;

    public const int GetAllOrderItemPallets = 130;
    public const int GetOrderItemPalletById = 131;
    public const int GetAllOrderItemPalletByOrderItemId = 132;
    public const int GetAllOrderItemPalletByProductId = 133;
    public const int GetAllOrderItemPalletByOrderId = 134;
    public const int AddOrderItemPallet = 135;
    public const int UpdateOrderItemPallet = 136;
    public const int AddOrUpdateMeasuredOrderItemPallet = 137;
    public const int AddOrUpdateMeasuredOrderItemPallets = 138;

    public const int GetStockQuantityHistoryDtos = 150;
    public const int GetStockQuantityHistoryDtosByProductId = 151;

    public const int GetGenericAttributeDtos = 160;
    /// <summary>
    /// Params: int EntityId, string KeyGroup, int StoreId
    /// </summary>
    public const int GetGenericAttributeDtosByEntityIdAndKeyGroup = 161;
    public const int AddGenericAttributeDto = 168;
    public const int UpdateGenericAttributeDto = 169;

    public const int GetStockTakings = 170;
    public const int AddStockTaking = 171;
    public const int RefreshStockTakingItem = 172;
    public const int UpdateStockTaking = 173;
    public const int CloseStockTaking = 174;
    public const int GetStockTakingItems = 175;
    public const int GetStockTakingItemsById = 176;
    public const int GetStockTakingItemsByProductId = 177;
    public const int GetStockTakingItemsByStockTakingId = 178;
    public const int AddOrUpdateMeasuredStockTakingItemPallet = 179;

    public const int GetPartnerDepots = 180;
    public const int GetPartnerDepotById = 181;
    public const int GetPartnerDepotsByPartnerId = 182;
    public const int AddPartnerDepot = 183;
    public const int UpdatePartnerDepot = 184;

    public const int GetEkaerHistories = 185;
    public const int GetEkaerHistoryById = 186;
    public const int GetEkaerHistoriesByForeignKey = 187;
    public const int AddEkaerHistory = 188;
    public const int UpdateEkaerHistory = 189;
    public const int GenerateEkaerXmlDocument = 190;
    public const int CreateEkaerHistory = 191;
    public const int CreateMissingEkaerHistories = 192;
    public const int GetEkaerHistoryCount = 193;

    public const int AuthenticateUser = 195;
    public const int RefreshToken = 200;

    #region SendToClient
    public const int SendOrderChanged = 500;
    public const int SendOrderItemChanged = 501;
    public const int SendOrderItemDeleted = 502;
    public const int SendOrderItemPalletChanged = 503;

    public const int SendShippingChanged = 520;
    public const int SendShippingItemChanged = 521;
    public const int SendShippingDocumentChanged = 522;
    public const int SendShippingItemPalletChanged = 523;

    public const int SendProductChanged = 540;
    #endregion SendToClient

    public const int GetAllLogItemsByFilterText = 1000;
}
