@cristian.aragao/milharis-core 1.30.50 → 1.30.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2041,7 +2041,7 @@ type TypeEnvioDescarga = TypeMetaData & {
2041
2041
  };
2042
2042
  /**
2043
2043
  * @description Informações do remetente, quem enviou a descarga
2044
- */
2044
+ */
2045
2045
  user: {
2046
2046
  id: TypeUser["id"];
2047
2047
  id_integer: TypeUser["id_integer"];
@@ -2050,7 +2050,7 @@ type TypeEnvioDescarga = TypeMetaData & {
2050
2050
  };
2051
2051
  /**
2052
2052
  * @description Informações de quem devolveu a descarga
2053
- */
2053
+ */
2054
2054
  devolvidoPor: {
2055
2055
  id: TypeUser["id"];
2056
2056
  id_integer: TypeUser["id_integer"];
@@ -2060,15 +2060,15 @@ type TypeEnvioDescarga = TypeMetaData & {
2060
2060
  /**
2061
2061
  * @description Valores dos jogos
2062
2062
  */
2063
- valoresJogos: Pick<TypeValueGame, "type_game" | "value">[];
2063
+ valoresJogos: Pick<TypeValueGame, "id" | "type_game" | "value">[];
2064
2064
  /**
2065
2065
  * @description Limites dos jogos
2066
2066
  */
2067
- limitesJogos: Pick<TypeLimitGame, "type_game" | "limit">[];
2067
+ limitesJogos: Pick<TypeLimitGame, "id" | "type_game" | "limit">[];
2068
2068
  /**
2069
2069
  * @description Comissões de descarga
2070
2070
  */
2071
- comissoesDescarga: Pick<TypeComissaoDescarga, "type_game" | "porcentagem">[];
2071
+ comissoesDescarga: Pick<TypeComissaoDescarga, "id" | "type_game" | "porcentagem">[];
2072
2072
  /** Timestamp da última atualização */
2073
2073
  atualizadoEm: number;
2074
2074
  /** Timestamp da última atualização de progresso */
@@ -2137,6 +2137,13 @@ type EnvioAssociacaoResponse = {
2137
2137
  /** Mensagem de resultado */
2138
2138
  message: string;
2139
2139
  };
2140
+ type TypeEnviosExtracao = {
2141
+ extracao: TypeEnvioDescarga["extracao"];
2142
+ jogos: Record<string, TypeJogoComComissao>;
2143
+ totalBruto: TypeTotalGeral["totalBruto"];
2144
+ totalLiquido: TypeTotalGeral["totalLiquido"];
2145
+ totalComissao: TypeTotalGeral["totalComissao"];
2146
+ };
2140
2147
 
2141
2148
  type TypeDescarga = TypeMetaData & {
2142
2149
  /**
@@ -2171,9 +2178,9 @@ type TypeDescarga = TypeMetaData & {
2171
2178
  */
2172
2179
  [envio_old_envioId: `${typeof PREFIX_ENVIO_OLD}${string}`]: number;
2173
2180
  /**
2174
- * @description Números que existem na descarga
2175
- * @example ["1234", "1235", "1236"]
2176
- */
2181
+ * @description Números que existem na descarga
2182
+ * @example ["1234", "1235", "1236"]
2183
+ */
2177
2184
  numeros: string[];
2178
2185
  /**
2179
2186
  * @description premio escolhido
@@ -2189,7 +2196,7 @@ type TypeDescarga = TypeMetaData & {
2189
2196
  *
2190
2197
  * @example 1.32 -> 1.35
2191
2198
  * @example 0.23 -> 0.25
2192
- */
2199
+ */
2193
2200
  valorArredondado: number;
2194
2201
  /**
2195
2202
  * @description Valor que foi enviado para a banca. É usado no trigger do número para ser subtraído do amount
@@ -2218,7 +2225,7 @@ type TypeDescarga = TypeMetaData & {
2218
2225
  * @description Limite real do jogo
2219
2226
  *
2220
2227
  * @example 40_000
2221
- */
2228
+ */
2222
2229
  limiteJogoReal: number;
2223
2230
  /**
2224
2231
  * @description Limite calculado a partir do limite dividido pelo valor do jogo
@@ -2229,18 +2236,26 @@ type TypeDescarga = TypeMetaData & {
2229
2236
  * Valor do jogo = 4_000
2230
2237
  *
2231
2238
  * Limite simulado = 40_000 / 4_000 = 10
2232
- */
2239
+ */
2233
2240
  limiteJogoSimulado: number;
2234
2241
  /**
2235
- * @description Valor do jogo
2236
- *
2237
- * @example 4_000
2238
- */
2242
+ * @description Valor do jogo
2243
+ *
2244
+ * @example 4_000
2245
+ */
2239
2246
  valorJogo: number;
2240
2247
  };
2241
2248
  type TypeDescargas = {
2242
2249
  [id: TypeDescarga["id"]]: TypeDescarga;
2243
2250
  };
2251
+ type TypeJogoComComissao = {
2252
+ totalEnviado: number;
2253
+ totalLiquido: number;
2254
+ totalComissao: number;
2255
+ ordem: number;
2256
+ tipo: keyof typeof COMISSOES_PADRAO;
2257
+ label: string;
2258
+ };
2244
2259
  type TypeTotalGeral = {
2245
2260
  /**
2246
2261
  * @description Jogos da descarga
@@ -2253,12 +2268,7 @@ type TypeTotalGeral = {
2253
2268
  * }
2254
2269
  * }
2255
2270
  */
2256
- jogos: Record<string, {
2257
- totalEnviado: number;
2258
- ordem: number;
2259
- tipo: keyof typeof COMISSOES_PADRAO;
2260
- label: string;
2261
- }>;
2271
+ jogos: Record<string, TypeJogoComComissao>;
2262
2272
  /**
2263
2273
  * @description Total bruto da descarga
2264
2274
  * @example 100
@@ -3757,10 +3767,10 @@ declare const getPropsEnvioIdOldDescarga: (descarga: Partial<TypeDescarga>) => {
3757
3767
  declare const getDescargaIdPeloEnvio: (numero: TypeNumero, envioId: string) => string;
3758
3768
 
3759
3769
  /**
3760
- * @description Calcula o total geral de uma descarga
3761
- * @param totalBrutoJogos - Total bruto dos jogos
3762
- * @param comissoes - Comissões das bancas
3763
- * @returns Total geral da descarga
3770
+ * @description Calcula o total geral de uma descarga aplicando comissões específicas
3771
+ * @param totalBrutoJogos - Objeto com totais brutos por tipo de jogo
3772
+ * @param comissoes - Objeto com comissões configuradas por tipo de jogo
3773
+ * @returns Objeto com totais calculados, jogos processados e comissões aplicadas
3764
3774
  */
3765
3775
  declare const getTotalGeralDescarga: (totalBrutoJogos: TypeEnvioDescarga["totalGeralJogos"], comissoes: TypeComissoesDescarga) => TypeTotalGeral;
3766
3776
 
@@ -4023,6 +4033,27 @@ declare namespace utils {
4023
4033
  export { utils_clone as clone, utils_combineDateTime as combineDateTime, utils_dateToNumber as dateToNumber, utils_delay as delay, utils_dividirArray as dividirArray, utils_formatterBRL as formatterBRL, utils_formatterPercentage as formatterPercentage, utils_formatterPercentageDecimal as formatterPercentageDecimal, utils_generateId as generateId, utils_getAllCombinations as getAllCombinations, utils_getCodigoAuth as getCodigoAuth, utils_getDataInicioFim as getDataInicioFim, utils_getInitials as getInitials, utils_matchNormalized as matchNormalized, utils_normalize as normalize, utils_numberToDate as numberToDate, utils_numbersSelectedFormated as numbersSelectedFormated, utils_parserBRL as parserBRL, utils_parserPercentage as parserPercentage, utils_parserPercentageDecimal as parserPercentageDecimal, utils_pegarHorarioSaoPaulo as pegarHorarioSaoPaulo, utils_removerLetters as removerLetters, utils_showFormatDate as showFormatDate };
4024
4034
  }
4025
4035
 
4036
+ declare const agruparEnvioPorExtracao: ({ envios, }: {
4037
+ envios: TypeEnvioDescargas;
4038
+ }) => TypeEnviosExtracao[];
4039
+
4040
+ /**
4041
+ * @description Cria uma estrutura de jogo com comissão a partir dos dados fornecidos
4042
+ * Esta função é responsável por criar um objeto TypeJogoComComissao completo
4043
+ * com todas as propriedades necessárias para representar um jogo processado
4044
+ *
4045
+ * @param _jogoId - ID do jogo (não utilizado, mas mantido para compatibilidade)
4046
+ * @param jogoData - Dados do jogo com comissão já calculada pela função getTotalGeralDescarga
4047
+ * @returns Objeto TypeJogoComComissao com estrutura completa do jogo
4048
+ */
4049
+ declare const criarEstruturaJogo: (_jogoId: string, jogoData: TypeJogoComComissao) => TypeJogoComComissao;
4050
+
4051
+ declare const envio_agruparEnvioPorExtracao: typeof agruparEnvioPorExtracao;
4052
+ declare const envio_criarEstruturaJogo: typeof criarEstruturaJogo;
4053
+ declare namespace envio {
4054
+ export { envio_agruparEnvioPorExtracao as agruparEnvioPorExtracao, envio_criarEstruturaJogo as criarEstruturaJogo };
4055
+ }
4056
+
4026
4057
  /**
4027
4058
  * @description Objeto que contém todas as funções do core, facilitando a importação e organização do código.
4028
4059
  */
@@ -4034,6 +4065,7 @@ declare const functionsCore: {
4034
4065
  users: typeof users;
4035
4066
  limite_jogos: typeof limite_jogos;
4036
4067
  utils: typeof utils;
4068
+ envio: typeof envio;
4037
4069
  };
4038
4070
 
4039
- export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, ComissaoDescargaModel, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeProps, type TypePropsPrefix, type TypeResultado, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
4071
+ export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, ComissaoDescargaModel, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeEnviosExtracao, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeJogoComComissao, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeProps, type TypePropsPrefix, type TypeResultado, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, criarEstruturaJogo, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
package/dist/index.d.ts CHANGED
@@ -2041,7 +2041,7 @@ type TypeEnvioDescarga = TypeMetaData & {
2041
2041
  };
2042
2042
  /**
2043
2043
  * @description Informações do remetente, quem enviou a descarga
2044
- */
2044
+ */
2045
2045
  user: {
2046
2046
  id: TypeUser["id"];
2047
2047
  id_integer: TypeUser["id_integer"];
@@ -2050,7 +2050,7 @@ type TypeEnvioDescarga = TypeMetaData & {
2050
2050
  };
2051
2051
  /**
2052
2052
  * @description Informações de quem devolveu a descarga
2053
- */
2053
+ */
2054
2054
  devolvidoPor: {
2055
2055
  id: TypeUser["id"];
2056
2056
  id_integer: TypeUser["id_integer"];
@@ -2060,15 +2060,15 @@ type TypeEnvioDescarga = TypeMetaData & {
2060
2060
  /**
2061
2061
  * @description Valores dos jogos
2062
2062
  */
2063
- valoresJogos: Pick<TypeValueGame, "type_game" | "value">[];
2063
+ valoresJogos: Pick<TypeValueGame, "id" | "type_game" | "value">[];
2064
2064
  /**
2065
2065
  * @description Limites dos jogos
2066
2066
  */
2067
- limitesJogos: Pick<TypeLimitGame, "type_game" | "limit">[];
2067
+ limitesJogos: Pick<TypeLimitGame, "id" | "type_game" | "limit">[];
2068
2068
  /**
2069
2069
  * @description Comissões de descarga
2070
2070
  */
2071
- comissoesDescarga: Pick<TypeComissaoDescarga, "type_game" | "porcentagem">[];
2071
+ comissoesDescarga: Pick<TypeComissaoDescarga, "id" | "type_game" | "porcentagem">[];
2072
2072
  /** Timestamp da última atualização */
2073
2073
  atualizadoEm: number;
2074
2074
  /** Timestamp da última atualização de progresso */
@@ -2137,6 +2137,13 @@ type EnvioAssociacaoResponse = {
2137
2137
  /** Mensagem de resultado */
2138
2138
  message: string;
2139
2139
  };
2140
+ type TypeEnviosExtracao = {
2141
+ extracao: TypeEnvioDescarga["extracao"];
2142
+ jogos: Record<string, TypeJogoComComissao>;
2143
+ totalBruto: TypeTotalGeral["totalBruto"];
2144
+ totalLiquido: TypeTotalGeral["totalLiquido"];
2145
+ totalComissao: TypeTotalGeral["totalComissao"];
2146
+ };
2140
2147
 
2141
2148
  type TypeDescarga = TypeMetaData & {
2142
2149
  /**
@@ -2171,9 +2178,9 @@ type TypeDescarga = TypeMetaData & {
2171
2178
  */
2172
2179
  [envio_old_envioId: `${typeof PREFIX_ENVIO_OLD}${string}`]: number;
2173
2180
  /**
2174
- * @description Números que existem na descarga
2175
- * @example ["1234", "1235", "1236"]
2176
- */
2181
+ * @description Números que existem na descarga
2182
+ * @example ["1234", "1235", "1236"]
2183
+ */
2177
2184
  numeros: string[];
2178
2185
  /**
2179
2186
  * @description premio escolhido
@@ -2189,7 +2196,7 @@ type TypeDescarga = TypeMetaData & {
2189
2196
  *
2190
2197
  * @example 1.32 -> 1.35
2191
2198
  * @example 0.23 -> 0.25
2192
- */
2199
+ */
2193
2200
  valorArredondado: number;
2194
2201
  /**
2195
2202
  * @description Valor que foi enviado para a banca. É usado no trigger do número para ser subtraído do amount
@@ -2218,7 +2225,7 @@ type TypeDescarga = TypeMetaData & {
2218
2225
  * @description Limite real do jogo
2219
2226
  *
2220
2227
  * @example 40_000
2221
- */
2228
+ */
2222
2229
  limiteJogoReal: number;
2223
2230
  /**
2224
2231
  * @description Limite calculado a partir do limite dividido pelo valor do jogo
@@ -2229,18 +2236,26 @@ type TypeDescarga = TypeMetaData & {
2229
2236
  * Valor do jogo = 4_000
2230
2237
  *
2231
2238
  * Limite simulado = 40_000 / 4_000 = 10
2232
- */
2239
+ */
2233
2240
  limiteJogoSimulado: number;
2234
2241
  /**
2235
- * @description Valor do jogo
2236
- *
2237
- * @example 4_000
2238
- */
2242
+ * @description Valor do jogo
2243
+ *
2244
+ * @example 4_000
2245
+ */
2239
2246
  valorJogo: number;
2240
2247
  };
2241
2248
  type TypeDescargas = {
2242
2249
  [id: TypeDescarga["id"]]: TypeDescarga;
2243
2250
  };
2251
+ type TypeJogoComComissao = {
2252
+ totalEnviado: number;
2253
+ totalLiquido: number;
2254
+ totalComissao: number;
2255
+ ordem: number;
2256
+ tipo: keyof typeof COMISSOES_PADRAO;
2257
+ label: string;
2258
+ };
2244
2259
  type TypeTotalGeral = {
2245
2260
  /**
2246
2261
  * @description Jogos da descarga
@@ -2253,12 +2268,7 @@ type TypeTotalGeral = {
2253
2268
  * }
2254
2269
  * }
2255
2270
  */
2256
- jogos: Record<string, {
2257
- totalEnviado: number;
2258
- ordem: number;
2259
- tipo: keyof typeof COMISSOES_PADRAO;
2260
- label: string;
2261
- }>;
2271
+ jogos: Record<string, TypeJogoComComissao>;
2262
2272
  /**
2263
2273
  * @description Total bruto da descarga
2264
2274
  * @example 100
@@ -3757,10 +3767,10 @@ declare const getPropsEnvioIdOldDescarga: (descarga: Partial<TypeDescarga>) => {
3757
3767
  declare const getDescargaIdPeloEnvio: (numero: TypeNumero, envioId: string) => string;
3758
3768
 
3759
3769
  /**
3760
- * @description Calcula o total geral de uma descarga
3761
- * @param totalBrutoJogos - Total bruto dos jogos
3762
- * @param comissoes - Comissões das bancas
3763
- * @returns Total geral da descarga
3770
+ * @description Calcula o total geral de uma descarga aplicando comissões específicas
3771
+ * @param totalBrutoJogos - Objeto com totais brutos por tipo de jogo
3772
+ * @param comissoes - Objeto com comissões configuradas por tipo de jogo
3773
+ * @returns Objeto com totais calculados, jogos processados e comissões aplicadas
3764
3774
  */
3765
3775
  declare const getTotalGeralDescarga: (totalBrutoJogos: TypeEnvioDescarga["totalGeralJogos"], comissoes: TypeComissoesDescarga) => TypeTotalGeral;
3766
3776
 
@@ -4023,6 +4033,27 @@ declare namespace utils {
4023
4033
  export { utils_clone as clone, utils_combineDateTime as combineDateTime, utils_dateToNumber as dateToNumber, utils_delay as delay, utils_dividirArray as dividirArray, utils_formatterBRL as formatterBRL, utils_formatterPercentage as formatterPercentage, utils_formatterPercentageDecimal as formatterPercentageDecimal, utils_generateId as generateId, utils_getAllCombinations as getAllCombinations, utils_getCodigoAuth as getCodigoAuth, utils_getDataInicioFim as getDataInicioFim, utils_getInitials as getInitials, utils_matchNormalized as matchNormalized, utils_normalize as normalize, utils_numberToDate as numberToDate, utils_numbersSelectedFormated as numbersSelectedFormated, utils_parserBRL as parserBRL, utils_parserPercentage as parserPercentage, utils_parserPercentageDecimal as parserPercentageDecimal, utils_pegarHorarioSaoPaulo as pegarHorarioSaoPaulo, utils_removerLetters as removerLetters, utils_showFormatDate as showFormatDate };
4024
4034
  }
4025
4035
 
4036
+ declare const agruparEnvioPorExtracao: ({ envios, }: {
4037
+ envios: TypeEnvioDescargas;
4038
+ }) => TypeEnviosExtracao[];
4039
+
4040
+ /**
4041
+ * @description Cria uma estrutura de jogo com comissão a partir dos dados fornecidos
4042
+ * Esta função é responsável por criar um objeto TypeJogoComComissao completo
4043
+ * com todas as propriedades necessárias para representar um jogo processado
4044
+ *
4045
+ * @param _jogoId - ID do jogo (não utilizado, mas mantido para compatibilidade)
4046
+ * @param jogoData - Dados do jogo com comissão já calculada pela função getTotalGeralDescarga
4047
+ * @returns Objeto TypeJogoComComissao com estrutura completa do jogo
4048
+ */
4049
+ declare const criarEstruturaJogo: (_jogoId: string, jogoData: TypeJogoComComissao) => TypeJogoComComissao;
4050
+
4051
+ declare const envio_agruparEnvioPorExtracao: typeof agruparEnvioPorExtracao;
4052
+ declare const envio_criarEstruturaJogo: typeof criarEstruturaJogo;
4053
+ declare namespace envio {
4054
+ export { envio_agruparEnvioPorExtracao as agruparEnvioPorExtracao, envio_criarEstruturaJogo as criarEstruturaJogo };
4055
+ }
4056
+
4026
4057
  /**
4027
4058
  * @description Objeto que contém todas as funções do core, facilitando a importação e organização do código.
4028
4059
  */
@@ -4034,6 +4065,7 @@ declare const functionsCore: {
4034
4065
  users: typeof users;
4035
4066
  limite_jogos: typeof limite_jogos;
4036
4067
  utils: typeof utils;
4068
+ envio: typeof envio;
4037
4069
  };
4038
4070
 
4039
- export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, ComissaoDescargaModel, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeProps, type TypePropsPrefix, type TypeResultado, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
4071
+ export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, ComissaoDescargaModel, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeEnviosExtracao, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeJogoComComissao, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeProps, type TypePropsPrefix, type TypeResultado, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, criarEstruturaJogo, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };