@navservice/core 1.96.0 → 1.99.0

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.
@@ -1,5 +1,4 @@
1
1
  declare const _session_storage: {
2
- new (): {};
3
2
  adicionar_item_session_storage({ chave, novoItem }: {
4
3
  chave: string;
5
4
  novoItem: any;
@@ -10,5 +9,6 @@ declare const _session_storage: {
10
9
  }): void;
11
10
  get_item_session_storage(chave: string): any;
12
11
  remover_item_session_storage(chave: string): void;
12
+ get usuario_auth(): import("../types/_usuario").default.Auth;
13
13
  };
14
14
  export default _session_storage;
@@ -9,7 +9,6 @@ type RemoveArrayItems = {
9
9
  key?: string | "_id" | "id";
10
10
  };
11
11
  declare const _update_context: {
12
- new (): {};
13
12
  set_new_item_end: ({ oldArray, newItem, key }: ParamsPadrao) => any;
14
13
  update_array_itens: ({ oldArray, newItem, key }: ParamsPadrao) => any;
15
14
  remove_array_items: ({ oldArray, itemsToRemove, key }: RemoveArrayItems) => any[];
@@ -1,4 +1,3 @@
1
- import _form from "./_form";
2
1
  declare const utils: {
3
2
  api: {
4
3
  new (): {};
@@ -61,7 +60,6 @@ declare const utils: {
61
60
  };
62
61
  };
63
62
  data: {
64
- new (): {};
65
63
  YYYY_MM_DD_00_00_00(newData: string): string;
66
64
  DD_MM_YYYY_00_00_00(newData: string): string;
67
65
  DD_MM_YYYY_00_00(newData: string): string;
@@ -71,9 +69,17 @@ declare const utils: {
71
69
  DIFERENCA_DIAS(data: string): number;
72
70
  SET_SECONDS_TO_DD_MM_YYYY_HH_MM(timestamp: number | string): string;
73
71
  };
74
- form: typeof _form;
72
+ form: {
73
+ regex_cpf_cnpj(value: string): string;
74
+ formatar_cpf(value: string): string;
75
+ formatar_cnpj(value: string): string;
76
+ formatar_cep(value: string): string;
77
+ formatar_telefone_fixo(value: string): string;
78
+ formatar_celular(value: string): string;
79
+ formatar_nome(name: string): string;
80
+ formatar_reais_br(value: string): string;
81
+ };
75
82
  geral: {
76
- new (): {};
77
83
  slice_file_name(filename: string, maxLength?: number): string;
78
84
  extrair_id(array_enviado: Array<{
79
85
  _id?: string;
@@ -81,14 +87,12 @@ declare const utils: {
81
87
  gerar_id: (length?: number) => string;
82
88
  };
83
89
  local_storage: {
84
- new (): {};
85
90
  adicionar_item_local_storage(chave: string, novoItem: any): void;
86
91
  set_local_storage_sem_incremento(chave: string, novoItem: any): void;
87
92
  get_item_local_storage(chave: string): any;
88
93
  remover_item_local_storage(chave: string): void;
89
94
  };
90
95
  update_context: {
91
- new (): {};
92
96
  set_new_item_end: ({ oldArray, newItem, key }: {
93
97
  oldArray: any[];
94
98
  newItem: any;
@@ -110,7 +114,6 @@ declare const utils: {
110
114
  }): any[];
111
115
  };
112
116
  session_sorage: {
113
- new (): {};
114
117
  adicionar_item_session_storage({ chave, novoItem }: {
115
118
  chave: string;
116
119
  novoItem: any;
@@ -121,6 +124,7 @@ declare const utils: {
121
124
  }): void;
122
125
  get_item_session_storage(chave: string): any;
123
126
  remover_item_session_storage(chave: string): void;
127
+ get usuario_auth(): import("../types/_usuario").default.Auth;
124
128
  };
125
129
  sistema: {
126
130
  empresa: {
@@ -175,7 +179,6 @@ declare const utils: {
175
179
  use_dark_mode(): void;
176
180
  };
177
181
  environment: {
178
- new (): {};
179
182
  set(key: import("..").TypesCore.Geral.BaseUrl, props: string): void;
180
183
  get(key: import("..").TypesCore.Geral.BaseUrl): import("..").TypesCore.Geral.BaseUrl;
181
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navservice/core",
3
- "version": "1.96.0",
3
+ "version": "1.99.0",
4
4
  "description": "Service core de todos os micro serviços",
5
5
  "type": "module",
6
6
  "exports": {