types-nora-api 0.0.280 → 0.0.282

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/classes.d.ts CHANGED
@@ -779,7 +779,7 @@ interface IPersonagem {
779
779
  informacao: InformacaoPersonagemDto;
780
780
  gruposAventuraPersonagem: GrupoAventuraPersonagemDto[] | null;
781
781
  resumosPersonagemAventura: ResumoPersonagemAventuraDto[] | null;
782
- fichas: FichaPersonagemDto[] | null;
782
+ fichasPersonagem: FichaPersonagemDto[];
783
783
  caminhoAvatar: string;
784
784
  fichaVigente: FichaPersonagemDto | null;
785
785
  temCriacaoPendente: boolean;
@@ -1127,7 +1127,7 @@ type ParamsProps<P extends {
1127
1127
  } : {
1128
1128
  params: PaginaParams<P>;
1129
1129
  };
1130
- type FormatoUploadArquivo = 'webp' | 'svg';
1130
+ type FormatoUploadArquivo = 'png' | 'webp' | 'svg';
1131
1131
  type DimensoesImagem = {
1132
1132
  largura: number;
1133
1133
  altura: number;
package/dist/classes.js CHANGED
@@ -727,7 +727,7 @@ function validarFormatos(formatos, erros) {
727
727
  }
728
728
  const set = new Set();
729
729
  for (const f of formatos) {
730
- if (f !== 'webp' && f !== 'svg')
730
+ if (f !== 'png' && f !== 'webp' && f !== 'svg')
731
731
  pushErro(erros, `Formato inválido em formatosPermitidos: ${String(f)}`);
732
732
  if (set.has(f))
733
733
  pushErro(erros, `Formato duplicado em formatosPermitidos: ${f}`);
@@ -820,6 +820,8 @@ function mimeFromFormato(formato) {
820
820
  return 'image/webp';
821
821
  if (formato === 'svg')
822
822
  return 'image/svg+xml';
823
+ if (formato === 'png')
824
+ return 'image/png';
823
825
  return null;
824
826
  }
825
827
  function acceptFromFormatos(formatos) { return Array.from(new Set(formatos.map(mimeFromFormato).filter((v) => v !== null))).join(','); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "types-nora-api",
3
- "version": "0.0.280",
3
+ "version": "0.0.282",
4
4
  "description": "Tipagem da Nora-Api compartilhada com o universodomedo.com",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",