@cristian.aragao/milharis-core 1.31.21 → 1.31.24
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 +81 -7
- package/dist/index.d.ts +81 -7
- 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
|
@@ -1434,6 +1434,8 @@ type TypeUser = TypeMetaData & {
|
|
|
1434
1434
|
id: TypeRoute["id"];
|
|
1435
1435
|
name: TypeRoute["name"];
|
|
1436
1436
|
tipo: TypeRoute["tipo"];
|
|
1437
|
+
comission: TypeRoute["comission"];
|
|
1438
|
+
responsible: TypeRoute["responsible"];
|
|
1437
1439
|
codigo_rota: TypeRoute["codigo_rota"];
|
|
1438
1440
|
id_integer: TypeRoute["id_integer"];
|
|
1439
1441
|
};
|
|
@@ -1764,6 +1766,60 @@ type TypeValueGames = {
|
|
|
1764
1766
|
|
|
1765
1767
|
declare const ValueGameModel: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
1766
1768
|
|
|
1769
|
+
type TypeAssociacao = TypeMetaData & {
|
|
1770
|
+
/**
|
|
1771
|
+
* @description ID aleatório gerado para o documento
|
|
1772
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
1773
|
+
*/
|
|
1774
|
+
id: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* @description ID incremental por banca
|
|
1777
|
+
* @example "1"
|
|
1778
|
+
* @example "2"
|
|
1779
|
+
*/
|
|
1780
|
+
id_integer: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* @description Nome da associação
|
|
1783
|
+
* @example "Abaese"
|
|
1784
|
+
*/
|
|
1785
|
+
nome: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* @description Código da associação
|
|
1788
|
+
* @example "0143"
|
|
1789
|
+
*/
|
|
1790
|
+
codigo_associacao: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* @description Configurações visuais da banca, como logo e cores de fundo utilizadas na interface.
|
|
1793
|
+
*/
|
|
1794
|
+
settings: {
|
|
1795
|
+
/**
|
|
1796
|
+
* @description URL do storage do firebase da logo da banca.
|
|
1797
|
+
*/
|
|
1798
|
+
urlLogo: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* @description URL do storage do firebase da logo da banca em preto e branco.
|
|
1801
|
+
*/
|
|
1802
|
+
urlLogoPretoBranco: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* @description Imagem do logotipo da banca em base64.
|
|
1805
|
+
*/
|
|
1806
|
+
logoBase64: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* @description Imagem do logotipo da banca em base64 para impressão (em preto e branco).
|
|
1809
|
+
*/
|
|
1810
|
+
logoImpressaoBase64: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* @description URL da imagem de fundo da banca.
|
|
1813
|
+
*/
|
|
1814
|
+
urlBackground: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* @description Cor de tema da banca (tailwind).
|
|
1817
|
+
* @example "yellow"
|
|
1818
|
+
*/
|
|
1819
|
+
color: string;
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1767
1823
|
type TypePrize = {
|
|
1768
1824
|
prizes: number[];
|
|
1769
1825
|
value: number;
|
|
@@ -1799,7 +1855,7 @@ type TypeGame = TypeMetaData & {
|
|
|
1799
1855
|
login: TypeUser["login"];
|
|
1800
1856
|
role: TypeUser["role"];
|
|
1801
1857
|
comission: TypeUser["comission"];
|
|
1802
|
-
route: Pick<TypeRoute, "id" | "name" | "tipo" | "codigo_rota" | "id_integer">;
|
|
1858
|
+
route: Pick<TypeRoute, "id" | "name" | "responsible" | "comission" | "tipo" | "codigo_rota" | "id_integer">;
|
|
1803
1859
|
};
|
|
1804
1860
|
bets: TypeBet[];
|
|
1805
1861
|
dateBet: number;
|
|
@@ -1841,13 +1897,13 @@ type TypeGame = TypeMetaData & {
|
|
|
1841
1897
|
};
|
|
1842
1898
|
/**
|
|
1843
1899
|
* @description Diz se a pule foi reservada ou não
|
|
1844
|
-
|
|
1900
|
+
*/
|
|
1845
1901
|
reservada: boolean;
|
|
1846
1902
|
/**
|
|
1847
1903
|
* @description Dias da semana escolhidos
|
|
1848
1904
|
*
|
|
1849
1905
|
* @example [0,1,2] -> domingo, segunda e terça
|
|
1850
|
-
|
|
1906
|
+
*/
|
|
1851
1907
|
dias_disponiveis: number[];
|
|
1852
1908
|
infoJogos: string[];
|
|
1853
1909
|
/**
|
|
@@ -2054,6 +2110,11 @@ type TypeBanca = TypeMetaData & {
|
|
|
2054
2110
|
* @example "Banca Sortudinho"
|
|
2055
2111
|
*/
|
|
2056
2112
|
nome: string;
|
|
2113
|
+
/**
|
|
2114
|
+
* @description ID da associação que a banca pertence
|
|
2115
|
+
* @example "associacao_123"
|
|
2116
|
+
*/
|
|
2117
|
+
associacaoId: string;
|
|
2057
2118
|
/**
|
|
2058
2119
|
* @description Código da banca, usado para identificação no sistema.
|
|
2059
2120
|
* @example "0143"
|
|
@@ -2701,6 +2762,16 @@ type TypePremiacaoAssociacao = TypeMetaData & {
|
|
|
2701
2762
|
* @example "centena"
|
|
2702
2763
|
*/
|
|
2703
2764
|
tipo_jogo: keyof typeof GAMES;
|
|
2765
|
+
/**
|
|
2766
|
+
* @description Informações da banca que ganhou o prêmio
|
|
2767
|
+
*/
|
|
2768
|
+
banca: {
|
|
2769
|
+
id: TypeBanca["id"];
|
|
2770
|
+
id_integer: TypeBanca["id_integer"];
|
|
2771
|
+
nome: TypeBanca["nome"];
|
|
2772
|
+
codigo_banca: TypeBanca["codigo_banca"];
|
|
2773
|
+
};
|
|
2774
|
+
associacaoId: string;
|
|
2704
2775
|
/**
|
|
2705
2776
|
* @description Total que o cambista recebe do prêmio
|
|
2706
2777
|
* @example 4000
|
|
@@ -2804,6 +2875,7 @@ declare const collections: {
|
|
|
2804
2875
|
readonly comissoes_descarga: (obj?: Partial<TypeComissaoDescarga>) => TypeComissaoDescarga;
|
|
2805
2876
|
readonly vendas_cambistas: (obj?: Partial<TypeVendaCambista>) => TypeVendaCambista;
|
|
2806
2877
|
readonly vendas_por_dias: (obj?: Partial<TypeVendasPorDia>) => TypeVendasPorDia;
|
|
2878
|
+
readonly associacoes: (obj?: Partial<TypeAssociacao>) => TypeAssociacao;
|
|
2807
2879
|
};
|
|
2808
2880
|
|
|
2809
2881
|
/**
|
|
@@ -2842,9 +2914,9 @@ declare const collectionsRetentionDays: Record<keyof typeof collections, number
|
|
|
2842
2914
|
* @example
|
|
2843
2915
|
* - Se o valor for true, a coleção precisa de isolamento por bancaId
|
|
2844
2916
|
* - Se o valor for false, a coleção não precisa de isolamento por bancaId
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2917
|
+
*
|
|
2918
|
+
* Todas as chaves devem corresponder exatamente às chaves do objeto 'collections'.
|
|
2919
|
+
*/
|
|
2848
2920
|
declare const collectionsWithIsolationByBancaId: Record<keyof typeof collections, boolean>;
|
|
2849
2921
|
|
|
2850
2922
|
type Firestore<T = any> = T;
|
|
@@ -3512,6 +3584,8 @@ declare const VendaCambistaModel: (obj?: Partial<TypeVendaCambista>) => TypeVend
|
|
|
3512
3584
|
|
|
3513
3585
|
declare const VendasPorDiaModel: (obj?: Partial<TypeVendasPorDia>) => TypeVendasPorDia;
|
|
3514
3586
|
|
|
3587
|
+
declare const AssociacaoModel: (obj?: Partial<TypeAssociacao>) => TypeAssociacao;
|
|
3588
|
+
|
|
3515
3589
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3516
3590
|
|
|
3517
3591
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
@@ -4803,4 +4877,4 @@ declare const functionsCore: {
|
|
|
4803
4877
|
envio: typeof envio;
|
|
4804
4878
|
};
|
|
4805
4879
|
|
|
4806
|
-
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COLLECTIONS_NAMES, 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, ResultadoAssociacaoModel, 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 TypeResultadoAssociacao, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeResultadosAssociacao, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, type TypeVendaCambista, type TypeVendasCambistas, type TypeVendasPorDia, type TypeVendasPorDias, UserModel, VISUALIZACAO, ValueGameModel, VendaCambistaModel, VendasPorDiaModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, arrendondarCasasDecimais, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, collectionsRetentionDays, collectionsToAudit, collectionsWithIsolationByBancaId, 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 };
|
|
4880
|
+
export { AssociacaoModel, AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COLLECTIONS_NAMES, 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, ResultadoAssociacaoModel, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_GUIA, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAssociacao, 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 TypeResultadoAssociacao, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeResultadosAssociacao, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, type TypeVendaCambista, type TypeVendasCambistas, type TypeVendasPorDia, type TypeVendasPorDias, UserModel, VISUALIZACAO, ValueGameModel, VendaCambistaModel, VendasPorDiaModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, arrendondarCasasDecimais, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, collectionsRetentionDays, collectionsToAudit, collectionsWithIsolationByBancaId, 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
|
@@ -1434,6 +1434,8 @@ type TypeUser = TypeMetaData & {
|
|
|
1434
1434
|
id: TypeRoute["id"];
|
|
1435
1435
|
name: TypeRoute["name"];
|
|
1436
1436
|
tipo: TypeRoute["tipo"];
|
|
1437
|
+
comission: TypeRoute["comission"];
|
|
1438
|
+
responsible: TypeRoute["responsible"];
|
|
1437
1439
|
codigo_rota: TypeRoute["codigo_rota"];
|
|
1438
1440
|
id_integer: TypeRoute["id_integer"];
|
|
1439
1441
|
};
|
|
@@ -1764,6 +1766,60 @@ type TypeValueGames = {
|
|
|
1764
1766
|
|
|
1765
1767
|
declare const ValueGameModel: (obj?: Partial<TypeValueGame>) => TypeValueGame;
|
|
1766
1768
|
|
|
1769
|
+
type TypeAssociacao = TypeMetaData & {
|
|
1770
|
+
/**
|
|
1771
|
+
* @description ID aleatório gerado para o documento
|
|
1772
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
1773
|
+
*/
|
|
1774
|
+
id: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* @description ID incremental por banca
|
|
1777
|
+
* @example "1"
|
|
1778
|
+
* @example "2"
|
|
1779
|
+
*/
|
|
1780
|
+
id_integer: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* @description Nome da associação
|
|
1783
|
+
* @example "Abaese"
|
|
1784
|
+
*/
|
|
1785
|
+
nome: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* @description Código da associação
|
|
1788
|
+
* @example "0143"
|
|
1789
|
+
*/
|
|
1790
|
+
codigo_associacao: string;
|
|
1791
|
+
/**
|
|
1792
|
+
* @description Configurações visuais da banca, como logo e cores de fundo utilizadas na interface.
|
|
1793
|
+
*/
|
|
1794
|
+
settings: {
|
|
1795
|
+
/**
|
|
1796
|
+
* @description URL do storage do firebase da logo da banca.
|
|
1797
|
+
*/
|
|
1798
|
+
urlLogo: string;
|
|
1799
|
+
/**
|
|
1800
|
+
* @description URL do storage do firebase da logo da banca em preto e branco.
|
|
1801
|
+
*/
|
|
1802
|
+
urlLogoPretoBranco: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* @description Imagem do logotipo da banca em base64.
|
|
1805
|
+
*/
|
|
1806
|
+
logoBase64: string;
|
|
1807
|
+
/**
|
|
1808
|
+
* @description Imagem do logotipo da banca em base64 para impressão (em preto e branco).
|
|
1809
|
+
*/
|
|
1810
|
+
logoImpressaoBase64: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* @description URL da imagem de fundo da banca.
|
|
1813
|
+
*/
|
|
1814
|
+
urlBackground: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* @description Cor de tema da banca (tailwind).
|
|
1817
|
+
* @example "yellow"
|
|
1818
|
+
*/
|
|
1819
|
+
color: string;
|
|
1820
|
+
};
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1767
1823
|
type TypePrize = {
|
|
1768
1824
|
prizes: number[];
|
|
1769
1825
|
value: number;
|
|
@@ -1799,7 +1855,7 @@ type TypeGame = TypeMetaData & {
|
|
|
1799
1855
|
login: TypeUser["login"];
|
|
1800
1856
|
role: TypeUser["role"];
|
|
1801
1857
|
comission: TypeUser["comission"];
|
|
1802
|
-
route: Pick<TypeRoute, "id" | "name" | "tipo" | "codigo_rota" | "id_integer">;
|
|
1858
|
+
route: Pick<TypeRoute, "id" | "name" | "responsible" | "comission" | "tipo" | "codigo_rota" | "id_integer">;
|
|
1803
1859
|
};
|
|
1804
1860
|
bets: TypeBet[];
|
|
1805
1861
|
dateBet: number;
|
|
@@ -1841,13 +1897,13 @@ type TypeGame = TypeMetaData & {
|
|
|
1841
1897
|
};
|
|
1842
1898
|
/**
|
|
1843
1899
|
* @description Diz se a pule foi reservada ou não
|
|
1844
|
-
|
|
1900
|
+
*/
|
|
1845
1901
|
reservada: boolean;
|
|
1846
1902
|
/**
|
|
1847
1903
|
* @description Dias da semana escolhidos
|
|
1848
1904
|
*
|
|
1849
1905
|
* @example [0,1,2] -> domingo, segunda e terça
|
|
1850
|
-
|
|
1906
|
+
*/
|
|
1851
1907
|
dias_disponiveis: number[];
|
|
1852
1908
|
infoJogos: string[];
|
|
1853
1909
|
/**
|
|
@@ -2054,6 +2110,11 @@ type TypeBanca = TypeMetaData & {
|
|
|
2054
2110
|
* @example "Banca Sortudinho"
|
|
2055
2111
|
*/
|
|
2056
2112
|
nome: string;
|
|
2113
|
+
/**
|
|
2114
|
+
* @description ID da associação que a banca pertence
|
|
2115
|
+
* @example "associacao_123"
|
|
2116
|
+
*/
|
|
2117
|
+
associacaoId: string;
|
|
2057
2118
|
/**
|
|
2058
2119
|
* @description Código da banca, usado para identificação no sistema.
|
|
2059
2120
|
* @example "0143"
|
|
@@ -2701,6 +2762,16 @@ type TypePremiacaoAssociacao = TypeMetaData & {
|
|
|
2701
2762
|
* @example "centena"
|
|
2702
2763
|
*/
|
|
2703
2764
|
tipo_jogo: keyof typeof GAMES;
|
|
2765
|
+
/**
|
|
2766
|
+
* @description Informações da banca que ganhou o prêmio
|
|
2767
|
+
*/
|
|
2768
|
+
banca: {
|
|
2769
|
+
id: TypeBanca["id"];
|
|
2770
|
+
id_integer: TypeBanca["id_integer"];
|
|
2771
|
+
nome: TypeBanca["nome"];
|
|
2772
|
+
codigo_banca: TypeBanca["codigo_banca"];
|
|
2773
|
+
};
|
|
2774
|
+
associacaoId: string;
|
|
2704
2775
|
/**
|
|
2705
2776
|
* @description Total que o cambista recebe do prêmio
|
|
2706
2777
|
* @example 4000
|
|
@@ -2804,6 +2875,7 @@ declare const collections: {
|
|
|
2804
2875
|
readonly comissoes_descarga: (obj?: Partial<TypeComissaoDescarga>) => TypeComissaoDescarga;
|
|
2805
2876
|
readonly vendas_cambistas: (obj?: Partial<TypeVendaCambista>) => TypeVendaCambista;
|
|
2806
2877
|
readonly vendas_por_dias: (obj?: Partial<TypeVendasPorDia>) => TypeVendasPorDia;
|
|
2878
|
+
readonly associacoes: (obj?: Partial<TypeAssociacao>) => TypeAssociacao;
|
|
2807
2879
|
};
|
|
2808
2880
|
|
|
2809
2881
|
/**
|
|
@@ -2842,9 +2914,9 @@ declare const collectionsRetentionDays: Record<keyof typeof collections, number
|
|
|
2842
2914
|
* @example
|
|
2843
2915
|
* - Se o valor for true, a coleção precisa de isolamento por bancaId
|
|
2844
2916
|
* - Se o valor for false, a coleção não precisa de isolamento por bancaId
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2917
|
+
*
|
|
2918
|
+
* Todas as chaves devem corresponder exatamente às chaves do objeto 'collections'.
|
|
2919
|
+
*/
|
|
2848
2920
|
declare const collectionsWithIsolationByBancaId: Record<keyof typeof collections, boolean>;
|
|
2849
2921
|
|
|
2850
2922
|
type Firestore<T = any> = T;
|
|
@@ -3512,6 +3584,8 @@ declare const VendaCambistaModel: (obj?: Partial<TypeVendaCambista>) => TypeVend
|
|
|
3512
3584
|
|
|
3513
3585
|
declare const VendasPorDiaModel: (obj?: Partial<TypeVendasPorDia>) => TypeVendasPorDia;
|
|
3514
3586
|
|
|
3587
|
+
declare const AssociacaoModel: (obj?: Partial<TypeAssociacao>) => TypeAssociacao;
|
|
3588
|
+
|
|
3515
3589
|
declare const calculateAmount: (betValues: TypePrize[]) => number;
|
|
3516
3590
|
|
|
3517
3591
|
declare const calculateAmountGame: (games: TypeBet[]) => number;
|
|
@@ -4803,4 +4877,4 @@ declare const functionsCore: {
|
|
|
4803
4877
|
envio: typeof envio;
|
|
4804
4878
|
};
|
|
4805
4879
|
|
|
4806
|
-
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COLLECTIONS_NAMES, 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, ResultadoAssociacaoModel, 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 TypeResultadoAssociacao, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeResultadosAssociacao, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, type TypeVendaCambista, type TypeVendasCambistas, type TypeVendasPorDia, type TypeVendasPorDias, UserModel, VISUALIZACAO, ValueGameModel, VendaCambistaModel, VendasPorDiaModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, arrendondarCasasDecimais, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, collectionsRetentionDays, collectionsToAudit, collectionsWithIsolationByBancaId, 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 };
|
|
4880
|
+
export { AssociacaoModel, AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COLLECTIONS_NAMES, 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, ResultadoAssociacaoModel, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_GUIA, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAssociacao, 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 TypeResultadoAssociacao, type TypeResultadoDescargaComDiferenca, type TypeResultadoNumeroComDiferenca, type TypeResultados, type TypeResultadosAssociacao, type TypeRoute, type TypeRoutes, type TypeTotalGeral, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, type TypeVendaCambista, type TypeVendasCambistas, type TypeVendasPorDia, type TypeVendasPorDias, UserModel, VISUALIZACAO, ValueGameModel, VendaCambistaModel, VendasPorDiaModel, type WhereCondition, agruparEnvioPorExtracao, arredondarParaCima, arrendondarCasasDecimais, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, collectionsRetentionDays, collectionsToAudit, collectionsWithIsolationByBancaId, 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 };
|