@cristian.aragao/milharis-core 1.30.63 → 1.30.65
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.cjs.js +1 -1
- package/dist/index.d.mts +99 -2
- package/dist/index.d.ts +99 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2618,6 +2618,7 @@ declare const collections: {
|
|
|
2618
2618
|
readonly users: (obj?: Partial<TypeUser>) => TypeUser;
|
|
2619
2619
|
readonly guias: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
2620
2620
|
readonly guias_items: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
2621
|
+
readonly limites_numero_aposta: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
2621
2622
|
readonly valores_jogos: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
2622
2623
|
readonly limites_jogos: (obj?: Partial<TypeLimitGame>) => TypeLimitGame;
|
|
2623
2624
|
readonly pules: (obj?: Partial<TypeGame>) => TypeGame;
|
|
@@ -3030,6 +3031,42 @@ type TypeGuiasItems = {
|
|
|
3030
3031
|
[id: TypeGuiaItem["id"]]: TypeGuiaItem;
|
|
3031
3032
|
};
|
|
3032
3033
|
|
|
3034
|
+
type TypeLimiteNumeroAposta = TypeMetaData & {
|
|
3035
|
+
/**
|
|
3036
|
+
* @description Id aleatório gerado para o documento
|
|
3037
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
3038
|
+
*/
|
|
3039
|
+
id: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* @description Id incremental por banca
|
|
3042
|
+
* @example "1"
|
|
3043
|
+
* @example "2"
|
|
3044
|
+
*/
|
|
3045
|
+
id_integer: string;
|
|
3046
|
+
/**
|
|
3047
|
+
* @description Limite do valor de aposta para digitador
|
|
3048
|
+
* @example 100 (100 reais)
|
|
3049
|
+
*/
|
|
3050
|
+
limite: number;
|
|
3051
|
+
/**
|
|
3052
|
+
* @description Tipo de jogo que o limite de número de apostas pertence
|
|
3053
|
+
* @example "all" (todos os jogos)
|
|
3054
|
+
* @example "milhar"
|
|
3055
|
+
* @example "centena"
|
|
3056
|
+
* @example "dezena"
|
|
3057
|
+
* @example "grupo"
|
|
3058
|
+
*/
|
|
3059
|
+
tipo_jogo: "all" | keyof typeof GAMES;
|
|
3060
|
+
/**
|
|
3061
|
+
* @description ID da banca que o limite de número de apostas pertence
|
|
3062
|
+
* @example "5454-43sd-43s-345-345"
|
|
3063
|
+
*/
|
|
3064
|
+
bancaId: string;
|
|
3065
|
+
};
|
|
3066
|
+
type TypeLimitesNumerosApostas = {
|
|
3067
|
+
[id: string]: TypeLimiteNumeroAposta;
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3033
3070
|
declare const GameModel: (obj?: Partial<TypeGame>) => TypeGame;
|
|
3034
3071
|
|
|
3035
3072
|
declare const NumberModel: (obj?: Partial<TypeNumero>) => TypeNumero;
|
|
@@ -3106,10 +3143,37 @@ declare const GuiaModel: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
|
3106
3143
|
|
|
3107
3144
|
declare const GuiaItemModel: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
3108
3145
|
|
|
3146
|
+
declare const LimiteNumeroApostaModel: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
3147
|
+
|
|
3109
3148
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3110
3149
|
|
|
3111
3150
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
3112
3151
|
|
|
3152
|
+
/**
|
|
3153
|
+
* Combina uma data base com o horário de uma extração para formar uma data completa
|
|
3154
|
+
*
|
|
3155
|
+
* Esta função pega uma data base (YYYYMMDDHHmmss) e combina com o horário de uma extração,
|
|
3156
|
+
* criando uma nova data que mantém a data base mas usa o horário da extração.
|
|
3157
|
+
*
|
|
3158
|
+
* @param date Data base no formato YYYYMMDDHHmmss (ano, mês, dia, hora, minuto, segundo)
|
|
3159
|
+
* @param extracaoDate Horário da extração no formato HHmmss (hora, minuto, segundo)
|
|
3160
|
+
* @returns Data combinada no formato YYYYMMDDHHmmss, ou 0 se algum parâmetro for inválido
|
|
3161
|
+
*
|
|
3162
|
+
* @example
|
|
3163
|
+
* // Combina data 2024-12-25 00:00:00 com horário 14:30:00
|
|
3164
|
+
* const result = getBetDateToNumber(20241225000000, 143000);
|
|
3165
|
+
* // Retorna: 20241225143000 (25/12/2024 às 14:30:00)
|
|
3166
|
+
*
|
|
3167
|
+
* @example
|
|
3168
|
+
* // Combina data 2024-12-25 10:15:30 com horário 09:45:00
|
|
3169
|
+
* const result = getBetDateToNumber(20241225101530, 94500);
|
|
3170
|
+
* // Retorna: 20241225094500 (25/12/2024 às 09:45:00)
|
|
3171
|
+
*
|
|
3172
|
+
* @example
|
|
3173
|
+
* // Parâmetros inválidos
|
|
3174
|
+
* const result = getBetDateToNumber(0, 0);
|
|
3175
|
+
* // Retorna: 0
|
|
3176
|
+
*/
|
|
3113
3177
|
declare const getBetDateToNumber: (date: number, extracaoDate: TypeExtracao["horario"]) => number;
|
|
3114
3178
|
|
|
3115
3179
|
/**
|
|
@@ -3532,12 +3596,43 @@ declare const extracaoEstaAtivaTryCatch: (dataAposta: number, extracao: TypeExtr
|
|
|
3532
3596
|
*/
|
|
3533
3597
|
declare const extracaoEstaAtivaBoolean: (dataAposta: number, extracao: TypeExtracao) => boolean;
|
|
3534
3598
|
|
|
3599
|
+
/**
|
|
3600
|
+
* Busca a próxima extração disponível para aposta baseada na existência de resultado
|
|
3601
|
+
*
|
|
3602
|
+
* Esta função determina qual extração o usuário pode apostar considerando:
|
|
3603
|
+
* - Se não há resultado: permite apostar na primeira extração do dia
|
|
3604
|
+
* - Se há resultado: permite apostar apenas na próxima extração após a que teve resultado
|
|
3605
|
+
*
|
|
3606
|
+
* @param extracoes Lista completa de extrações disponíveis
|
|
3607
|
+
* @param data Data da aposta no formato YYYYMMDDHHmmss
|
|
3608
|
+
* @param resultado Resultado do jogo (opcional). Se undefined, retorna primeira extração. Se existe, procura a extração que teve esse resultado e retorna a próxima
|
|
3609
|
+
* @returns A próxima extração disponível para aposta, ou undefined se não há mais extrações disponíveis no dia
|
|
3610
|
+
*
|
|
3611
|
+
* @example
|
|
3612
|
+
* // Sem resultado - pode apostar desde o início
|
|
3613
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, undefined);
|
|
3614
|
+
* // Retorna: primeira extração do dia
|
|
3615
|
+
*
|
|
3616
|
+
* @example
|
|
3617
|
+
* // Com resultado - só pode apostar na próxima extração
|
|
3618
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultado);
|
|
3619
|
+
* // Retorna: próxima extração após a que teve resultado
|
|
3620
|
+
*
|
|
3621
|
+
* @example
|
|
3622
|
+
* // Última extração teve resultado - não pode mais apostar
|
|
3623
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultadoUltima);
|
|
3624
|
+
* // Retorna: undefined
|
|
3625
|
+
*/
|
|
3626
|
+
declare const getProximaExtracaoDisponivelParaAposta: (extracoes: TypeExtracao[], data: number, // YYYYMMDDHHmmss
|
|
3627
|
+
resultado?: TypeResultado) => TypeExtracao | undefined;
|
|
3628
|
+
|
|
3535
3629
|
declare const extracao_extracaoEstaAtivaBoolean: typeof extracaoEstaAtivaBoolean;
|
|
3536
3630
|
declare const extracao_extracaoEstaAtivaTryCatch: typeof extracaoEstaAtivaTryCatch;
|
|
3537
3631
|
declare const extracao_getAvailableTimes: typeof getAvailableTimes;
|
|
3632
|
+
declare const extracao_getProximaExtracaoDisponivelParaAposta: typeof getProximaExtracaoDisponivelParaAposta;
|
|
3538
3633
|
declare const extracao_pegarExtracoes: typeof pegarExtracoes;
|
|
3539
3634
|
declare namespace extracao {
|
|
3540
|
-
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_pegarExtracoes as pegarExtracoes };
|
|
3635
|
+
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_getProximaExtracaoDisponivelParaAposta as getProximaExtracaoDisponivelParaAposta, extracao_pegarExtracoes as pegarExtracoes };
|
|
3541
3636
|
}
|
|
3542
3637
|
|
|
3543
3638
|
/**
|
|
@@ -3954,6 +4049,8 @@ declare namespace descarga {
|
|
|
3954
4049
|
declare const clone: <T>(item: T) => T;
|
|
3955
4050
|
|
|
3956
4051
|
/**
|
|
4052
|
+
* @deprecated Esta função está depreciada. Use getBetDateToNumber ao invés desta.
|
|
4053
|
+
*
|
|
3957
4054
|
* Combina a data (ano, mês, dia) de um timestamp (`dateA`)
|
|
3958
4055
|
* com o horário (hora, minuto, segundo) de outro timestamp (`dateB`).
|
|
3959
4056
|
* Ambos os timestamps devem estar no formato `yyyyMMddHHmmss`.
|
|
@@ -4227,4 +4324,4 @@ declare const functionsCore: {
|
|
|
4227
4324
|
envio: typeof envio;
|
|
4228
4325
|
};
|
|
4229
4326
|
|
|
4230
|
-
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, GuiaItemModel, GuiaModel, 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_GUIA, 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 TypeGuia, type TypeGuiaItem, type TypeGuias, type TypeGuiasItems, 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, collectionsRetentionDays, collectionsToAudit, 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, getComissoesDoEnvio, 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 };
|
|
4327
|
+
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, GuiaItemModel, GuiaModel, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, LimiteNumeroApostaModel, 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_GUIA, 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 TypeGuia, type TypeGuiaItem, type TypeGuias, type TypeGuiasItems, type TypeJogoComComissao, type TypeLimitGame, type TypeLimitGames, type TypeLimiteNumeroAposta, type TypeLimitesNumerosApostas, 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, collectionsRetentionDays, collectionsToAudit, 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, getComissoesDoEnvio, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getProximaExtracaoDisponivelParaAposta, 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
|
@@ -2618,6 +2618,7 @@ declare const collections: {
|
|
|
2618
2618
|
readonly users: (obj?: Partial<TypeUser>) => TypeUser;
|
|
2619
2619
|
readonly guias: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
2620
2620
|
readonly guias_items: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
2621
|
+
readonly limites_numero_aposta: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
2621
2622
|
readonly valores_jogos: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
2622
2623
|
readonly limites_jogos: (obj?: Partial<TypeLimitGame>) => TypeLimitGame;
|
|
2623
2624
|
readonly pules: (obj?: Partial<TypeGame>) => TypeGame;
|
|
@@ -3030,6 +3031,42 @@ type TypeGuiasItems = {
|
|
|
3030
3031
|
[id: TypeGuiaItem["id"]]: TypeGuiaItem;
|
|
3031
3032
|
};
|
|
3032
3033
|
|
|
3034
|
+
type TypeLimiteNumeroAposta = TypeMetaData & {
|
|
3035
|
+
/**
|
|
3036
|
+
* @description Id aleatório gerado para o documento
|
|
3037
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
3038
|
+
*/
|
|
3039
|
+
id: string;
|
|
3040
|
+
/**
|
|
3041
|
+
* @description Id incremental por banca
|
|
3042
|
+
* @example "1"
|
|
3043
|
+
* @example "2"
|
|
3044
|
+
*/
|
|
3045
|
+
id_integer: string;
|
|
3046
|
+
/**
|
|
3047
|
+
* @description Limite do valor de aposta para digitador
|
|
3048
|
+
* @example 100 (100 reais)
|
|
3049
|
+
*/
|
|
3050
|
+
limite: number;
|
|
3051
|
+
/**
|
|
3052
|
+
* @description Tipo de jogo que o limite de número de apostas pertence
|
|
3053
|
+
* @example "all" (todos os jogos)
|
|
3054
|
+
* @example "milhar"
|
|
3055
|
+
* @example "centena"
|
|
3056
|
+
* @example "dezena"
|
|
3057
|
+
* @example "grupo"
|
|
3058
|
+
*/
|
|
3059
|
+
tipo_jogo: "all" | keyof typeof GAMES;
|
|
3060
|
+
/**
|
|
3061
|
+
* @description ID da banca que o limite de número de apostas pertence
|
|
3062
|
+
* @example "5454-43sd-43s-345-345"
|
|
3063
|
+
*/
|
|
3064
|
+
bancaId: string;
|
|
3065
|
+
};
|
|
3066
|
+
type TypeLimitesNumerosApostas = {
|
|
3067
|
+
[id: string]: TypeLimiteNumeroAposta;
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3033
3070
|
declare const GameModel: (obj?: Partial<TypeGame>) => TypeGame;
|
|
3034
3071
|
|
|
3035
3072
|
declare const NumberModel: (obj?: Partial<TypeNumero>) => TypeNumero;
|
|
@@ -3106,10 +3143,37 @@ declare const GuiaModel: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
|
3106
3143
|
|
|
3107
3144
|
declare const GuiaItemModel: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
3108
3145
|
|
|
3146
|
+
declare const LimiteNumeroApostaModel: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
3147
|
+
|
|
3109
3148
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3110
3149
|
|
|
3111
3150
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
3112
3151
|
|
|
3152
|
+
/**
|
|
3153
|
+
* Combina uma data base com o horário de uma extração para formar uma data completa
|
|
3154
|
+
*
|
|
3155
|
+
* Esta função pega uma data base (YYYYMMDDHHmmss) e combina com o horário de uma extração,
|
|
3156
|
+
* criando uma nova data que mantém a data base mas usa o horário da extração.
|
|
3157
|
+
*
|
|
3158
|
+
* @param date Data base no formato YYYYMMDDHHmmss (ano, mês, dia, hora, minuto, segundo)
|
|
3159
|
+
* @param extracaoDate Horário da extração no formato HHmmss (hora, minuto, segundo)
|
|
3160
|
+
* @returns Data combinada no formato YYYYMMDDHHmmss, ou 0 se algum parâmetro for inválido
|
|
3161
|
+
*
|
|
3162
|
+
* @example
|
|
3163
|
+
* // Combina data 2024-12-25 00:00:00 com horário 14:30:00
|
|
3164
|
+
* const result = getBetDateToNumber(20241225000000, 143000);
|
|
3165
|
+
* // Retorna: 20241225143000 (25/12/2024 às 14:30:00)
|
|
3166
|
+
*
|
|
3167
|
+
* @example
|
|
3168
|
+
* // Combina data 2024-12-25 10:15:30 com horário 09:45:00
|
|
3169
|
+
* const result = getBetDateToNumber(20241225101530, 94500);
|
|
3170
|
+
* // Retorna: 20241225094500 (25/12/2024 às 09:45:00)
|
|
3171
|
+
*
|
|
3172
|
+
* @example
|
|
3173
|
+
* // Parâmetros inválidos
|
|
3174
|
+
* const result = getBetDateToNumber(0, 0);
|
|
3175
|
+
* // Retorna: 0
|
|
3176
|
+
*/
|
|
3113
3177
|
declare const getBetDateToNumber: (date: number, extracaoDate: TypeExtracao["horario"]) => number;
|
|
3114
3178
|
|
|
3115
3179
|
/**
|
|
@@ -3532,12 +3596,43 @@ declare const extracaoEstaAtivaTryCatch: (dataAposta: number, extracao: TypeExtr
|
|
|
3532
3596
|
*/
|
|
3533
3597
|
declare const extracaoEstaAtivaBoolean: (dataAposta: number, extracao: TypeExtracao) => boolean;
|
|
3534
3598
|
|
|
3599
|
+
/**
|
|
3600
|
+
* Busca a próxima extração disponível para aposta baseada na existência de resultado
|
|
3601
|
+
*
|
|
3602
|
+
* Esta função determina qual extração o usuário pode apostar considerando:
|
|
3603
|
+
* - Se não há resultado: permite apostar na primeira extração do dia
|
|
3604
|
+
* - Se há resultado: permite apostar apenas na próxima extração após a que teve resultado
|
|
3605
|
+
*
|
|
3606
|
+
* @param extracoes Lista completa de extrações disponíveis
|
|
3607
|
+
* @param data Data da aposta no formato YYYYMMDDHHmmss
|
|
3608
|
+
* @param resultado Resultado do jogo (opcional). Se undefined, retorna primeira extração. Se existe, procura a extração que teve esse resultado e retorna a próxima
|
|
3609
|
+
* @returns A próxima extração disponível para aposta, ou undefined se não há mais extrações disponíveis no dia
|
|
3610
|
+
*
|
|
3611
|
+
* @example
|
|
3612
|
+
* // Sem resultado - pode apostar desde o início
|
|
3613
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, undefined);
|
|
3614
|
+
* // Retorna: primeira extração do dia
|
|
3615
|
+
*
|
|
3616
|
+
* @example
|
|
3617
|
+
* // Com resultado - só pode apostar na próxima extração
|
|
3618
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultado);
|
|
3619
|
+
* // Retorna: próxima extração após a que teve resultado
|
|
3620
|
+
*
|
|
3621
|
+
* @example
|
|
3622
|
+
* // Última extração teve resultado - não pode mais apostar
|
|
3623
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultadoUltima);
|
|
3624
|
+
* // Retorna: undefined
|
|
3625
|
+
*/
|
|
3626
|
+
declare const getProximaExtracaoDisponivelParaAposta: (extracoes: TypeExtracao[], data: number, // YYYYMMDDHHmmss
|
|
3627
|
+
resultado?: TypeResultado) => TypeExtracao | undefined;
|
|
3628
|
+
|
|
3535
3629
|
declare const extracao_extracaoEstaAtivaBoolean: typeof extracaoEstaAtivaBoolean;
|
|
3536
3630
|
declare const extracao_extracaoEstaAtivaTryCatch: typeof extracaoEstaAtivaTryCatch;
|
|
3537
3631
|
declare const extracao_getAvailableTimes: typeof getAvailableTimes;
|
|
3632
|
+
declare const extracao_getProximaExtracaoDisponivelParaAposta: typeof getProximaExtracaoDisponivelParaAposta;
|
|
3538
3633
|
declare const extracao_pegarExtracoes: typeof pegarExtracoes;
|
|
3539
3634
|
declare namespace extracao {
|
|
3540
|
-
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_pegarExtracoes as pegarExtracoes };
|
|
3635
|
+
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_getProximaExtracaoDisponivelParaAposta as getProximaExtracaoDisponivelParaAposta, extracao_pegarExtracoes as pegarExtracoes };
|
|
3541
3636
|
}
|
|
3542
3637
|
|
|
3543
3638
|
/**
|
|
@@ -3954,6 +4049,8 @@ declare namespace descarga {
|
|
|
3954
4049
|
declare const clone: <T>(item: T) => T;
|
|
3955
4050
|
|
|
3956
4051
|
/**
|
|
4052
|
+
* @deprecated Esta função está depreciada. Use getBetDateToNumber ao invés desta.
|
|
4053
|
+
*
|
|
3957
4054
|
* Combina a data (ano, mês, dia) de um timestamp (`dateA`)
|
|
3958
4055
|
* com o horário (hora, minuto, segundo) de outro timestamp (`dateB`).
|
|
3959
4056
|
* Ambos os timestamps devem estar no formato `yyyyMMddHHmmss`.
|
|
@@ -4227,4 +4324,4 @@ declare const functionsCore: {
|
|
|
4227
4324
|
envio: typeof envio;
|
|
4228
4325
|
};
|
|
4229
4326
|
|
|
4230
|
-
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, GuiaItemModel, GuiaModel, 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_GUIA, 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 TypeGuia, type TypeGuiaItem, type TypeGuias, type TypeGuiasItems, 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, collectionsRetentionDays, collectionsToAudit, 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, getComissoesDoEnvio, 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 };
|
|
4327
|
+
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, GuiaItemModel, GuiaModel, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, LimiteNumeroApostaModel, 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_GUIA, 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 TypeGuia, type TypeGuiaItem, type TypeGuias, type TypeGuiasItems, type TypeJogoComComissao, type TypeLimitGame, type TypeLimitGames, type TypeLimiteNumeroAposta, type TypeLimitesNumerosApostas, 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, collectionsRetentionDays, collectionsToAudit, 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, getComissoesDoEnvio, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getProximaExtracaoDisponivelParaAposta, 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 };
|