@navservice/core 1.39.0 → 1.42.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.
- package/build/es/helpers/_data.d.ts +5 -0
- package/build/es/helpers/index.d.ts +9 -5
- package/build/es/helpers.js +21 -10
- package/build/es/index.browser.js +58 -8
- package/build/es/index.node.js +15 -5
- package/build/es/utils/_sistema.d.ts +49 -0
- package/build/es/utils/index.d.ts +48 -1
- package/build/es/utils.js +67 -16
- package/build/lib/helpers/_data.d.ts +5 -0
- package/build/lib/helpers/index.d.ts +9 -5
- package/build/lib/helpers.cjs +20 -5
- package/build/lib/index.browser.cjs +62 -9
- package/build/lib/index.node.cjs +20 -5
- package/build/lib/utils/_sistema.d.ts +49 -0
- package/build/lib/utils/index.d.ts +48 -1
- package/build/lib/utils.cjs +61 -8
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _secret from "./_secret";
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare const helpers: {
|
|
3
|
+
set_response: {
|
|
4
4
|
new (): {};
|
|
5
5
|
c: {
|
|
6
6
|
new (): {};
|
|
@@ -130,7 +130,7 @@ declare class helpers {
|
|
|
130
130
|
}): void;
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
token: {
|
|
134
134
|
new (): {};
|
|
135
135
|
verificar_token(c: import("../types").default.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
|
|
136
136
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
@@ -143,6 +143,10 @@ declare class helpers {
|
|
|
143
143
|
c: import("../types").default.Context;
|
|
144
144
|
}): Promise<string>;
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
secret: typeof _secret;
|
|
147
|
+
data: {
|
|
148
|
+
get_now_format_number: number;
|
|
149
|
+
verificar_data: (value: number) => number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
148
152
|
export default helpers;
|
package/build/es/helpers.js
CHANGED
|
@@ -291,11 +291,21 @@ class _secret {
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
const helpers_secret = _secret;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
294
|
+
const _data = {
|
|
295
|
+
get_now_format_number: Math.floor(Date.now() / 1000),
|
|
296
|
+
verificar_data: (value)=>{
|
|
297
|
+
const data = new Date(1000 * value);
|
|
298
|
+
if (isNaN(data.getTime())) throw new Error("Timestamp está inválido.");
|
|
299
|
+
return value;
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
const helpers_data = _data;
|
|
303
|
+
const helpers = {
|
|
304
|
+
set_response: _set_response,
|
|
305
|
+
token: helpers_token,
|
|
306
|
+
secret: helpers_secret,
|
|
307
|
+
data: helpers_data
|
|
308
|
+
};
|
|
299
309
|
const src_helpers = helpers;
|
|
300
310
|
const _token = class {
|
|
301
311
|
static async verificar_token(c, next) {
|
|
@@ -361,10 +371,11 @@ const _token = class {
|
|
|
361
371
|
}
|
|
362
372
|
};
|
|
363
373
|
const helpers_token = _token;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
374
|
+
const helpers_helpers = {
|
|
375
|
+
set_response: _set_response,
|
|
376
|
+
token: helpers_token,
|
|
377
|
+
secret: helpers_secret,
|
|
378
|
+
data: helpers_data
|
|
379
|
+
};
|
|
369
380
|
const src_helpers_0 = helpers_helpers;
|
|
370
381
|
export { src_helpers_0 as default };
|
|
@@ -557,14 +557,64 @@ const _session_storage = class {
|
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
const utils_session_storage = _session_storage;
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
560
|
+
const _sistema = {
|
|
561
|
+
empresa: {
|
|
562
|
+
nome: "Nav Software",
|
|
563
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
564
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
565
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
566
|
+
cnpj: "00.000.000/0001-00",
|
|
567
|
+
inscricaoEstadual: "000.000.000.000",
|
|
568
|
+
inscricaoMunicipal: "000000",
|
|
569
|
+
endereco: {
|
|
570
|
+
logradouro: "Rua Exemplo",
|
|
571
|
+
numero: "000",
|
|
572
|
+
complemento: "Sala 00",
|
|
573
|
+
bairro: "Centro",
|
|
574
|
+
cidade: "Navegantes",
|
|
575
|
+
estado: "SC",
|
|
576
|
+
cep: "88370-000",
|
|
577
|
+
pais: "Brasil"
|
|
578
|
+
},
|
|
579
|
+
contato: {
|
|
580
|
+
telefone: "(47) 0000-0000",
|
|
581
|
+
celular: "(47) 90000-0000",
|
|
582
|
+
email: "contato@navsoftware.com.br",
|
|
583
|
+
site: "https://www.navsoftware.com.br"
|
|
584
|
+
},
|
|
585
|
+
dadosBancarios: {
|
|
586
|
+
banco: "000 - Banco Exemplo",
|
|
587
|
+
agencia: "0000",
|
|
588
|
+
conta: "00000-0",
|
|
589
|
+
tipoConta: "Conta Corrente",
|
|
590
|
+
pix: "contato@navsoftware.com.br"
|
|
591
|
+
},
|
|
592
|
+
responsavel: {
|
|
593
|
+
nome: "Nome do Responsável",
|
|
594
|
+
cpf: "000.000.000-00",
|
|
595
|
+
cargo: "Diretor",
|
|
596
|
+
email: "responsavel@navsoftware.com.br"
|
|
597
|
+
},
|
|
598
|
+
configuracoes: {
|
|
599
|
+
ativo: true,
|
|
600
|
+
dataFundacao: "2020-01-01",
|
|
601
|
+
regimeTributario: "Simples Nacional",
|
|
602
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
603
|
+
cnae: "62.01-5-00",
|
|
604
|
+
porteEmpresa: "ME"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
const utils_sistema = _sistema;
|
|
609
|
+
const utils = {
|
|
610
|
+
api: utils_api,
|
|
611
|
+
data: utils_data,
|
|
612
|
+
form: utils_form,
|
|
613
|
+
geral: _geral,
|
|
614
|
+
local_storage: utils_local_storage,
|
|
615
|
+
update_context: utils_update_context,
|
|
616
|
+
session_sorage: utils_session_storage,
|
|
617
|
+
sistema: utils_sistema
|
|
568
618
|
};
|
|
569
619
|
const src_utils = utils;
|
|
570
620
|
export { types as TypesCore, src_config_env as config_env_core, src_utils as utils };
|
package/build/es/index.node.js
CHANGED
|
@@ -355,10 +355,20 @@ class _secret {
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
const helpers_secret = _secret;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
358
|
+
const _data = {
|
|
359
|
+
get_now_format_number: Math.floor(Date.now() / 1000),
|
|
360
|
+
verificar_data: (value)=>{
|
|
361
|
+
const data = new Date(1000 * value);
|
|
362
|
+
if (isNaN(data.getTime())) throw new Error("Timestamp está inválido.");
|
|
363
|
+
return value;
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
const helpers_data = _data;
|
|
367
|
+
const helpers = {
|
|
368
|
+
set_response: _set_response,
|
|
369
|
+
token: helpers_token,
|
|
370
|
+
secret: helpers_secret,
|
|
371
|
+
data: helpers_data
|
|
372
|
+
};
|
|
363
373
|
const src_helpers = helpers;
|
|
364
374
|
export { src_helpers as helpers };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _form from "./_form";
|
|
2
2
|
declare const utils: {
|
|
3
|
-
new (): {};
|
|
4
3
|
api: {
|
|
5
4
|
new (): {};
|
|
6
5
|
servidor_service_usuario: {
|
|
@@ -101,5 +100,53 @@ declare const utils: {
|
|
|
101
100
|
get_item_session_storage(chave: string): any;
|
|
102
101
|
remover_item_session_storage(chave: string): void;
|
|
103
102
|
};
|
|
103
|
+
sistema: {
|
|
104
|
+
empresa: {
|
|
105
|
+
nome: string;
|
|
106
|
+
email_suporte: string;
|
|
107
|
+
email_no_replay: string;
|
|
108
|
+
razaoSocial: string;
|
|
109
|
+
cnpj: string;
|
|
110
|
+
inscricaoEstadual: string;
|
|
111
|
+
inscricaoMunicipal: string;
|
|
112
|
+
endereco: {
|
|
113
|
+
logradouro: string;
|
|
114
|
+
numero: string;
|
|
115
|
+
complemento: string;
|
|
116
|
+
bairro: string;
|
|
117
|
+
cidade: string;
|
|
118
|
+
estado: string;
|
|
119
|
+
cep: string;
|
|
120
|
+
pais: string;
|
|
121
|
+
};
|
|
122
|
+
contato: {
|
|
123
|
+
telefone: string;
|
|
124
|
+
celular: string;
|
|
125
|
+
email: string;
|
|
126
|
+
site: string;
|
|
127
|
+
};
|
|
128
|
+
dadosBancarios: {
|
|
129
|
+
banco: string;
|
|
130
|
+
agencia: string;
|
|
131
|
+
conta: string;
|
|
132
|
+
tipoConta: string;
|
|
133
|
+
pix: string;
|
|
134
|
+
};
|
|
135
|
+
responsavel: {
|
|
136
|
+
nome: string;
|
|
137
|
+
cpf: string;
|
|
138
|
+
cargo: string;
|
|
139
|
+
email: string;
|
|
140
|
+
};
|
|
141
|
+
configuracoes: {
|
|
142
|
+
ativo: boolean;
|
|
143
|
+
dataFundacao: string;
|
|
144
|
+
regimeTributario: string;
|
|
145
|
+
ramoAtividade: string;
|
|
146
|
+
cnae: string;
|
|
147
|
+
porteEmpresa: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
104
151
|
};
|
|
105
152
|
export default utils;
|
package/build/es/utils.js
CHANGED
|
@@ -395,14 +395,64 @@ const _session_storage = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
const utils_session_storage = _session_storage;
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
398
|
+
const _sistema = {
|
|
399
|
+
empresa: {
|
|
400
|
+
nome: "Nav Software",
|
|
401
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
402
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
403
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
404
|
+
cnpj: "00.000.000/0001-00",
|
|
405
|
+
inscricaoEstadual: "000.000.000.000",
|
|
406
|
+
inscricaoMunicipal: "000000",
|
|
407
|
+
endereco: {
|
|
408
|
+
logradouro: "Rua Exemplo",
|
|
409
|
+
numero: "000",
|
|
410
|
+
complemento: "Sala 00",
|
|
411
|
+
bairro: "Centro",
|
|
412
|
+
cidade: "Navegantes",
|
|
413
|
+
estado: "SC",
|
|
414
|
+
cep: "88370-000",
|
|
415
|
+
pais: "Brasil"
|
|
416
|
+
},
|
|
417
|
+
contato: {
|
|
418
|
+
telefone: "(47) 0000-0000",
|
|
419
|
+
celular: "(47) 90000-0000",
|
|
420
|
+
email: "contato@navsoftware.com.br",
|
|
421
|
+
site: "https://www.navsoftware.com.br"
|
|
422
|
+
},
|
|
423
|
+
dadosBancarios: {
|
|
424
|
+
banco: "000 - Banco Exemplo",
|
|
425
|
+
agencia: "0000",
|
|
426
|
+
conta: "00000-0",
|
|
427
|
+
tipoConta: "Conta Corrente",
|
|
428
|
+
pix: "contato@navsoftware.com.br"
|
|
429
|
+
},
|
|
430
|
+
responsavel: {
|
|
431
|
+
nome: "Nome do Responsável",
|
|
432
|
+
cpf: "000.000.000-00",
|
|
433
|
+
cargo: "Diretor",
|
|
434
|
+
email: "responsavel@navsoftware.com.br"
|
|
435
|
+
},
|
|
436
|
+
configuracoes: {
|
|
437
|
+
ativo: true,
|
|
438
|
+
dataFundacao: "2020-01-01",
|
|
439
|
+
regimeTributario: "Simples Nacional",
|
|
440
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
441
|
+
cnae: "62.01-5-00",
|
|
442
|
+
porteEmpresa: "ME"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const utils_sistema = _sistema;
|
|
447
|
+
const utils = {
|
|
448
|
+
api: utils_api,
|
|
449
|
+
data: utils_data,
|
|
450
|
+
form: utils_form,
|
|
451
|
+
geral: _geral,
|
|
452
|
+
local_storage: utils_local_storage,
|
|
453
|
+
update_context: utils_update_context,
|
|
454
|
+
session_sorage: utils_session_storage,
|
|
455
|
+
sistema: utils_sistema
|
|
406
456
|
};
|
|
407
457
|
const src_utils = utils;
|
|
408
458
|
const _api_api = class _api {
|
|
@@ -458,14 +508,15 @@ const _api_api = class _api {
|
|
|
458
508
|
}
|
|
459
509
|
};
|
|
460
510
|
const utils_api = _api_api;
|
|
461
|
-
const utils_utils =
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
511
|
+
const utils_utils = {
|
|
512
|
+
api: utils_api,
|
|
513
|
+
data: utils_data,
|
|
514
|
+
form: utils_form,
|
|
515
|
+
geral: _geral,
|
|
516
|
+
local_storage: utils_local_storage,
|
|
517
|
+
update_context: utils_update_context,
|
|
518
|
+
session_sorage: utils_session_storage,
|
|
519
|
+
sistema: utils_sistema
|
|
469
520
|
};
|
|
470
521
|
const src_utils_0 = utils_utils;
|
|
471
522
|
export { src_utils_0 as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _secret from "./_secret";
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare const helpers: {
|
|
3
|
+
set_response: {
|
|
4
4
|
new (): {};
|
|
5
5
|
c: {
|
|
6
6
|
new (): {};
|
|
@@ -130,7 +130,7 @@ declare class helpers {
|
|
|
130
130
|
}): void;
|
|
131
131
|
};
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
token: {
|
|
134
134
|
new (): {};
|
|
135
135
|
verificar_token(c: import("../types").default.Context, next: import("hono").Next): Promise<void | import("./_set_response").ResponseCPayload<unknown> | (Response & import("hono").TypedResponse<{
|
|
136
136
|
status: 200 | 201 | 202 | 204 | 400 | 401 | 403 | 404 | 409 | 422 | 500 | 428 | 405;
|
|
@@ -143,6 +143,10 @@ declare class helpers {
|
|
|
143
143
|
c: import("../types").default.Context;
|
|
144
144
|
}): Promise<string>;
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
secret: typeof _secret;
|
|
147
|
+
data: {
|
|
148
|
+
get_now_format_number: number;
|
|
149
|
+
verificar_data: (value: number) => number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
148
152
|
export default helpers;
|
package/build/lib/helpers.cjs
CHANGED
|
@@ -439,16 +439,31 @@ class _secret {
|
|
|
439
439
|
}
|
|
440
440
|
/* export default */ const helpers_secret = (_secret);
|
|
441
441
|
|
|
442
|
+
;// CONCATENATED MODULE: ./src/helpers/_data.ts
|
|
443
|
+
const _data = {
|
|
444
|
+
get_now_format_number: Math.floor(Date.now() / 1000),
|
|
445
|
+
verificar_data: (value)=>{
|
|
446
|
+
const data = new Date(value * 1000);
|
|
447
|
+
if (isNaN(data.getTime())) {
|
|
448
|
+
throw new Error("Timestamp está inválido.");
|
|
449
|
+
}
|
|
450
|
+
return value; // válido
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
/* export default */ const helpers_data = (_data);
|
|
454
|
+
|
|
442
455
|
;// CONCATENATED MODULE: ./src/helpers/index.ts
|
|
443
456
|
//_HELPERS
|
|
444
457
|
|
|
445
458
|
|
|
446
459
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
460
|
+
|
|
461
|
+
const helpers = {
|
|
462
|
+
set_response: _set_response,
|
|
463
|
+
token: helpers_token,
|
|
464
|
+
secret: helpers_secret,
|
|
465
|
+
data: helpers_data
|
|
466
|
+
};
|
|
452
467
|
/* export default */ const src_helpers = (helpers);
|
|
453
468
|
|
|
454
469
|
exports["default"] = __webpack_exports__["default"];
|
|
@@ -565,6 +565,57 @@ const _session_storage = class _session_storage {
|
|
|
565
565
|
};
|
|
566
566
|
/* export default */ const utils_session_storage = (_session_storage);
|
|
567
567
|
|
|
568
|
+
;// CONCATENATED MODULE: ./src/utils/_sistema.ts
|
|
569
|
+
const _sistema = {
|
|
570
|
+
empresa: {
|
|
571
|
+
nome: "Nav Software",
|
|
572
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
573
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
574
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
575
|
+
cnpj: "00.000.000/0001-00",
|
|
576
|
+
inscricaoEstadual: "000.000.000.000",
|
|
577
|
+
inscricaoMunicipal: "000000",
|
|
578
|
+
endereco: {
|
|
579
|
+
logradouro: "Rua Exemplo",
|
|
580
|
+
numero: "000",
|
|
581
|
+
complemento: "Sala 00",
|
|
582
|
+
bairro: "Centro",
|
|
583
|
+
cidade: "Navegantes",
|
|
584
|
+
estado: "SC",
|
|
585
|
+
cep: "88370-000",
|
|
586
|
+
pais: "Brasil"
|
|
587
|
+
},
|
|
588
|
+
contato: {
|
|
589
|
+
telefone: "(47) 0000-0000",
|
|
590
|
+
celular: "(47) 90000-0000",
|
|
591
|
+
email: "contato@navsoftware.com.br",
|
|
592
|
+
site: "https://www.navsoftware.com.br"
|
|
593
|
+
},
|
|
594
|
+
dadosBancarios: {
|
|
595
|
+
banco: "000 - Banco Exemplo",
|
|
596
|
+
agencia: "0000",
|
|
597
|
+
conta: "00000-0",
|
|
598
|
+
tipoConta: "Conta Corrente",
|
|
599
|
+
pix: "contato@navsoftware.com.br"
|
|
600
|
+
},
|
|
601
|
+
responsavel: {
|
|
602
|
+
nome: "Nome do Responsável",
|
|
603
|
+
cpf: "000.000.000-00",
|
|
604
|
+
cargo: "Diretor",
|
|
605
|
+
email: "responsavel@navsoftware.com.br"
|
|
606
|
+
},
|
|
607
|
+
configuracoes: {
|
|
608
|
+
ativo: true,
|
|
609
|
+
dataFundacao: "2020-01-01",
|
|
610
|
+
regimeTributario: "Simples Nacional",
|
|
611
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
612
|
+
cnae: "62.01-5-00",
|
|
613
|
+
porteEmpresa: "ME" // ME, EPP, ou outro
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
};
|
|
617
|
+
/* export default */ const utils_sistema = (_sistema);
|
|
618
|
+
|
|
568
619
|
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
569
620
|
|
|
570
621
|
|
|
@@ -573,14 +624,16 @@ const _session_storage = class _session_storage {
|
|
|
573
624
|
|
|
574
625
|
|
|
575
626
|
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
627
|
+
|
|
628
|
+
const utils = {
|
|
629
|
+
api: utils_api,
|
|
630
|
+
data: utils_data,
|
|
631
|
+
form: utils_form,
|
|
632
|
+
geral: _geral,
|
|
633
|
+
local_storage: utils_local_storage,
|
|
634
|
+
update_context: utils_update_context,
|
|
635
|
+
session_sorage: utils_session_storage,
|
|
636
|
+
sistema: utils_sistema
|
|
584
637
|
};
|
|
585
638
|
/* export default */ const src_utils = (utils);
|
|
586
639
|
|
|
@@ -785,7 +838,7 @@ var _type_response_TypeControllerResponse;
|
|
|
785
838
|
/* export default */ const types = (types_t);
|
|
786
839
|
var types_t;
|
|
787
840
|
|
|
788
|
-
// EXTERNAL MODULE: ./src/utils/index.ts +
|
|
841
|
+
// EXTERNAL MODULE: ./src/utils/index.ts + 9 modules
|
|
789
842
|
var utils = __webpack_require__("./src/utils/index.ts");
|
|
790
843
|
;// CONCATENATED MODULE: ./src/index.browser.ts
|
|
791
844
|
|
package/build/lib/index.node.cjs
CHANGED
|
@@ -399,16 +399,31 @@ class _secret {
|
|
|
399
399
|
}
|
|
400
400
|
/* export default */ const helpers_secret = (_secret);
|
|
401
401
|
|
|
402
|
+
;// CONCATENATED MODULE: ./src/helpers/_data.ts
|
|
403
|
+
const _data = {
|
|
404
|
+
get_now_format_number: Math.floor(Date.now() / 1000),
|
|
405
|
+
verificar_data: (value)=>{
|
|
406
|
+
const data = new Date(value * 1000);
|
|
407
|
+
if (isNaN(data.getTime())) {
|
|
408
|
+
throw new Error("Timestamp está inválido.");
|
|
409
|
+
}
|
|
410
|
+
return value; // válido
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
/* export default */ const helpers_data = (_data);
|
|
414
|
+
|
|
402
415
|
;// CONCATENATED MODULE: ./src/helpers/index.ts
|
|
403
416
|
//_HELPERS
|
|
404
417
|
|
|
405
418
|
|
|
406
419
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
420
|
+
|
|
421
|
+
const helpers = {
|
|
422
|
+
set_response: _set_response,
|
|
423
|
+
token: helpers_token,
|
|
424
|
+
secret: helpers_secret,
|
|
425
|
+
data: helpers_data
|
|
426
|
+
};
|
|
412
427
|
/* export default */ const src_helpers = (helpers);
|
|
413
428
|
|
|
414
429
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _sistema: {
|
|
2
|
+
empresa: {
|
|
3
|
+
nome: string;
|
|
4
|
+
email_suporte: string;
|
|
5
|
+
email_no_replay: string;
|
|
6
|
+
razaoSocial: string;
|
|
7
|
+
cnpj: string;
|
|
8
|
+
inscricaoEstadual: string;
|
|
9
|
+
inscricaoMunicipal: string;
|
|
10
|
+
endereco: {
|
|
11
|
+
logradouro: string;
|
|
12
|
+
numero: string;
|
|
13
|
+
complemento: string;
|
|
14
|
+
bairro: string;
|
|
15
|
+
cidade: string;
|
|
16
|
+
estado: string;
|
|
17
|
+
cep: string;
|
|
18
|
+
pais: string;
|
|
19
|
+
};
|
|
20
|
+
contato: {
|
|
21
|
+
telefone: string;
|
|
22
|
+
celular: string;
|
|
23
|
+
email: string;
|
|
24
|
+
site: string;
|
|
25
|
+
};
|
|
26
|
+
dadosBancarios: {
|
|
27
|
+
banco: string;
|
|
28
|
+
agencia: string;
|
|
29
|
+
conta: string;
|
|
30
|
+
tipoConta: string;
|
|
31
|
+
pix: string;
|
|
32
|
+
};
|
|
33
|
+
responsavel: {
|
|
34
|
+
nome: string;
|
|
35
|
+
cpf: string;
|
|
36
|
+
cargo: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
configuracoes: {
|
|
40
|
+
ativo: boolean;
|
|
41
|
+
dataFundacao: string;
|
|
42
|
+
regimeTributario: string;
|
|
43
|
+
ramoAtividade: string;
|
|
44
|
+
cnae: string;
|
|
45
|
+
porteEmpresa: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _sistema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _form from "./_form";
|
|
2
2
|
declare const utils: {
|
|
3
|
-
new (): {};
|
|
4
3
|
api: {
|
|
5
4
|
new (): {};
|
|
6
5
|
servidor_service_usuario: {
|
|
@@ -101,5 +100,53 @@ declare const utils: {
|
|
|
101
100
|
get_item_session_storage(chave: string): any;
|
|
102
101
|
remover_item_session_storage(chave: string): void;
|
|
103
102
|
};
|
|
103
|
+
sistema: {
|
|
104
|
+
empresa: {
|
|
105
|
+
nome: string;
|
|
106
|
+
email_suporte: string;
|
|
107
|
+
email_no_replay: string;
|
|
108
|
+
razaoSocial: string;
|
|
109
|
+
cnpj: string;
|
|
110
|
+
inscricaoEstadual: string;
|
|
111
|
+
inscricaoMunicipal: string;
|
|
112
|
+
endereco: {
|
|
113
|
+
logradouro: string;
|
|
114
|
+
numero: string;
|
|
115
|
+
complemento: string;
|
|
116
|
+
bairro: string;
|
|
117
|
+
cidade: string;
|
|
118
|
+
estado: string;
|
|
119
|
+
cep: string;
|
|
120
|
+
pais: string;
|
|
121
|
+
};
|
|
122
|
+
contato: {
|
|
123
|
+
telefone: string;
|
|
124
|
+
celular: string;
|
|
125
|
+
email: string;
|
|
126
|
+
site: string;
|
|
127
|
+
};
|
|
128
|
+
dadosBancarios: {
|
|
129
|
+
banco: string;
|
|
130
|
+
agencia: string;
|
|
131
|
+
conta: string;
|
|
132
|
+
tipoConta: string;
|
|
133
|
+
pix: string;
|
|
134
|
+
};
|
|
135
|
+
responsavel: {
|
|
136
|
+
nome: string;
|
|
137
|
+
cpf: string;
|
|
138
|
+
cargo: string;
|
|
139
|
+
email: string;
|
|
140
|
+
};
|
|
141
|
+
configuracoes: {
|
|
142
|
+
ativo: boolean;
|
|
143
|
+
dataFundacao: string;
|
|
144
|
+
regimeTributario: string;
|
|
145
|
+
ramoAtividade: string;
|
|
146
|
+
cnae: string;
|
|
147
|
+
porteEmpresa: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
104
151
|
};
|
|
105
152
|
export default utils;
|
package/build/lib/utils.cjs
CHANGED
|
@@ -630,6 +630,57 @@ const _session_storage = class _session_storage {
|
|
|
630
630
|
};
|
|
631
631
|
/* export default */ const utils_session_storage = (_session_storage);
|
|
632
632
|
|
|
633
|
+
;// CONCATENATED MODULE: ./src/utils/_sistema.ts
|
|
634
|
+
const _sistema = {
|
|
635
|
+
empresa: {
|
|
636
|
+
nome: "Nav Software",
|
|
637
|
+
email_suporte: "suporte@navsoftware.com.br",
|
|
638
|
+
email_no_replay: "no-replay@navsoftware.com.br",
|
|
639
|
+
razaoSocial: "Nav Software Desenvolvimento de Sistemas Ltda",
|
|
640
|
+
cnpj: "00.000.000/0001-00",
|
|
641
|
+
inscricaoEstadual: "000.000.000.000",
|
|
642
|
+
inscricaoMunicipal: "000000",
|
|
643
|
+
endereco: {
|
|
644
|
+
logradouro: "Rua Exemplo",
|
|
645
|
+
numero: "000",
|
|
646
|
+
complemento: "Sala 00",
|
|
647
|
+
bairro: "Centro",
|
|
648
|
+
cidade: "Navegantes",
|
|
649
|
+
estado: "SC",
|
|
650
|
+
cep: "88370-000",
|
|
651
|
+
pais: "Brasil"
|
|
652
|
+
},
|
|
653
|
+
contato: {
|
|
654
|
+
telefone: "(47) 0000-0000",
|
|
655
|
+
celular: "(47) 90000-0000",
|
|
656
|
+
email: "contato@navsoftware.com.br",
|
|
657
|
+
site: "https://www.navsoftware.com.br"
|
|
658
|
+
},
|
|
659
|
+
dadosBancarios: {
|
|
660
|
+
banco: "000 - Banco Exemplo",
|
|
661
|
+
agencia: "0000",
|
|
662
|
+
conta: "00000-0",
|
|
663
|
+
tipoConta: "Conta Corrente",
|
|
664
|
+
pix: "contato@navsoftware.com.br"
|
|
665
|
+
},
|
|
666
|
+
responsavel: {
|
|
667
|
+
nome: "Nome do Responsável",
|
|
668
|
+
cpf: "000.000.000-00",
|
|
669
|
+
cargo: "Diretor",
|
|
670
|
+
email: "responsavel@navsoftware.com.br"
|
|
671
|
+
},
|
|
672
|
+
configuracoes: {
|
|
673
|
+
ativo: true,
|
|
674
|
+
dataFundacao: "2020-01-01",
|
|
675
|
+
regimeTributario: "Simples Nacional",
|
|
676
|
+
ramoAtividade: "Desenvolvimento de Software",
|
|
677
|
+
cnae: "62.01-5-00",
|
|
678
|
+
porteEmpresa: "ME" // ME, EPP, ou outro
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
/* export default */ const utils_sistema = (_sistema);
|
|
683
|
+
|
|
633
684
|
;// CONCATENATED MODULE: ./src/utils/index.ts
|
|
634
685
|
|
|
635
686
|
|
|
@@ -638,14 +689,16 @@ const _session_storage = class _session_storage {
|
|
|
638
689
|
|
|
639
690
|
|
|
640
691
|
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
692
|
+
|
|
693
|
+
const utils = {
|
|
694
|
+
api: utils_api,
|
|
695
|
+
data: utils_data,
|
|
696
|
+
form: utils_form,
|
|
697
|
+
geral: _geral,
|
|
698
|
+
local_storage: utils_local_storage,
|
|
699
|
+
update_context: utils_update_context,
|
|
700
|
+
session_sorage: utils_session_storage,
|
|
701
|
+
sistema: utils_sistema
|
|
649
702
|
};
|
|
650
703
|
/* export default */ const src_utils = (utils);
|
|
651
704
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navservice/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.0",
|
|
4
4
|
"description": "Service core de todos os micro serviços",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "rslib build",
|
|
27
|
-
"lib": "npm
|
|
27
|
+
"lib": "npm run build && npm publish --access public"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public",
|