@cristian.aragao/milharis-core 1.30.63 → 1.30.64
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 +96 -2
- package/dist/index.d.ts +96 -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
|
@@ -2609,6 +2609,39 @@ type TypeCartDescargasProps = {
|
|
|
2609
2609
|
filtros?: TypeCartListProps;
|
|
2610
2610
|
};
|
|
2611
2611
|
|
|
2612
|
+
type TypeLimiteNumeroAposta = TypeMetaData & {
|
|
2613
|
+
/**
|
|
2614
|
+
* @description Id aleatório gerado para o documento
|
|
2615
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
2616
|
+
*/
|
|
2617
|
+
id: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* @description Id incremental por banca
|
|
2620
|
+
* @example "1"
|
|
2621
|
+
* @example "2"
|
|
2622
|
+
*/
|
|
2623
|
+
id_integer: string;
|
|
2624
|
+
/**
|
|
2625
|
+
* @description Limite do valor de aposta para digitador
|
|
2626
|
+
* @example 100 (100 reais)
|
|
2627
|
+
*/
|
|
2628
|
+
limite: number;
|
|
2629
|
+
/**
|
|
2630
|
+
* @description Tipo de jogo que o limite de número de apostas pertence
|
|
2631
|
+
* @example "all" (todos os jogos)
|
|
2632
|
+
* @example "milhar"
|
|
2633
|
+
* @example "centena"
|
|
2634
|
+
* @example "dezena"
|
|
2635
|
+
* @example "grupo"
|
|
2636
|
+
*/
|
|
2637
|
+
tipo_jogo: "all" | keyof typeof GAMES;
|
|
2638
|
+
/**
|
|
2639
|
+
* @description ID da banca que o limite de número de apostas pertence
|
|
2640
|
+
* @example "5454-43sd-43s-345-345"
|
|
2641
|
+
*/
|
|
2642
|
+
bancaId: string;
|
|
2643
|
+
};
|
|
2644
|
+
|
|
2612
2645
|
/**
|
|
2613
2646
|
* @description Objeto que contem todas as coleções do banco de dados, com seus respectivos modelos.
|
|
2614
2647
|
* Serve para facilitar para facilitar a criação de novos documentos no banco de dados e para facilitar a leitura do código.
|
|
@@ -2618,6 +2651,7 @@ declare const collections: {
|
|
|
2618
2651
|
readonly users: (obj?: Partial<TypeUser>) => TypeUser;
|
|
2619
2652
|
readonly guias: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
2620
2653
|
readonly guias_items: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
2654
|
+
readonly limites_numero_aposta: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
2621
2655
|
readonly valores_jogos: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
2622
2656
|
readonly limites_jogos: (obj?: Partial<TypeLimitGame>) => TypeLimitGame;
|
|
2623
2657
|
readonly pules: (obj?: Partial<TypeGame>) => TypeGame;
|
|
@@ -3106,10 +3140,37 @@ declare const GuiaModel: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
|
3106
3140
|
|
|
3107
3141
|
declare const GuiaItemModel: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
3108
3142
|
|
|
3143
|
+
declare const LimiteNumeroApostaModel: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
3144
|
+
|
|
3109
3145
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3110
3146
|
|
|
3111
3147
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
3112
3148
|
|
|
3149
|
+
/**
|
|
3150
|
+
* Combina uma data base com o horário de uma extração para formar uma data completa
|
|
3151
|
+
*
|
|
3152
|
+
* Esta função pega uma data base (YYYYMMDDHHmmss) e combina com o horário de uma extração,
|
|
3153
|
+
* criando uma nova data que mantém a data base mas usa o horário da extração.
|
|
3154
|
+
*
|
|
3155
|
+
* @param date Data base no formato YYYYMMDDHHmmss (ano, mês, dia, hora, minuto, segundo)
|
|
3156
|
+
* @param extracaoDate Horário da extração no formato HHmmss (hora, minuto, segundo)
|
|
3157
|
+
* @returns Data combinada no formato YYYYMMDDHHmmss, ou 0 se algum parâmetro for inválido
|
|
3158
|
+
*
|
|
3159
|
+
* @example
|
|
3160
|
+
* // Combina data 2024-12-25 00:00:00 com horário 14:30:00
|
|
3161
|
+
* const result = getBetDateToNumber(20241225000000, 143000);
|
|
3162
|
+
* // Retorna: 20241225143000 (25/12/2024 às 14:30:00)
|
|
3163
|
+
*
|
|
3164
|
+
* @example
|
|
3165
|
+
* // Combina data 2024-12-25 10:15:30 com horário 09:45:00
|
|
3166
|
+
* const result = getBetDateToNumber(20241225101530, 94500);
|
|
3167
|
+
* // Retorna: 20241225094500 (25/12/2024 às 09:45:00)
|
|
3168
|
+
*
|
|
3169
|
+
* @example
|
|
3170
|
+
* // Parâmetros inválidos
|
|
3171
|
+
* const result = getBetDateToNumber(0, 0);
|
|
3172
|
+
* // Retorna: 0
|
|
3173
|
+
*/
|
|
3113
3174
|
declare const getBetDateToNumber: (date: number, extracaoDate: TypeExtracao["horario"]) => number;
|
|
3114
3175
|
|
|
3115
3176
|
/**
|
|
@@ -3532,12 +3593,43 @@ declare const extracaoEstaAtivaTryCatch: (dataAposta: number, extracao: TypeExtr
|
|
|
3532
3593
|
*/
|
|
3533
3594
|
declare const extracaoEstaAtivaBoolean: (dataAposta: number, extracao: TypeExtracao) => boolean;
|
|
3534
3595
|
|
|
3596
|
+
/**
|
|
3597
|
+
* Busca a próxima extração disponível para aposta baseada na existência de resultado
|
|
3598
|
+
*
|
|
3599
|
+
* Esta função determina qual extração o usuário pode apostar considerando:
|
|
3600
|
+
* - Se não há resultado: permite apostar na primeira extração do dia
|
|
3601
|
+
* - Se há resultado: permite apostar apenas na próxima extração após a que teve resultado
|
|
3602
|
+
*
|
|
3603
|
+
* @param extracoes Lista completa de extrações disponíveis
|
|
3604
|
+
* @param data Data da aposta no formato YYYYMMDDHHmmss
|
|
3605
|
+
* @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
|
|
3606
|
+
* @returns A próxima extração disponível para aposta, ou undefined se não há mais extrações disponíveis no dia
|
|
3607
|
+
*
|
|
3608
|
+
* @example
|
|
3609
|
+
* // Sem resultado - pode apostar desde o início
|
|
3610
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, undefined);
|
|
3611
|
+
* // Retorna: primeira extração do dia
|
|
3612
|
+
*
|
|
3613
|
+
* @example
|
|
3614
|
+
* // Com resultado - só pode apostar na próxima extração
|
|
3615
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultado);
|
|
3616
|
+
* // Retorna: próxima extração após a que teve resultado
|
|
3617
|
+
*
|
|
3618
|
+
* @example
|
|
3619
|
+
* // Última extração teve resultado - não pode mais apostar
|
|
3620
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultadoUltima);
|
|
3621
|
+
* // Retorna: undefined
|
|
3622
|
+
*/
|
|
3623
|
+
declare const getProximaExtracaoDisponivelParaAposta: (extracoes: TypeExtracao[], data: number, // YYYYMMDDHHmmss
|
|
3624
|
+
resultado?: TypeResultado) => TypeExtracao | undefined;
|
|
3625
|
+
|
|
3535
3626
|
declare const extracao_extracaoEstaAtivaBoolean: typeof extracaoEstaAtivaBoolean;
|
|
3536
3627
|
declare const extracao_extracaoEstaAtivaTryCatch: typeof extracaoEstaAtivaTryCatch;
|
|
3537
3628
|
declare const extracao_getAvailableTimes: typeof getAvailableTimes;
|
|
3629
|
+
declare const extracao_getProximaExtracaoDisponivelParaAposta: typeof getProximaExtracaoDisponivelParaAposta;
|
|
3538
3630
|
declare const extracao_pegarExtracoes: typeof pegarExtracoes;
|
|
3539
3631
|
declare namespace extracao {
|
|
3540
|
-
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_pegarExtracoes as pegarExtracoes };
|
|
3632
|
+
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_getProximaExtracaoDisponivelParaAposta as getProximaExtracaoDisponivelParaAposta, extracao_pegarExtracoes as pegarExtracoes };
|
|
3541
3633
|
}
|
|
3542
3634
|
|
|
3543
3635
|
/**
|
|
@@ -3954,6 +4046,8 @@ declare namespace descarga {
|
|
|
3954
4046
|
declare const clone: <T>(item: T) => T;
|
|
3955
4047
|
|
|
3956
4048
|
/**
|
|
4049
|
+
* @deprecated Esta função está depreciada. Use getBetDateToNumber ao invés desta.
|
|
4050
|
+
*
|
|
3957
4051
|
* Combina a data (ano, mês, dia) de um timestamp (`dateA`)
|
|
3958
4052
|
* com o horário (hora, minuto, segundo) de outro timestamp (`dateB`).
|
|
3959
4053
|
* Ambos os timestamps devem estar no formato `yyyyMMddHHmmss`.
|
|
@@ -4227,4 +4321,4 @@ declare const functionsCore: {
|
|
|
4227
4321
|
envio: typeof envio;
|
|
4228
4322
|
};
|
|
4229
4323
|
|
|
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 };
|
|
4324
|
+
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 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
|
@@ -2609,6 +2609,39 @@ type TypeCartDescargasProps = {
|
|
|
2609
2609
|
filtros?: TypeCartListProps;
|
|
2610
2610
|
};
|
|
2611
2611
|
|
|
2612
|
+
type TypeLimiteNumeroAposta = TypeMetaData & {
|
|
2613
|
+
/**
|
|
2614
|
+
* @description Id aleatório gerado para o documento
|
|
2615
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
2616
|
+
*/
|
|
2617
|
+
id: string;
|
|
2618
|
+
/**
|
|
2619
|
+
* @description Id incremental por banca
|
|
2620
|
+
* @example "1"
|
|
2621
|
+
* @example "2"
|
|
2622
|
+
*/
|
|
2623
|
+
id_integer: string;
|
|
2624
|
+
/**
|
|
2625
|
+
* @description Limite do valor de aposta para digitador
|
|
2626
|
+
* @example 100 (100 reais)
|
|
2627
|
+
*/
|
|
2628
|
+
limite: number;
|
|
2629
|
+
/**
|
|
2630
|
+
* @description Tipo de jogo que o limite de número de apostas pertence
|
|
2631
|
+
* @example "all" (todos os jogos)
|
|
2632
|
+
* @example "milhar"
|
|
2633
|
+
* @example "centena"
|
|
2634
|
+
* @example "dezena"
|
|
2635
|
+
* @example "grupo"
|
|
2636
|
+
*/
|
|
2637
|
+
tipo_jogo: "all" | keyof typeof GAMES;
|
|
2638
|
+
/**
|
|
2639
|
+
* @description ID da banca que o limite de número de apostas pertence
|
|
2640
|
+
* @example "5454-43sd-43s-345-345"
|
|
2641
|
+
*/
|
|
2642
|
+
bancaId: string;
|
|
2643
|
+
};
|
|
2644
|
+
|
|
2612
2645
|
/**
|
|
2613
2646
|
* @description Objeto que contem todas as coleções do banco de dados, com seus respectivos modelos.
|
|
2614
2647
|
* Serve para facilitar para facilitar a criação de novos documentos no banco de dados e para facilitar a leitura do código.
|
|
@@ -2618,6 +2651,7 @@ declare const collections: {
|
|
|
2618
2651
|
readonly users: (obj?: Partial<TypeUser>) => TypeUser;
|
|
2619
2652
|
readonly guias: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
2620
2653
|
readonly guias_items: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
2654
|
+
readonly limites_numero_aposta: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
2621
2655
|
readonly valores_jogos: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
2622
2656
|
readonly limites_jogos: (obj?: Partial<TypeLimitGame>) => TypeLimitGame;
|
|
2623
2657
|
readonly pules: (obj?: Partial<TypeGame>) => TypeGame;
|
|
@@ -3106,10 +3140,37 @@ declare const GuiaModel: (obj?: Partial<TypeGuia>) => TypeGuia;
|
|
|
3106
3140
|
|
|
3107
3141
|
declare const GuiaItemModel: (obj?: Partial<TypeGuiaItem>) => TypeGuiaItem;
|
|
3108
3142
|
|
|
3143
|
+
declare const LimiteNumeroApostaModel: (obj?: Partial<TypeLimiteNumeroAposta>) => TypeLimiteNumeroAposta;
|
|
3144
|
+
|
|
3109
3145
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3110
3146
|
|
|
3111
3147
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
3112
3148
|
|
|
3149
|
+
/**
|
|
3150
|
+
* Combina uma data base com o horário de uma extração para formar uma data completa
|
|
3151
|
+
*
|
|
3152
|
+
* Esta função pega uma data base (YYYYMMDDHHmmss) e combina com o horário de uma extração,
|
|
3153
|
+
* criando uma nova data que mantém a data base mas usa o horário da extração.
|
|
3154
|
+
*
|
|
3155
|
+
* @param date Data base no formato YYYYMMDDHHmmss (ano, mês, dia, hora, minuto, segundo)
|
|
3156
|
+
* @param extracaoDate Horário da extração no formato HHmmss (hora, minuto, segundo)
|
|
3157
|
+
* @returns Data combinada no formato YYYYMMDDHHmmss, ou 0 se algum parâmetro for inválido
|
|
3158
|
+
*
|
|
3159
|
+
* @example
|
|
3160
|
+
* // Combina data 2024-12-25 00:00:00 com horário 14:30:00
|
|
3161
|
+
* const result = getBetDateToNumber(20241225000000, 143000);
|
|
3162
|
+
* // Retorna: 20241225143000 (25/12/2024 às 14:30:00)
|
|
3163
|
+
*
|
|
3164
|
+
* @example
|
|
3165
|
+
* // Combina data 2024-12-25 10:15:30 com horário 09:45:00
|
|
3166
|
+
* const result = getBetDateToNumber(20241225101530, 94500);
|
|
3167
|
+
* // Retorna: 20241225094500 (25/12/2024 às 09:45:00)
|
|
3168
|
+
*
|
|
3169
|
+
* @example
|
|
3170
|
+
* // Parâmetros inválidos
|
|
3171
|
+
* const result = getBetDateToNumber(0, 0);
|
|
3172
|
+
* // Retorna: 0
|
|
3173
|
+
*/
|
|
3113
3174
|
declare const getBetDateToNumber: (date: number, extracaoDate: TypeExtracao["horario"]) => number;
|
|
3114
3175
|
|
|
3115
3176
|
/**
|
|
@@ -3532,12 +3593,43 @@ declare const extracaoEstaAtivaTryCatch: (dataAposta: number, extracao: TypeExtr
|
|
|
3532
3593
|
*/
|
|
3533
3594
|
declare const extracaoEstaAtivaBoolean: (dataAposta: number, extracao: TypeExtracao) => boolean;
|
|
3534
3595
|
|
|
3596
|
+
/**
|
|
3597
|
+
* Busca a próxima extração disponível para aposta baseada na existência de resultado
|
|
3598
|
+
*
|
|
3599
|
+
* Esta função determina qual extração o usuário pode apostar considerando:
|
|
3600
|
+
* - Se não há resultado: permite apostar na primeira extração do dia
|
|
3601
|
+
* - Se há resultado: permite apostar apenas na próxima extração após a que teve resultado
|
|
3602
|
+
*
|
|
3603
|
+
* @param extracoes Lista completa de extrações disponíveis
|
|
3604
|
+
* @param data Data da aposta no formato YYYYMMDDHHmmss
|
|
3605
|
+
* @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
|
|
3606
|
+
* @returns A próxima extração disponível para aposta, ou undefined se não há mais extrações disponíveis no dia
|
|
3607
|
+
*
|
|
3608
|
+
* @example
|
|
3609
|
+
* // Sem resultado - pode apostar desde o início
|
|
3610
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, undefined);
|
|
3611
|
+
* // Retorna: primeira extração do dia
|
|
3612
|
+
*
|
|
3613
|
+
* @example
|
|
3614
|
+
* // Com resultado - só pode apostar na próxima extração
|
|
3615
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultado);
|
|
3616
|
+
* // Retorna: próxima extração após a que teve resultado
|
|
3617
|
+
*
|
|
3618
|
+
* @example
|
|
3619
|
+
* // Última extração teve resultado - não pode mais apostar
|
|
3620
|
+
* const proxima = getProximaExtracaoDisponivelParaAposta(extracoes, 20241225000000, resultadoUltima);
|
|
3621
|
+
* // Retorna: undefined
|
|
3622
|
+
*/
|
|
3623
|
+
declare const getProximaExtracaoDisponivelParaAposta: (extracoes: TypeExtracao[], data: number, // YYYYMMDDHHmmss
|
|
3624
|
+
resultado?: TypeResultado) => TypeExtracao | undefined;
|
|
3625
|
+
|
|
3535
3626
|
declare const extracao_extracaoEstaAtivaBoolean: typeof extracaoEstaAtivaBoolean;
|
|
3536
3627
|
declare const extracao_extracaoEstaAtivaTryCatch: typeof extracaoEstaAtivaTryCatch;
|
|
3537
3628
|
declare const extracao_getAvailableTimes: typeof getAvailableTimes;
|
|
3629
|
+
declare const extracao_getProximaExtracaoDisponivelParaAposta: typeof getProximaExtracaoDisponivelParaAposta;
|
|
3538
3630
|
declare const extracao_pegarExtracoes: typeof pegarExtracoes;
|
|
3539
3631
|
declare namespace extracao {
|
|
3540
|
-
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_pegarExtracoes as pegarExtracoes };
|
|
3632
|
+
export { extracao_extracaoEstaAtivaBoolean as extracaoEstaAtivaBoolean, extracao_extracaoEstaAtivaTryCatch as extracaoEstaAtivaTryCatch, extracao_getAvailableTimes as getAvailableTimes, extracao_getProximaExtracaoDisponivelParaAposta as getProximaExtracaoDisponivelParaAposta, extracao_pegarExtracoes as pegarExtracoes };
|
|
3541
3633
|
}
|
|
3542
3634
|
|
|
3543
3635
|
/**
|
|
@@ -3954,6 +4046,8 @@ declare namespace descarga {
|
|
|
3954
4046
|
declare const clone: <T>(item: T) => T;
|
|
3955
4047
|
|
|
3956
4048
|
/**
|
|
4049
|
+
* @deprecated Esta função está depreciada. Use getBetDateToNumber ao invés desta.
|
|
4050
|
+
*
|
|
3957
4051
|
* Combina a data (ano, mês, dia) de um timestamp (`dateA`)
|
|
3958
4052
|
* com o horário (hora, minuto, segundo) de outro timestamp (`dateB`).
|
|
3959
4053
|
* Ambos os timestamps devem estar no formato `yyyyMMddHHmmss`.
|
|
@@ -4227,4 +4321,4 @@ declare const functionsCore: {
|
|
|
4227
4321
|
envio: typeof envio;
|
|
4228
4322
|
};
|
|
4229
4323
|
|
|
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 };
|
|
4324
|
+
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 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 };
|