Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit d5d68a4
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 18:09:35 2024 -0300

    feat: remove jobs

commit 69a3ad7
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 17:50:24 2024 -0300

    rename bq querordemPgto query

commit 615fce3
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 16:53:13 2024 -0300

    feat: minimal working

commit aff489b
Merge: 9c6a0e6 6221404
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 14:51:27 2024 -0300

    Merge remote-tracking branch 'origin' into feature/#207-test-cnab

commit 9c6a0e6
Merge: 1c3a95d 95caf29
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Mar 7 14:27:48 2024 -0300

    Merge pull request #210 from RJ-SMTR/feature/#196-cnab-migrations

    Feature/#196 cnab migrations

commit 95caf29
Merge: ae335db 1c3a95d
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 14:21:58 2024 -0300

    Merge branch 'develop' into feature/#196-cnab-migrations

commit ae335db
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 14:19:39 2024 -0300

    feat: migration for cnab tables

commit f7e4a39
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 14:03:44 2024 -0300

    feat: rename tables

commit 1c3a95d
Merge: 285088b d0ab3a1
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Mar 7 10:39:24 2024 -0300

    Merge pull request #209 from RJ-SMTR/feature-testes-funcionais

    Ajuste conflitos

commit d0ab3a1
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Thu Mar 7 10:35:14 2024 -0300

    Ajuste conflitos

commit 285088b
Merge: 5e53e72 aa1fff1
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Mar 7 10:07:46 2024 -0300

    Merge pull request #208 from RJ-SMTR/feature-arquivo-retorno

    Feature arquivo retorno

commit aa1fff1
Merge: 6f68103 5e53e72
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Mar 7 10:07:15 2024 -0300

    Merge branch 'develop' into feature-arquivo-retorno

commit 6f68103
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Thu Mar 7 09:54:24 2024 -0300

    ajuste variaveis que não estavam sendo utilizadas

commit 5e53e72
Merge: 2bbffd9 ab1994c
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Mar 7 09:42:04 2024 -0300

    Merge pull request #205 from RJ-SMTR/feature/#196-cnab-jae-2

    Feature/#196 cnab jae 2

commit ab1994c
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Mar 7 09:27:10 2024 -0300

    remove hardcoded credentials

commit e1a4188
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Mar 6 18:29:36 2024 -0300

    feat: migration ClienteFavorecido

commit 4709cb6
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Mar 6 16:40:01 2024 -0300

    feat: updateRetorno

commit 9099754
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Wed Mar 6 14:23:57 2024 -0300

    Gerado comparativo remessa e retorno e criado Job para retorno

commit 434e7e3
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Mar 6 11:47:55 2024 -0300

    feat: read retorno

commit cf5e500
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Mar 5 23:07:52 2024 -0300

    Geração publicacao arquivo remessa/retorno

commit 8784ebd
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 18:20:27 2024 -0300

    feat: add mapping

commit d50d061
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 17:35:45 2024 -0300

    fix: rebuild updated nest-sftp

commit 071c9bb
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 16:22:14 2024 -0300

    revert: working package.json

commit 2bbffd9
Merge: 21f6668 117c36a
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Mar 5 15:47:39 2024 -0300

    Merge pull request #203 from RJ-SMTR/feature/#196-cnab-jae-2

    Feature/#196 cnab jae 2

commit 117c36a
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 15:46:41 2024 -0300

    feat: upload sftp WIP

commit 906c604
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 14:48:02 2024 -0300

    feat: cronjobs

commit 880e64e
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 14:28:42 2024 -0300

    remove uppercase

commit d5684da
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 14:22:49 2024 -0300

    fix: resolve merge ts errors

commit 15e69ce
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 11:16:46 2024 -0300

    rename lowercase

commit 21f6668
Merge: 36c9b1d 2baef0b
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Mar 5 09:59:49 2024 -0300

    Merge pull request #202 from RJ-SMTR/feat/#196-integracao-views-jae

    Feat/#196 integracao views jae

commit 2baef0b
Merge: a4f242b 36c9b1d
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Mar 5 09:59:17 2024 -0300

    Merge branch 'develop' into feat/#196-integracao-views-jae

commit 36c9b1d
Merge: 7733f18 88b4169
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Mar 5 09:38:50 2024 -0300

    Merge pull request #201 from RJ-SMTR/feature/#196-jae-cnab

    Feature/#196 jae cnab

commit 88b4169
Merge: 0ba3228 56fa23a
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Mar 5 09:15:27 2024 -0300

    Merge branch 'feature-new-job-remessa' into feature/#196-jae-cnab

commit a4f242b
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Mon Mar 4 21:11:48 2024 -0300

    Criado servico de conexão sftp

commit 39769de
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Fri Mar 1 17:55:35 2024 -0300

    Finalizando inserção das ordens de pagamento

commit 4698278
Merge: 7733f18 0ba3228
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Fri Mar 1 14:05:57 2024 -0300

    Merge branch 'feat/#196-integracao-views-jae' of https://github.com/RJ-SMTR/api-cct into feat/#196-integracao-views-jae

commit 0ba3228
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Mar 1 13:59:01 2024 -0300

    wip: filter bqOrdemPgto

commit 56fa23a
Merge: bb218a9 7733f18
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Fri Mar 1 13:50:10 2024 -0300

    Inclusao dados arquivo remessa no banco

commit bb218a9
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Thu Feb 29 16:22:11 2024 -0300

    ajustando job remssa

commit 7733f18
Merge: c534052 8f7edfa
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Feb 29 16:20:35 2024 -0300

    Merge pull request #200 from RJ-SMTR/feat/#196-integracao-views-jae

    WIP: Feat/#196 integracao views jae

commit 8f7edfa
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 29 16:13:30 2024 -0300

    chore: rename

commit d2ce332
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 29 16:09:33 2024 -0300

    ok

commit 028a517
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 29 16:08:52 2024 -0300

    wip: bqOrdemPgto

commit 1edda6c
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 29 16:06:22 2024 -0300

    wip: dto

commit 5298c80
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 19:07:01 2024 -0300

    wip: transacao

commit 056e64d
Merge: c3812b1 c534052
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 11:23:05 2024 -0300

    Merge branch 'develop' into feat/#196-integracao-views-jae

commit c3812b1
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 11:21:52 2024 -0300

    feat:bq-transacao repository

commit c534052
Merge: 22557fa 010d0fc
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 28 10:49:37 2024 -0300

    Merge pull request #199 from RJ-SMTR/feature-job-remessa

    Feature job remessa

commit 010d0fc
Merge: 3050639 22557fa
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 28 10:49:29 2024 -0300

    Merge branch 'develop' into feature-job-remessa

commit 3050639
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Wed Feb 28 10:47:05 2024 -0300

    Ajuste estrutura

commit 857834b
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Wed Feb 28 10:34:38 2024 -0300

    Montando a arquitetura job remessa

commit 22557fa
Merge: 06b40ec 04534fa
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 28 10:08:58 2024 -0300

    Merge pull request #198 from RJ-SMTR/feature-job-transacao

    Inicio estrutura cron job transacao

commit 0695512
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 09:59:28 2024 -0300

    fix: rename

commit 142d973
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 09:58:46 2024 -0300

    repo

commit 06b40ec
Merge: dabf084 232748c
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 28 09:58:10 2024 -0300

    Merge pull request #197 from RJ-SMTR/feat/#196-integracao-views-jae

    wip: bq repository

commit 232748c
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 28 09:56:08 2024 -0300

    wip: bq repository

commit 04534fa
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Feb 27 18:19:18 2024 -0300

    Inicio estrutura cron job transacao

commit dabf084
Merge: 201e553 9f3c531
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Feb 27 17:17:46 2024 -0300

    Merge pull request #194 from RJ-SMTR/feature/#192-pagador-transacao

    feat: entities cnab

commit 9f3c531
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 27 17:15:18 2024 -0300

    feat: entities cnab

commit 201e553
Merge: 72478cb 263f82a
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Feb 27 17:06:37 2024 -0300

    Merge pull request #193 from RJ-SMTR/feature-generate-entity

    Feature generate entity

commit 263f82a
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Feb 27 17:03:29 2024 -0300

    ajuste entidades

commit 9ce23c6
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Feb 27 16:59:46 2024 -0300

    ajuste entidades

commit 72478cb
Merge: 0ba31e3 6f9b692
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Feb 27 16:52:10 2024 -0300

    Merge pull request #192 from RJ-SMTR/feature-generate-entity

    Adição de entidades

commit 6f9b692
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Feb 27 16:51:09 2024 -0300

    Adição de entidades

commit 0ba31e3
Author: williamfl2007 <williamfl2007@gmail.com>
Date:   Tue Feb 27 16:22:07 2024 -0300

    ajuste estrutura de pastas

commit 100facd
Merge: 26af1d5 4274d34
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Feb 27 16:05:57 2024 -0300

    Merge pull request #191 from RJ-SMTR/feature/#187-cnab

    feat: cnab-dto

commit 4274d34
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 27 16:03:52 2024 -0300

    feat: cnab-dto

commit 26af1d5
Merge: c3f087b 41b0b66
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Tue Feb 27 10:57:32 2024 -0300

    Merge pull request #189 from RJ-SMTR/feature/#187-cnab

    Feature/#187 cnab

commit 41b0b66
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 27 10:54:42 2024 -0300

    doc: comment issue

commit cdca98a
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 27 10:34:08 2024 -0300

    test: validate unique cnab lote types

commit dc0e4a3
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Mon Feb 26 21:37:34 2024 -0300

    test: fix quantidadeRegistrosLote result

commit 6ddc9a1
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Mon Feb 26 16:01:33 2024 -0300

    test: process, generate, stirngify cnab 104

commit 08cb318
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Feb 23 00:33:48 2024 -0300

    feat: stringify Cnab file

commit 724e50d
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 22 21:59:50 2024 -0300

    chore: decouple CnabRegistroMapped

commit e4c3f12
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 22 18:50:35 2024 -0300

    wip: stringify/parse cnab

commit 08fe640
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 22 16:27:49 2024 -0300

    test: convert compound objects into CnabRegistros

commit 4f70610
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 21 19:54:11 2024 -0300

    test: fix cronjobs test

commit 5b20e04
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 21 18:59:54 2024 -0300

    chore: separate field-utils and other cnab utils

commit 37f66e5
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 21 18:04:08 2024 -0300

    test and validate CnabFields and CnabRegistro

commit bdc7b68
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 20 19:54:01 2024 -0300

    test: format type and get type size

commit 1ef919e
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 20 14:01:16 2024 -0300

    wip: move templates to folder, test picture regex

commit 6262362
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Feb 20 00:55:05 2024 -0300

    wip: cnab module with no tests yet

commit c3f087b
Merge: 599eb52 8641e05
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Fri Feb 16 14:45:31 2024 -0300

    Merge pull request #186 from RJ-SMTR/hotfix/#185-hmg-env

    Hotfix: Permitir variável de ambiente homol

commit 8641e05
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Feb 16 14:25:36 2024 -0300

    fix: use settings table to query bigquery

    - fix: bearer auth to access setting

commit 54b7418
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Feb 16 11:50:49 2024 -0300

    fix: log error if duplicated user or invalid role

commit b5b0173
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 15 19:57:56 2024 -0300

    fix: homol environment

commit 599eb52
Merge: c14a16d f5aa0eb
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Feb 15 09:49:48 2024 -0300

    Merge pull request #184 from RJ-SMTR/hotfix/#172-dev-daily-user-mail

    Hotfix/#172 (dev) Emails diferentes para usuários não cadastrados

commit f5aa0eb
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 15 09:29:19 2024 -0300

    fix: show different mails for incompleted users

    - fix: resend different mails for unregistered vs semi-registered users
    - 4fed666: fix: show different mails for non registered users
    - 774ea3d: fix: send
    - 9c4f866: test
    - 6221404: revert: test

commit c14a16d
Merge: 84c7ca4 568ff90
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Feb 8 15:10:46 2024 -0300

    Merge pull request #183 from RJ-SMTR/hotfix/#177-paid-integral

    Hotfix: Renomear para Integral e status Pago

commit 568ff90
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 8 14:50:05 2024 -0300

    fix: statePaid; rename Integral

commit 5d96c66
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 8 10:53:23 2024 -0300

    fix: show different mails for non registered users

commit 84c7ca4
Merge: 2f9dabe 3c26f56
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Feb 8 09:11:04 2024 -0300

    Merge pull request #182 from RJ-SMTR/hotfix/#177-remove-bs-me-day

    Hotfix/#177 Remover endpoint de Valor diário

commit 3c26f56
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 18:14:44 2024 -0300

    fix: seed mailhsitory saving hashed pass

    - feat: seed:run __exclude to ignore modules

commit 17daadd
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 16:35:43 2024 -0300

    fix: remove bs/me/day endponit

commit 2f9dabe
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 14:40:06 2024 -0300

    fix: merge dev

commit 53e5c45
Merge: d4df9b5 0eb9b24
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 7 14:20:47 2024 -0300

    Merge pull request #181 from RJ-SMTR/hotfix/#177-ts-me-individual

    Hotfix/#177 Endpoint transações individuais

commit 0eb9b24
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 14:00:48 2024 -0300

    chore: prepare to refactor repository

commit 5e31132
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 13:38:17 2024 -0300

    fix: tr individual with repository

commit d4df9b5
Merge: 98ba242 6b67f94
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 7 12:28:36 2024 -0300

    Merge pull request #180 from RJ-SMTR/hotfix/#177-bs-me-day

    Hotfix/#177 Endpoint soma do dia

commit 6b67f94
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 11:47:58 2024 -0300

    fix: bs get me day

commit 98ba242
Merge: fffefc0 e136f7c
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Wed Feb 7 11:33:37 2024 -0300

    Merge pull request #179 from RJ-SMTR/hotfix/#177-fin-info-mock

    Hotfix/#177 Endpoint dias anteriores

commit e136f7c
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 11:21:56 2024 -0300

    chore: use repository

commit 74b455c
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 10:33:42 2024 -0300

    chore: doc refactor

commit 511c74a
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Feb 7 10:24:33 2024 -0300

    fix: previous days, tests

commit fffefc0
Merge: d85065b a78e301
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Mon Feb 5 17:22:13 2024 -0300

    Merge pull request #178 from RJ-SMTR/feature/#167-fin-previous-days

    Hotfix Usar valor_total se tipo de transação = Integração

commit a78e301
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Mon Feb 5 17:06:02 2024 -0300

    fix: join another table to avoid value = 0

    - fix: If tansactionType = Integração and value = 0.0,
    use integracao.valor_total instead.

commit d85065b
Merge: 4386d6d b17ab8e
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Mon Feb 5 12:32:08 2024 -0300

    Merge pull request #175 from RJ-SMTR/feature/#167-fin-previous-days

    Feature/#167 Endpoints financeiros, dias anteriores

commit b17ab8e
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Mon Feb 5 12:21:10 2024 -0300

    test: use develop table if env not prod

commit 4e22117
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Feb 2 11:38:08 2024 -0300

    fix: show columns processingDate, transactionDate

    - feat: find CNPJ users too

commit 76c2c32
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Feb 1 08:51:42 2024 -0300

    fix: use a single query to count and get data

    - test: remove obsolete test #94, item 15

commit e047786
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Jan 30 18:10:04 2024 -0300

    fix: ignore update password if already exists

    - chore: update test docs

commit 2ffc8c2
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Jan 30 14:28:45 2024 -0300

    fix: userID validation, refactor

commit 3612258
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Jan 30 14:07:28 2024 -0300

    feat: endpoint tr-get-me-individual

commit 1d6360f
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Jan 30 00:49:01 2024 -0300

    feat: bs prev-days, /date mocked endpoints

commit 6f80e42
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Sat Jan 27 10:24:35 2024 -0300

    feat: wip pagination and new routes

    - chore: simplify methods and some HttpExceptions

commit 1f28733
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Jan 26 18:24:11 2024 -0300

    test: update tests for refactored services

commit 4386d6d
Merge: 2e69c68 0339031
Author: William Ferreira Leite <williamfl2007@gmail.com>
Date:   Thu Jan 25 17:04:41 2024 -0300

    Merge pull request #171 from RJ-SMTR/feature/#168-remove-fin-mock

    Feature/#168 Remover dados simulados do financeiro

commit 0339031
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Jan 25 16:07:56 2024 -0300

    test: update tests to matching samples

    - chore: ignore .vscode/ folder
    - doc: remove unecssary launch.json example
    - test: remove unecessary test

commit e8d2b7b
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Jan 24 21:55:18 2024 -0300

    test: ignore local_dev scripts

commit 48de08b
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Jan 24 20:07:11 2024 -0300

    fix: query to ticket-revenues

    - test: ticket-revenues should return results

commit a181430
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Wed Jan 24 14:54:52 2024 -0300

    fix: update bigquery columns

    - test: update tests and freeze others

commit a4e623b
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Jan 19 13:58:23 2024 -0300

    fix: replace id_tipo_transacao in bigquery

commit 36a7bd0
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Jan 19 13:49:52 2024 -0300

    chore: remove debug logging

commit 4fced53
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Fri Jan 19 11:17:50 2024 -0300

    test: fix tests after removing mock dependencies

    - fix: seed:run validate all modules before run.
    - fix: re-run seed triggers unique key constraint (email)
    - docs: example for vscode launch.json

commit 1e5edde
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Jan 18 14:37:00 2024 -0300

    feat: remove sgtu mock

commit 4eea1b8
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Jan 18 12:52:12 2024 -0300

    feat: remove mock jae module

    Fixme tests:
    - cron-jobs.service.spec.ts (not related)
    - ticket-revenues.service.spec.ts

commit 2d33b3a
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Thu Jan 18 11:05:35 2024 -0300

    feat: remove mocked CoreBank module

commit 60520cc
Author: Raphael Rivas <raphaelrivas@hotmail.com>
Date:   Tue Jan 16 18:41:03 2024 -0300

    feat: remove CoreBank mock in auth, cronjobs
  • Loading branch information
yxuo committed Mar 8, 2024
1 parent 6221404 commit 023a167
Show file tree
Hide file tree
Showing 317 changed files with 21,457 additions and 11,880 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ module.exports = {
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
// 'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
ignorePatterns: ['.eslintrc.js', 'local_dev'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
Expand Down
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ lerna-debug.log*
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.vscode/

.data
/files
Expand Down
96 changes: 81 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*API do aplicativo CCT*
(Centro de Compensação Tarifária)


[Documentação completa](https://github.com/RJ-SMTR/api-cct/blob/main/docs/readme.md)

Este projeto foi baseado no template [Nestjs Boilerplate](https://github.com/brocoders/nestjs-boilerplate/)
Expand All @@ -19,17 +18,16 @@ O [Projeto do App CCT](https://github.com/RJ-SMTR/app-cct) consome esta API.
* [API CCT](#api-cct)
* [Descrição](#descrição)
* [Table of Contents](#table-of-contents)
* [Quick run](#quick-run)
* [Executar rapidamente](#executar-rapidamente)
* [Desenvolvimento confortável](#desenvolvimento-confortável)
* [Links](#links)
* [Automatic update of dependencies](#automatic-update-of-dependencies)
* [Banco de dados](#banco-de-dados)
* [Testes](#testes)
* [Depurando testes](#depurando-testes)
* [Testes no Docker](#testes-no-docker)
* [Benchmarking de testes](#benchmarking-de-testes)

## Quick run
## Executar rapidamente

```bash
git clone --depth 1 .git my-app
Expand All @@ -38,7 +36,7 @@ cp env-example .env
docker compose up -d
```

For check status run
Para verificar status:

```bash
docker compose logs
Expand All @@ -62,6 +60,14 @@ Executar contêiner adicional:
docker compose up -d postgres adminer maildev
```

Login no adminer (login de exemplo):

- Sistema: `PostgreSQL`
- Servidor: `postgres`
- Usuário: `root`
- Senha: `secret`
- Base de dados: `api`

Configurar projeto:

```bash
Expand All @@ -83,17 +89,20 @@ Rodar seed apenas de alguns módulos
```
npm run seed:run user mailhistory
```
> O comando não diferencia maiúsculas de minúsculas
Rodar seed com todos os módulos exceto alguns
```
npm run seed:run __exclude user mailhistory
> A ordem dos parâmetros não influencia a execução
```

## Links

- Swagger: http://localhost:3000/docs
- Adminer (client for DB): http://localhost:8080
- Maildev: http://localhost:1080

## Automatic update of dependencies

If you want to automatically update dependencies, you can connect [Renovate](https://github.com/marketplace/renovate) for your project.

## Banco de dados

Generate migration
Expand Down Expand Up @@ -136,9 +145,27 @@ npm run test
npm run test:e2e
```

### Testando scripts localmente

Para testar scripts que fazem uso das mesmas boblioitecas e componentes deste projeto basta criar a seguinte pasta:
```bash
api-cct
📂 src
📂 local_dev # não sincornizado
seus-scripts.ts
```

Para executar basta rodar:
```bash
ts-node "diretório do script"
```

### Depurando testes

Exemplo de configuração no VSCode:
**Exemplo de configuração no VSCode:**

Requisitos
- Extensão [Command Variable](https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable)

.vscode/launch.json
```jsonc
Expand All @@ -152,7 +179,7 @@ Exemplo de configuração no VSCode:
"args": [
"--runInBand"
],
"cwd": "${workspaceFolder}",
"cwd": "${fileDirname}",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
Expand All @@ -162,30 +189,69 @@ Exemplo de configuração no VSCode:
"internalConsoleOptions": "neverOpen",
"attachSimplePort": 9229,
},
{
"name": "Jest test: Teste específico",
"type": "node",
"request": "launch",
"args": [
"--runInBand"
],
"cwd": "${fileDirname}",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
"${fileBasenameNoExtension}",
"--testNamePattern",
"\".*${selectedText}\""
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"attachSimplePort": 9229,
},
{
"name": "Jest e2e: Arquivo Atual",
"type": "node",
"request": "launch",
"args": [
"--runInBand"
],
"cwd": "${workspaceFolder}/api-cct",
"cwd": "${workspaceFolder}",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
"--config",
"${workspaceFolder}/test/jest-e2e.json",
"${fileBasenameNoExtension}"
"${command:extension.commandvariable.file.relativeFilePosix}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"attachSimplePort": 9229,
},
{
"name": "Jest e2e: Teste específico",
"type": "node",
"request": "launch",
"args": [
"--runInBand"
],
"cwd": "${workspaceFolder}",
"runtimeArgs": [
"--inspect-brk",
"${workspaceFolder}/node_modules/jest/bin/jest.js",
"--config",
"${workspaceFolder}/test/jest-e2e.json",
"${command:extension.commandvariable.file.relativeFilePosix}",
"--testNamePattern",
"\".*${selectedText}\""
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"attachSimplePort": 9229
}
]
],
}
```


## Testes no Docker

```bash
Expand Down
36 changes: 22 additions & 14 deletions docs/installing-and-running.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Installation

---
# Instalação

## Table of Contents

- [Comfortable development](#comfortable-development)
- [Quick run](#quick-run)
- [Links](#links)
* [Instalação](#instalação)
* [Table of Contents](#table-of-contents)
* [Comfortable development](#comfortable-development)
* [Quick run](#quick-run)
* [Video guideline](#video-guideline)
* [Links](#links)

---

Expand All @@ -18,48 +19,55 @@
git clone --depth 1 https://github.com/brocoders/nestjs-boilerplate.git my-app
```

1. Go to folder, and copy `env-example` as `.env`.
2. Go to folder, and copy `env-example` as `.env`.

```bash
cd my-app/
cp env-example .env
```

1. Change `DATABASE_HOST=postgres` to `DATABASE_HOST=localhost`
3. Change `DATABASE_HOST=postgres` to `DATABASE_HOST=localhost`

Change `MAIL_HOST=maildev` to `MAIL_HOST=localhost`

1. Run additional container:
4. Executar gerenciador de banco Adminer:

```bash
docker compose up -d postgres adminer maildev
```

1. Install dependency
Login no adminer (login de exemplo):
- Sistema: `PostgreSQL`
- Servidor: `postgres`
- Usuário: `root`
- Senha: `secret`
- Base de dados: `api`

5. Install dependency

```bash
npm install
```

1. Run migrations
6. Run migrations

```bash
npm run migration:run
```

1. Run seeds
7. Run seeds

```bash
npm run seed:run
```

1. Run app in dev mode
8. Run app in dev mode

```bash
npm run start:dev
```

1. Open http://localhost:3000
9. Open http://localhost:3000

---

Expand Down
Loading

0 comments on commit 023a167

Please sign in to comment.