@cristian.aragao/milharis-core 1.30.42 → 1.30.44
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.cjs.js.map +1 -1
- package/dist/index.d.mts +125 -4
- package/dist/index.d.ts +125 -4
- 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
|
@@ -1100,6 +1100,54 @@ declare const PREMIOS: {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
1102
|
|
|
1103
|
+
declare const COMISSOES_PADRAO: {
|
|
1104
|
+
readonly milhar: {
|
|
1105
|
+
readonly id: "milhar";
|
|
1106
|
+
readonly label: "Milhar";
|
|
1107
|
+
readonly order: 1;
|
|
1108
|
+
};
|
|
1109
|
+
readonly centena: {
|
|
1110
|
+
readonly id: "centena";
|
|
1111
|
+
readonly label: "Centena";
|
|
1112
|
+
readonly order: 2;
|
|
1113
|
+
};
|
|
1114
|
+
readonly dezena: {
|
|
1115
|
+
readonly id: "dezena";
|
|
1116
|
+
readonly label: "Dezena";
|
|
1117
|
+
readonly order: 3;
|
|
1118
|
+
};
|
|
1119
|
+
readonly grupo: {
|
|
1120
|
+
readonly id: "grupo";
|
|
1121
|
+
readonly label: "Grupo";
|
|
1122
|
+
readonly order: 4;
|
|
1123
|
+
};
|
|
1124
|
+
readonly "terno.dezena": {
|
|
1125
|
+
readonly id: "terno.dezena";
|
|
1126
|
+
readonly label: "Terno de Dezena";
|
|
1127
|
+
readonly order: 5;
|
|
1128
|
+
};
|
|
1129
|
+
readonly "terno.grupo": {
|
|
1130
|
+
readonly id: "terno.grupo";
|
|
1131
|
+
readonly label: "Terno de Grupo";
|
|
1132
|
+
readonly order: 6;
|
|
1133
|
+
};
|
|
1134
|
+
readonly "duque.dezena": {
|
|
1135
|
+
readonly id: "duque.dezena";
|
|
1136
|
+
readonly label: "Duque de Dezena";
|
|
1137
|
+
readonly order: 7;
|
|
1138
|
+
};
|
|
1139
|
+
readonly "duque.grupo": {
|
|
1140
|
+
readonly id: "duque.grupo";
|
|
1141
|
+
readonly label: "Duque de Grupo";
|
|
1142
|
+
readonly order: 8;
|
|
1143
|
+
};
|
|
1144
|
+
readonly restante: {
|
|
1145
|
+
readonly id: "restante";
|
|
1146
|
+
readonly label: "Restante";
|
|
1147
|
+
readonly order: 9;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1103
1151
|
/**
|
|
1104
1152
|
* Tipo que representa um dispositivo no sistema
|
|
1105
1153
|
*/
|
|
@@ -1872,6 +1920,34 @@ type TypeBancas = {
|
|
|
1872
1920
|
[id: TypeBanca["id"]]: TypeBanca;
|
|
1873
1921
|
};
|
|
1874
1922
|
|
|
1923
|
+
type TypeComissaoDescarga = TypeMetaData & {
|
|
1924
|
+
/**
|
|
1925
|
+
* @description Id aleatório gerado para o documento
|
|
1926
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
1927
|
+
*/
|
|
1928
|
+
id: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* @description Id incremental por banca
|
|
1931
|
+
*
|
|
1932
|
+
* @example "1"
|
|
1933
|
+
* @example "2"
|
|
1934
|
+
*/
|
|
1935
|
+
id_integer: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* @description tipo do jogo (tem que ser único)
|
|
1938
|
+
* @example "milhar"
|
|
1939
|
+
* @example "centena"
|
|
1940
|
+
*/
|
|
1941
|
+
type_game: keyof typeof COMISSOES_PADRAO;
|
|
1942
|
+
/**
|
|
1943
|
+
* @description porcentagem de comissão
|
|
1944
|
+
*/
|
|
1945
|
+
porcentagem: number;
|
|
1946
|
+
};
|
|
1947
|
+
type TypeComissoesDescarga = {
|
|
1948
|
+
[id: string]: TypeComissaoDescarga;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1875
1951
|
type TypeLimitGame = TypeMetaData & {
|
|
1876
1952
|
/**
|
|
1877
1953
|
* @description Id aleatório gerado para o documento
|
|
@@ -1937,6 +2013,19 @@ type TypeEnvioDescarga = TypeMetaData & {
|
|
|
1937
2013
|
iniciadoEm: number;
|
|
1938
2014
|
/** Timestamp de conclusão (se houver) */
|
|
1939
2015
|
concluidoEm: number;
|
|
2016
|
+
/**
|
|
2017
|
+
* @description Total geral bruto de jogos por tipo de jogo
|
|
2018
|
+
*/
|
|
2019
|
+
totalGeralJogos: {
|
|
2020
|
+
[GAMES.milhar.id]: number;
|
|
2021
|
+
[GAMES.centena.id]: number;
|
|
2022
|
+
[GAMES.dezena.id]: number;
|
|
2023
|
+
[GAMES.grupo.id]: number;
|
|
2024
|
+
["terno.dezena"]: number;
|
|
2025
|
+
["terno.grupo"]: number;
|
|
2026
|
+
["duque.dezena"]: number;
|
|
2027
|
+
["duque.grupo"]: number;
|
|
2028
|
+
};
|
|
1940
2029
|
/**
|
|
1941
2030
|
* @description Informações do remetente, quem enviou a descarga
|
|
1942
2031
|
*/
|
|
@@ -1955,8 +2044,18 @@ type TypeEnvioDescarga = TypeMetaData & {
|
|
|
1955
2044
|
name: TypeUser["name"];
|
|
1956
2045
|
login: TypeUser["login"];
|
|
1957
2046
|
};
|
|
1958
|
-
|
|
1959
|
-
|
|
2047
|
+
/**
|
|
2048
|
+
* @description Valores dos jogos
|
|
2049
|
+
*/
|
|
2050
|
+
valoresJogos: Pick<TypeValueGame, "type_game" | "value">[];
|
|
2051
|
+
/**
|
|
2052
|
+
* @description Limites dos jogos
|
|
2053
|
+
*/
|
|
2054
|
+
limitesJogos: Pick<TypeLimitGame, "type_game" | "limit">[];
|
|
2055
|
+
/**
|
|
2056
|
+
* @description Comissões de descarga
|
|
2057
|
+
*/
|
|
2058
|
+
comissoesDescarga: Pick<TypeComissaoDescarga, "type_game" | "porcentagem">[];
|
|
1960
2059
|
/** Timestamp da última atualização */
|
|
1961
2060
|
atualizadoEm: number;
|
|
1962
2061
|
/** Timestamp da última atualização de progresso */
|
|
@@ -2431,6 +2530,7 @@ declare const collections: {
|
|
|
2431
2530
|
readonly bancas: (obj?: Partial<TypeBanca>) => TypeBanca;
|
|
2432
2531
|
readonly auditLogs: (obj?: Partial<TypeAuditLog>) => TypeAuditLog;
|
|
2433
2532
|
readonly dispositivos: (obj?: Partial<TypeDevice>) => TypeDevice;
|
|
2533
|
+
readonly comissoes_descarga: (obj?: Partial<TypeComissaoDescarga>) => TypeComissaoDescarga;
|
|
2434
2534
|
};
|
|
2435
2535
|
|
|
2436
2536
|
type Firestore<T = any> = T;
|
|
@@ -3607,7 +3707,27 @@ declare const getPropsEnvioIdOldDescarga: (descarga: Partial<TypeDescarga>) => {
|
|
|
3607
3707
|
*/
|
|
3608
3708
|
declare const getDescargaIdPeloEnvio: (numero: TypeNumero, envioId: string) => string;
|
|
3609
3709
|
|
|
3710
|
+
type TypeTotalGeral = {
|
|
3711
|
+
jogos: Record<string, {
|
|
3712
|
+
totalEnviado: number;
|
|
3713
|
+
ordem: number;
|
|
3714
|
+
tipo: keyof typeof COMISSOES_PADRAO;
|
|
3715
|
+
label: string;
|
|
3716
|
+
}>;
|
|
3717
|
+
totalBruto: number;
|
|
3718
|
+
totalLiquido: number;
|
|
3719
|
+
totalComissao: number;
|
|
3720
|
+
};
|
|
3721
|
+
/**
|
|
3722
|
+
* @description Calcula o total geral de uma descarga
|
|
3723
|
+
* @param totalBrutoJogos - Total bruto dos jogos
|
|
3724
|
+
* @param comissoes - Comissões das bancas
|
|
3725
|
+
* @returns Total geral da descarga
|
|
3726
|
+
*/
|
|
3727
|
+
declare const getTotalGeralDescarga: (totalBrutoJogos: TypeEnvioDescarga["totalGeralJogos"], comissoes: TypeComissoesDescarga) => TypeTotalGeral;
|
|
3728
|
+
|
|
3610
3729
|
type descarga_ResultadoDescargaComDiferenca = ResultadoDescargaComDiferenca;
|
|
3730
|
+
type descarga_TypeTotalGeral = TypeTotalGeral;
|
|
3611
3731
|
declare const descarga_generateDescarga: typeof generateDescarga;
|
|
3612
3732
|
declare const descarga_generateDescargas: typeof generateDescargas;
|
|
3613
3733
|
declare const descarga_getDescargaIdPeloEnvio: typeof getDescargaIdPeloEnvio;
|
|
@@ -3616,9 +3736,10 @@ declare const descarga_getDescargasAcimaDoLimite: typeof getDescargasAcimaDoLimi
|
|
|
3616
3736
|
declare const descarga_getPropsEnvioId: typeof getPropsEnvioId;
|
|
3617
3737
|
declare const descarga_getPropsEnvioIdOldDescarga: typeof getPropsEnvioIdOldDescarga;
|
|
3618
3738
|
declare const descarga_getPropsVPDescarga: typeof getPropsVPDescarga;
|
|
3739
|
+
declare const descarga_getTotalGeralDescarga: typeof getTotalGeralDescarga;
|
|
3619
3740
|
declare const descarga_sortDescargas: typeof sortDescargas;
|
|
3620
3741
|
declare namespace descarga {
|
|
3621
|
-
export { type descarga_ResultadoDescargaComDiferenca as ResultadoDescargaComDiferenca, descarga_generateDescarga as generateDescarga, descarga_generateDescargas as generateDescargas, descarga_getDescargaIdPeloEnvio as getDescargaIdPeloEnvio, descarga_getDescargaIdPeloNumero as getDescargaIdPeloNumero, descarga_getDescargasAcimaDoLimite as getDescargasAcimaDoLimite, descarga_getPropsEnvioId as getPropsEnvioId, descarga_getPropsEnvioIdOldDescarga as getPropsEnvioIdOldDescarga, descarga_getPropsVPDescarga as getPropsVPDescarga, descarga_sortDescargas as sortDescargas };
|
|
3742
|
+
export { type descarga_ResultadoDescargaComDiferenca as ResultadoDescargaComDiferenca, type descarga_TypeTotalGeral as TypeTotalGeral, descarga_generateDescarga as generateDescarga, descarga_generateDescargas as generateDescargas, descarga_getDescargaIdPeloEnvio as getDescargaIdPeloEnvio, descarga_getDescargaIdPeloNumero as getDescargaIdPeloNumero, descarga_getDescargasAcimaDoLimite as getDescargasAcimaDoLimite, descarga_getPropsEnvioId as getPropsEnvioId, descarga_getPropsEnvioIdOldDescarga as getPropsEnvioIdOldDescarga, descarga_getPropsVPDescarga as getPropsVPDescarga, descarga_getTotalGeralDescarga as getTotalGeralDescarga, descarga_sortDescargas as sortDescargas };
|
|
3622
3743
|
}
|
|
3623
3744
|
|
|
3624
3745
|
/**
|
|
@@ -3879,4 +4000,4 @@ declare const functionsCore: {
|
|
|
3879
4000
|
utils: typeof utils;
|
|
3880
4001
|
};
|
|
3881
4002
|
|
|
3882
|
-
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, type CacheConfig, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeResultado, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
|
|
4003
|
+
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeResultado, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
|
package/dist/index.d.ts
CHANGED
|
@@ -1100,6 +1100,54 @@ declare const PREMIOS: {
|
|
|
1100
1100
|
};
|
|
1101
1101
|
};
|
|
1102
1102
|
|
|
1103
|
+
declare const COMISSOES_PADRAO: {
|
|
1104
|
+
readonly milhar: {
|
|
1105
|
+
readonly id: "milhar";
|
|
1106
|
+
readonly label: "Milhar";
|
|
1107
|
+
readonly order: 1;
|
|
1108
|
+
};
|
|
1109
|
+
readonly centena: {
|
|
1110
|
+
readonly id: "centena";
|
|
1111
|
+
readonly label: "Centena";
|
|
1112
|
+
readonly order: 2;
|
|
1113
|
+
};
|
|
1114
|
+
readonly dezena: {
|
|
1115
|
+
readonly id: "dezena";
|
|
1116
|
+
readonly label: "Dezena";
|
|
1117
|
+
readonly order: 3;
|
|
1118
|
+
};
|
|
1119
|
+
readonly grupo: {
|
|
1120
|
+
readonly id: "grupo";
|
|
1121
|
+
readonly label: "Grupo";
|
|
1122
|
+
readonly order: 4;
|
|
1123
|
+
};
|
|
1124
|
+
readonly "terno.dezena": {
|
|
1125
|
+
readonly id: "terno.dezena";
|
|
1126
|
+
readonly label: "Terno de Dezena";
|
|
1127
|
+
readonly order: 5;
|
|
1128
|
+
};
|
|
1129
|
+
readonly "terno.grupo": {
|
|
1130
|
+
readonly id: "terno.grupo";
|
|
1131
|
+
readonly label: "Terno de Grupo";
|
|
1132
|
+
readonly order: 6;
|
|
1133
|
+
};
|
|
1134
|
+
readonly "duque.dezena": {
|
|
1135
|
+
readonly id: "duque.dezena";
|
|
1136
|
+
readonly label: "Duque de Dezena";
|
|
1137
|
+
readonly order: 7;
|
|
1138
|
+
};
|
|
1139
|
+
readonly "duque.grupo": {
|
|
1140
|
+
readonly id: "duque.grupo";
|
|
1141
|
+
readonly label: "Duque de Grupo";
|
|
1142
|
+
readonly order: 8;
|
|
1143
|
+
};
|
|
1144
|
+
readonly restante: {
|
|
1145
|
+
readonly id: "restante";
|
|
1146
|
+
readonly label: "Restante";
|
|
1147
|
+
readonly order: 9;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1150
|
+
|
|
1103
1151
|
/**
|
|
1104
1152
|
* Tipo que representa um dispositivo no sistema
|
|
1105
1153
|
*/
|
|
@@ -1872,6 +1920,34 @@ type TypeBancas = {
|
|
|
1872
1920
|
[id: TypeBanca["id"]]: TypeBanca;
|
|
1873
1921
|
};
|
|
1874
1922
|
|
|
1923
|
+
type TypeComissaoDescarga = TypeMetaData & {
|
|
1924
|
+
/**
|
|
1925
|
+
* @description Id aleatório gerado para o documento
|
|
1926
|
+
* @example "62e77f29-ba2b-a6a0-af4b-cfd1aab7d546"
|
|
1927
|
+
*/
|
|
1928
|
+
id: string;
|
|
1929
|
+
/**
|
|
1930
|
+
* @description Id incremental por banca
|
|
1931
|
+
*
|
|
1932
|
+
* @example "1"
|
|
1933
|
+
* @example "2"
|
|
1934
|
+
*/
|
|
1935
|
+
id_integer: string;
|
|
1936
|
+
/**
|
|
1937
|
+
* @description tipo do jogo (tem que ser único)
|
|
1938
|
+
* @example "milhar"
|
|
1939
|
+
* @example "centena"
|
|
1940
|
+
*/
|
|
1941
|
+
type_game: keyof typeof COMISSOES_PADRAO;
|
|
1942
|
+
/**
|
|
1943
|
+
* @description porcentagem de comissão
|
|
1944
|
+
*/
|
|
1945
|
+
porcentagem: number;
|
|
1946
|
+
};
|
|
1947
|
+
type TypeComissoesDescarga = {
|
|
1948
|
+
[id: string]: TypeComissaoDescarga;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1875
1951
|
type TypeLimitGame = TypeMetaData & {
|
|
1876
1952
|
/**
|
|
1877
1953
|
* @description Id aleatório gerado para o documento
|
|
@@ -1937,6 +2013,19 @@ type TypeEnvioDescarga = TypeMetaData & {
|
|
|
1937
2013
|
iniciadoEm: number;
|
|
1938
2014
|
/** Timestamp de conclusão (se houver) */
|
|
1939
2015
|
concluidoEm: number;
|
|
2016
|
+
/**
|
|
2017
|
+
* @description Total geral bruto de jogos por tipo de jogo
|
|
2018
|
+
*/
|
|
2019
|
+
totalGeralJogos: {
|
|
2020
|
+
[GAMES.milhar.id]: number;
|
|
2021
|
+
[GAMES.centena.id]: number;
|
|
2022
|
+
[GAMES.dezena.id]: number;
|
|
2023
|
+
[GAMES.grupo.id]: number;
|
|
2024
|
+
["terno.dezena"]: number;
|
|
2025
|
+
["terno.grupo"]: number;
|
|
2026
|
+
["duque.dezena"]: number;
|
|
2027
|
+
["duque.grupo"]: number;
|
|
2028
|
+
};
|
|
1940
2029
|
/**
|
|
1941
2030
|
* @description Informações do remetente, quem enviou a descarga
|
|
1942
2031
|
*/
|
|
@@ -1955,8 +2044,18 @@ type TypeEnvioDescarga = TypeMetaData & {
|
|
|
1955
2044
|
name: TypeUser["name"];
|
|
1956
2045
|
login: TypeUser["login"];
|
|
1957
2046
|
};
|
|
1958
|
-
|
|
1959
|
-
|
|
2047
|
+
/**
|
|
2048
|
+
* @description Valores dos jogos
|
|
2049
|
+
*/
|
|
2050
|
+
valoresJogos: Pick<TypeValueGame, "type_game" | "value">[];
|
|
2051
|
+
/**
|
|
2052
|
+
* @description Limites dos jogos
|
|
2053
|
+
*/
|
|
2054
|
+
limitesJogos: Pick<TypeLimitGame, "type_game" | "limit">[];
|
|
2055
|
+
/**
|
|
2056
|
+
* @description Comissões de descarga
|
|
2057
|
+
*/
|
|
2058
|
+
comissoesDescarga: Pick<TypeComissaoDescarga, "type_game" | "porcentagem">[];
|
|
1960
2059
|
/** Timestamp da última atualização */
|
|
1961
2060
|
atualizadoEm: number;
|
|
1962
2061
|
/** Timestamp da última atualização de progresso */
|
|
@@ -2431,6 +2530,7 @@ declare const collections: {
|
|
|
2431
2530
|
readonly bancas: (obj?: Partial<TypeBanca>) => TypeBanca;
|
|
2432
2531
|
readonly auditLogs: (obj?: Partial<TypeAuditLog>) => TypeAuditLog;
|
|
2433
2532
|
readonly dispositivos: (obj?: Partial<TypeDevice>) => TypeDevice;
|
|
2533
|
+
readonly comissoes_descarga: (obj?: Partial<TypeComissaoDescarga>) => TypeComissaoDescarga;
|
|
2434
2534
|
};
|
|
2435
2535
|
|
|
2436
2536
|
type Firestore<T = any> = T;
|
|
@@ -3607,7 +3707,27 @@ declare const getPropsEnvioIdOldDescarga: (descarga: Partial<TypeDescarga>) => {
|
|
|
3607
3707
|
*/
|
|
3608
3708
|
declare const getDescargaIdPeloEnvio: (numero: TypeNumero, envioId: string) => string;
|
|
3609
3709
|
|
|
3710
|
+
type TypeTotalGeral = {
|
|
3711
|
+
jogos: Record<string, {
|
|
3712
|
+
totalEnviado: number;
|
|
3713
|
+
ordem: number;
|
|
3714
|
+
tipo: keyof typeof COMISSOES_PADRAO;
|
|
3715
|
+
label: string;
|
|
3716
|
+
}>;
|
|
3717
|
+
totalBruto: number;
|
|
3718
|
+
totalLiquido: number;
|
|
3719
|
+
totalComissao: number;
|
|
3720
|
+
};
|
|
3721
|
+
/**
|
|
3722
|
+
* @description Calcula o total geral de uma descarga
|
|
3723
|
+
* @param totalBrutoJogos - Total bruto dos jogos
|
|
3724
|
+
* @param comissoes - Comissões das bancas
|
|
3725
|
+
* @returns Total geral da descarga
|
|
3726
|
+
*/
|
|
3727
|
+
declare const getTotalGeralDescarga: (totalBrutoJogos: TypeEnvioDescarga["totalGeralJogos"], comissoes: TypeComissoesDescarga) => TypeTotalGeral;
|
|
3728
|
+
|
|
3610
3729
|
type descarga_ResultadoDescargaComDiferenca = ResultadoDescargaComDiferenca;
|
|
3730
|
+
type descarga_TypeTotalGeral = TypeTotalGeral;
|
|
3611
3731
|
declare const descarga_generateDescarga: typeof generateDescarga;
|
|
3612
3732
|
declare const descarga_generateDescargas: typeof generateDescargas;
|
|
3613
3733
|
declare const descarga_getDescargaIdPeloEnvio: typeof getDescargaIdPeloEnvio;
|
|
@@ -3616,9 +3736,10 @@ declare const descarga_getDescargasAcimaDoLimite: typeof getDescargasAcimaDoLimi
|
|
|
3616
3736
|
declare const descarga_getPropsEnvioId: typeof getPropsEnvioId;
|
|
3617
3737
|
declare const descarga_getPropsEnvioIdOldDescarga: typeof getPropsEnvioIdOldDescarga;
|
|
3618
3738
|
declare const descarga_getPropsVPDescarga: typeof getPropsVPDescarga;
|
|
3739
|
+
declare const descarga_getTotalGeralDescarga: typeof getTotalGeralDescarga;
|
|
3619
3740
|
declare const descarga_sortDescargas: typeof sortDescargas;
|
|
3620
3741
|
declare namespace descarga {
|
|
3621
|
-
export { type descarga_ResultadoDescargaComDiferenca as ResultadoDescargaComDiferenca, descarga_generateDescarga as generateDescarga, descarga_generateDescargas as generateDescargas, descarga_getDescargaIdPeloEnvio as getDescargaIdPeloEnvio, descarga_getDescargaIdPeloNumero as getDescargaIdPeloNumero, descarga_getDescargasAcimaDoLimite as getDescargasAcimaDoLimite, descarga_getPropsEnvioId as getPropsEnvioId, descarga_getPropsEnvioIdOldDescarga as getPropsEnvioIdOldDescarga, descarga_getPropsVPDescarga as getPropsVPDescarga, descarga_sortDescargas as sortDescargas };
|
|
3742
|
+
export { type descarga_ResultadoDescargaComDiferenca as ResultadoDescargaComDiferenca, type descarga_TypeTotalGeral as TypeTotalGeral, descarga_generateDescarga as generateDescarga, descarga_generateDescargas as generateDescargas, descarga_getDescargaIdPeloEnvio as getDescargaIdPeloEnvio, descarga_getDescargaIdPeloNumero as getDescargaIdPeloNumero, descarga_getDescargasAcimaDoLimite as getDescargasAcimaDoLimite, descarga_getPropsEnvioId as getPropsEnvioId, descarga_getPropsEnvioIdOldDescarga as getPropsEnvioIdOldDescarga, descarga_getPropsVPDescarga as getPropsVPDescarga, descarga_getTotalGeralDescarga as getTotalGeralDescarga, descarga_sortDescargas as sortDescargas };
|
|
3622
3743
|
}
|
|
3623
3744
|
|
|
3624
3745
|
/**
|
|
@@ -3879,4 +4000,4 @@ declare const functionsCore: {
|
|
|
3879
4000
|
utils: typeof utils;
|
|
3880
4001
|
};
|
|
3881
4002
|
|
|
3882
|
-
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, type CacheConfig, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeResultado, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
|
|
4003
|
+
export { AuditLogModel, type AuthorizationConfig, BancaModel, BetModel, COMISSOES_PADRAO, type CacheConfig, DescargaModel, DeviceModel, EXTRACAO, type EnvioAssociacaoFilters, type EnvioAssociacaoParams, type EnvioAssociacaoResponse, EnvioDescargaModel, ExtracaoModel, type FirebaseAdapter, type FirebaseVersion, GAMES, GRUPOS_BICHOS, GameModel, type GenericRepo, type IdSearchStrategy, type IsolationConfig, KEYBOARD, LimitGameModel, MESSAGES, MessageModel, NumberModel, type OperationType, type OrderByCondition, PDFModel, PREFIX_ENVIO, PREFIX_ENVIO_OLD, PREFIX_NUMBER, PREMIOS, PremiacaoAssociacaoModel, PremiacaoModel, ROLES, type RepoCollections, type RepoConfig, type RepoFactoryConfig, type RepoQueryOptions, ResultadoModel, RouteModel, STATUS_DESCARGA, STATUS_DEVICE, STATUS_PULE, TIPO_VISUALIZACAO, type TypeAuditLog, type TypeAuditLogs, type TypeBanca, type TypeBancas, type TypeBet, type TypeCartDescargas, type TypeCartDescargasProps, type TypeCartList, type TypeCartListProps, type TypeComissaoDescarga, type TypeComissoesDescarga, type TypeDescarga, type TypeDescargas, type TypeDevice, type TypeDevices, type TypeEnvioDescarga, type TypeEnvioDescargas, type TypeExtracao, type TypeExtracoes, type TypeGame, type TypeGames, type TypeLimitGame, type TypeLimitGames, type TypeMessage, type TypeMessages, type TypeMetaData, type TypeNumero, type TypeNumeros, type TypePDFDescargas, type TypePDFsDescargas, type TypePremiacao, type TypePremiacaoAssociacao, type TypePremiacaoItem, type TypePremiacoes, type TypePremiacoesAssociacao, type TypePrize, type TypeResultado, type TypeResultados, type TypeRoute, type TypeRoutes, type TypeUser, type TypeUsers, type TypeValueGame, type TypeValueGames, UserModel, VISUALIZACAO, ValueGameModel, type WhereCondition, arredondarParaCima, calculaValoresDosNumeros, calcularValorDeNumero, calcularValorJogoPeloLimite, calculateAmount, calculateAmountGame, clone, collections, combineDateTime, createAutoRepo, createGenericRepo, createReactNativeAdapter, createReactNativeRepoFactory, createRepoFactory, createV8Adapter, createV9ModularAdapter, createWebAdapter, createWebRepoFactory, dateToNumber, delay, detectFirebaseVersion, dividirArray, extracaoEstaAtivaBoolean, extracaoEstaAtivaTryCatch, fazerJogo, formatPuleId, formatarNumero, formatterBRL, formatterPercentage, formatterPercentageDecimal, functionsCore, generateDescargas, generateId, gerarDezenas, getAllCombinations, getAvailableTimes, getBetDateToNumber, getCodigoAuth, getCreatedBySystem, getDataInicioFim, getFormattedPuleId, getGamesUnicosList, getGamesUnicosObjeto, getInitials, getLimiteJogoPeloTipoJogo, getLimiteSimulado, getLimitsRest, getNumeroId, getNumerosAcimaDoLimite, getPermission, getPremioFormato, getPropsEnvioId$1 as getPropsEnvioId, getPropsEnvioIdOld, getPropsPrefix, getPropsVP, getSomaEnvio, getSomaProps, getSomaVP, getTiposJogos, getValorJogoPeloTipoJogo, invertGame, isAdm, isAdmOrSubAdm, isAssociacao, isCambista, isCambistaTalao, isDigitador, isDigitadorAdm, isDigitadorOrDigitadorAdm, isSuperAdm, matchNormalized, normalize, numberToDate, numbersSelectedFormated, parserBRL, parserPercentage, parserPercentageDecimal, pegarExtracoes, pegarHorarioSaoPaulo, removerLetters, showFormatDate, sortNumeros };
|