appproject-framework 1.0.8 → 1.0.10
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/package.json
CHANGED
|
@@ -421,9 +421,12 @@ declare class UtilsGeralService {
|
|
|
421
421
|
converterHoraFromDB(data: string): string;
|
|
422
422
|
copy(origem: any, destino: any): void;
|
|
423
423
|
translateClassificacao(classificacao: string): "" | "Outras" | "Operacional" | "Fixa" | "Variável" | "Impostos" | "Conta Corrente" | "Transferências" | "Aplicação" | "Outros";
|
|
424
|
-
translateClassificacaoInverso(classificacao: string): "" | "
|
|
424
|
+
translateClassificacaoInverso(classificacao: string): "" | "S" | "O" | "F" | "V" | "I" | "C" | "T" | "A" | "U";
|
|
425
425
|
getImgComplemento(): string;
|
|
426
426
|
compareDatas(data: Date, comparaData?: Date): boolean;
|
|
427
|
+
extractErrorCode: (error: Response | any) => number;
|
|
428
|
+
extractError: (error: Response | any) => Promise<string>;
|
|
429
|
+
handleObservableError(error: Response | any): Promise<string>;
|
|
427
430
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsGeralService, never>;
|
|
428
431
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsGeralService>;
|
|
429
432
|
}
|
|
@@ -511,6 +514,14 @@ declare class DataService {
|
|
|
511
514
|
* @returns Ok, Objeto atualizado
|
|
512
515
|
*/
|
|
513
516
|
putRequest<T, U>(url: string, param: U): Observable<T>;
|
|
517
|
+
/**
|
|
518
|
+
* Fazer requisição do tipo PUT para salvar um registro alterado
|
|
519
|
+
* Foi criado T e U porque tem caso que o tipo da request é diferente do tipo da response
|
|
520
|
+
* @param url Url parcial para fazer a requisição
|
|
521
|
+
* @param param Objeto do tipo FormData
|
|
522
|
+
* @returns Ok, Objeto com id gerado
|
|
523
|
+
*/
|
|
524
|
+
putFormRequest<T>(url: string, param: FormData): Observable<T>;
|
|
514
525
|
/**
|
|
515
526
|
* Fazer requisição do tipo GET para retornar uma lista de objetos
|
|
516
527
|
* @param url url parcial para fazer a requisição
|