Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ada941f
refactor: using datetime instead of string form dates with Prisma
danilo-romano-dg May 11, 2024
e826c67
fix: corrigindo tipo do dado e adicionando default value
danilo-romano-dg May 11, 2024
234e0ef
Merge remote-tracking branch 'upstream/develop' into develop
danilo-romano-dg May 13, 2024
94784a9
Merge remote-tracking branch 'upstream/develop' into develop
danilo-romano-dg May 14, 2024
678246e
Merge branch 'SOS-RS:develop' into develop
risaddex May 16, 2024
da18a35
feat: adicionando implementação inicial
danilo-romano-dg May 15, 2024
88f7256
test: adding tests for shelter-csv-importer
danilo-romano-dg May 16, 2024
d297ef9
test: fixing example imports in tests
danilo-romano-dg May 16, 2024
1af3812
chore: declaring shelter-csv-service into module
danilo-romano-dg May 16, 2024
3cd457d
refactor: code sppliting and adding some extra functionalities to she…
danilo-romano-dg May 16, 2024
15cd16e
chore: adding some types
danilo-romano-dg May 16, 2024
c0a08ca
feat: implementando controller para importar csv
danilo-romano-dg May 17, 2024
881bcb6
Merge remote-tracking branch 'upstream/develop' into develop
danilo-romano-dg May 17, 2024
928bc45
Merge branch 'develop' into feature/import-csv
danilo-romano-dg May 17, 2024
2d8cb25
feat: adicionando importação via url
danilo-romano-dg May 17, 2024
a36de38
Revert "refactor: using datetime instead of string form dates with P…
danilo-romano-dg May 18, 2024
3e9614f
Removendo arquivo trash adicionado ao git
danilo-romano-dg May 18, 2024
a09e6ec
chore: removing vscode config file
danilo-romano-dg May 18, 2024
fd37932
chore: fix tests
danilo-romano-dg May 21, 2024
9fb4e2b
chore: defining usage of IA to detect supply categories by environmen…
danilo-romano-dg May 21, 2024
9d3e66e
chore: declarando tipagem de variáveis de ambiente
danilo-romano-dg May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_
SECRET_KEY=

HOST=::0.0.0.0
PORT=4000
PORT=4000

CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES=false
# Opcional (Utilizado para detectar tipos de categorias ao importar abrigos)
GEMINI_API_KEY=
6 changes: 5 additions & 1 deletion .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_
SECRET_KEY=batata

HOST=::0.0.0.0
PORT=4000
PORT=4000

CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES=false
# Opcional (Utilizado para detectar tipos de categorias ao importar abrigos)
GEMINI_API_KEY=
20 changes: 20 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare global {
declare namespace NodeJS {
export interface ProcessEnv {
TZ?: string;
DB_HOST: string;
DB_PORT: string;
DB_DATABASE_NAME: string;
DB_USER: string;
DB_PASSWORD: string;
DATABASE_URL: string;
SECRET_KEY: string;
HOST: string;
PORT: string;
CSV_IMPORTER_USE_IA_TO_PREDICT_SUPPLY_CATEGORIES: boolean;
GEMINI_API_KEY?: string;
}
}
}

export {};
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const config: Config = {
'^src/(.*)$': '<rootDir>/$1',
'^@/(.*)$': '<rootDir>/$1',
'^test/(.*)$': '<rootDir>/../$1',
'^examples/(.*)$': '<rootDir>/../test/examples/$1',
},
testEnvironment: 'node',
};
Expand Down
221 changes: 218 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading