Skip to content

Commit

Permalink
change(definitions/schemas): filter with pattern "filter.property"
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Oct 24, 2024
1 parent 8570b20 commit 0de29ec
Show file tree
Hide file tree
Showing 40 changed files with 198 additions and 190 deletions.
8 changes: 8 additions & 0 deletions .changeset/tiny-zebras-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@ladesa-ro/especificacao.json-schema": minor
"@ladesa-ro/especificacao.dotnet": minor
"@ladesa-ro/especificacao.definitions": minor
"@ladesa-ro/especificacao": minor
---

change(definitions/schemas): filter with pattern "filter.property"
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"PNPM_HOME": "/pnpm"
},

"postCreateCommand": "bash -i -c 'nvm install --lts && pnpm install && (cd integrations/dotnet && dotnet tool restore)'",
"postCreateCommand": "bash -i -c 'nvm install --lts && pnpm install && (cd integrations/dotnet)'",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
Expand Down
2 changes: 1 addition & 1 deletion definitions/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ladesa-ro/especificacao-definitions",
"name": "@ladesa-ro/especificacao.definitions",
"private": true,
"type": "module",
"version": "3.1.5",
Expand Down
4 changes: 2 additions & 2 deletions definitions/src/schemas/modules/ambientes/ambiente.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ model AmbienteListOperation
// filtros
@extension("x-unispec-gql-key", "filterBlocoId")
@extension("x-unispec-http-key", "filter.bloco.id")
filterBlocoId?: Pagination.GenericFilter.eq[];
`filter.bloco.id`?: Pagination.GenericFilter.eq[];

// filtros
@extension("x-unispec-gql-key", "filterBlocoCampusId")
@extension("x-unispec-http-key", "filter.bloco.campus.id")
filterBlocoCampusId?: Pagination.GenericFilter.eq[];
`filter.bloco.campus.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/ambientes/bloco.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ model BlocoListOperation
// filtros
@extension("x-unispec-gql-key", "filterCampusId")
@extension("x-unispec-http-key", "filter.campus.id")
filterCampusId?: Pagination.GenericFilter.eq[];
`filter.campus.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
4 changes: 2 additions & 2 deletions definitions/src/schemas/modules/ambientes/campus.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ model CampusListOperation
// filters
@extension("x-unispec-gql-key", "filterEnderecoCidadeId")
@extension("x-unispec-http-key", "filter.endereco.cidade.id")
filterEnderecoCidadeId?: Pagination.GenericFilter.eq[];
`filter.endereco.cidade.id`?: Pagination.GenericFilter.eq[];

// filters
@extension("x-unispec-gql-key", "filterEnderecoCidadeEstadoId")
@extension("x-unispec-http-key", "filter.endereco.cidade.estado.id")
filterEnderecoCidadeEstadoId?: Pagination.GenericFilter.eq[];
`filter.endereco.cidade.estado.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/ambientes/cidade.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ model CidadeListOperation
// filters
@extension("x-unispec-gql-key", "filterEstadoId")
@extension("x-unispec-http-key", "filter.estado.id")
filterEstadoId?: Pagination.GenericFilter.eq[];
`filter.estado.id`?: Pagination.GenericFilter.eq[];
}
>;
8 changes: 4 additions & 4 deletions definitions/src/schemas/modules/ambientes/reserva.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ model ReservaListOperation
// filters
@extension("x-unispec-gql-key", "filterDataInicio")
@extension("x-unispec-http-key", "filter.dataInicio")
filterDataInicio?: (
`filter.dataInicio`?: (
| Pagination.GenericFilter.eq
| Pagination.GenericFilter.gt
| Pagination.GenericFilter.gte
Expand All @@ -126,7 +126,7 @@ model ReservaListOperation
// filters
@extension("x-unispec-gql-key", "filterDataTermino")
@extension("x-unispec-http-key", "filter.dataTermino")
filterDataTermino?: (
`filter.dataTermino`?: (
| Pagination.GenericFilter.eq
| Pagination.GenericFilter.gt
| Pagination.GenericFilter.gte
Expand All @@ -136,7 +136,7 @@ model ReservaListOperation
// filters
@extension("x-unispec-gql-key", "filterIntervaloDeTempoPeriodoInicio")
@extension("x-unispec-http-key", "intervaloDeTempo.periodoInicio")
filterIntervaloDeTempoPeriodoInicio?: (
`intervaloDeTempo.periodoInicio`?: (
| Pagination.GenericFilter.eq
| Pagination.GenericFilter.gt
| Pagination.GenericFilter.gte
Expand All @@ -146,7 +146,7 @@ model ReservaListOperation
// filters
@extension("x-unispec-gql-key", "filterIntervaloDeTempoPeriodoFim")
@extension("x-unispec-http-key", "intervaloDeTempo.periodoFim")
filterIntervaloDeTempoPeriodoFim?: (
`intervaloDeTempo.periodoFim`?: (
| Pagination.GenericFilter.eq
| Pagination.GenericFilter.gt
| Pagination.GenericFilter.gte
Expand Down
4 changes: 2 additions & 2 deletions definitions/src/schemas/modules/autorizacao/perfil.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ model PerfilListOperation
// filtros
@extension("x-unispec-gql-key", "filterCampusId")
@extension("x-unispec-http-key", "filter.campus.id")
filterCampusId?: Pagination.GenericFilter.eq[];
`filter.campus.id`?: Pagination.GenericFilter.eq[];

// filtros
@extension("x-unispec-gql-key", "filterUsuarioId")
@extension("x-unispec-http-key", "filter.usuario.id")
filterUsuarioId?: Pagination.GenericFilter.eq[];
`filter.usuario.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ model CalendarioLetivoListOperation
// filtros
@extension("x-unispec-gql-key", "filterCampusId")
@extension("x-unispec-http-key", "filter.campus.id")
filter_campus_id?: Pagination.GenericFilter.eq[];
`filter.campus.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterOfertaFormacaoId")
@extension("x-unispec-http-key", "filter.ofertaFormacao.id")
filter_ofertaFormacao_id?: Pagination.GenericFilter.eq[];
`filter.ofertaFormacao.id`?: Pagination.GenericFilter.eq[];
}
>;
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ model DiaCalendarioListOperation
// filtros
@extension("x-unispec-gql-key", "filterCalendarioId")
@extension("x-unispec-http-key", "filter.calendario.id")
filter_calendario_id?: Pagination.GenericFilter.eq[];
`filter.calendario.id`?: Pagination.GenericFilter.eq[];
}
>;
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/calendario/etapa.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ model EtapaListOperation
// filtros
@extension("x-unispec-gql-key", "filterCalendarioId")
@extension("x-unispec-http-key", "filter.calendario.id")
filter_calendario_id?: Pagination.GenericFilter.eq[];
`filter.calendario.id`?: Pagination.GenericFilter.eq[];
}
>;
2 changes: 1 addition & 1 deletion definitions/src/schemas/modules/calendario/evento.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ model EventoListOperation
// filtros
@extension("x-unispec-gql-key", "filterCalendarioId")
@extension("x-unispec-http-key", "filter.calendario.id")
filter_calendario_id?: Pagination.GenericFilter.eq[];
`filter.calendario.id`?: Pagination.GenericFilter.eq[];
}
>;
4 changes: 2 additions & 2 deletions definitions/src/schemas/modules/ensino/discente/aula.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ model AulaListOperation
// filtros
@extension("x-unispec-gql-key", "filterDiarioId")
@extension("x-unispec-http-key", "filter.diario.id")
filter_diario_id?: Pagination.GenericFilter.eq[];
`filter.diario.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterAmbienteId")
@extension("x-unispec-http-key", "filter.ambiente.id")
filter_ambiente_id?: Pagination.GenericFilter.eq[];
`filter.ambiente.id`?: Pagination.GenericFilter.eq[];
}
>;
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ model DiarioProfessorListOperation
// filtros
@extension("x-unispec-gql-key", "filterPerfilId")
@extension("x-unispec-http-key", "filter.perfil.id")
filter_perfil_id?: Pagination.GenericFilter.eq[];
`filter.perfil.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterDiarioId")
@extension("x-unispec-http-key", "filter.diario.id")
filter_diario_id?: Pagination.GenericFilter.eq[];
`filter.diario.id`?: Pagination.GenericFilter.eq[];
}
>;
8 changes: 4 additions & 4 deletions definitions/src/schemas/modules/ensino/discente/diario.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@ model DiarioListOperation
// filtros
@extension("x-unispec-gql-key", "filterTurmaId")
@extension("x-unispec-http-key", "filter.turma.id")
filter_turma_id?: Pagination.GenericFilter.eq[];
`filter.turma.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterDisciplinaId")
@extension("x-unispec-http-key", "filter.disciplina.id")
filter_disciplina_id?: Pagination.GenericFilter.eq[];
`filter.disciplina.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterAmbientePadraoId")
@extension("x-unispec-http-key", "filter.ambientePadrao.id")
filter_ambientePadrao_id?: Pagination.GenericFilter.eq[];
`filter.ambientePadrao.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterCalendarioLetivoId")
@extension("x-unispec-http-key", "filter.calendarioLetivo.id")
filter_calendarioLetivo_id?: Pagination.GenericFilter.eq[];
`filter.calendarioLetivo.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
16 changes: 8 additions & 8 deletions definitions/src/schemas/modules/ensino/discente/turma.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -96,35 +96,35 @@ model TurmaListOperation
// filtros
@extension("x-unispec-gql-key", "filterAmbientePadraoAulaNome")
@extension("x-unispec-http-key", "filter.ambientePadraoAula.nome")
filter_ambientePadraoAula_nome?: Pagination.GenericFilter.eq[];
`filter.ambientePadraoAula.nome`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterAmbientePadraoAulaCodigo")
@extension("x-unispec-http-key", "filter.ambientePadraoAula.codigo")
filter_ambientePadraoAula_codigo?: Pagination.GenericFilter.eq[];
`filter.ambientePadraoAula.codigo`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterAmbientePadraoAulaCapacidade")
@extension("x-unispec-http-key", "filter.ambientePadraoAula.capacidade")
filter_ambientePadraoAula_capacidade?: Pagination.GenericFilter.eq[];
`filter.ambientePadraoAula.capacidade`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterAmbientePadraoAulaTipo")
@extension("x-unispec-http-key", "filter.ambientePadraoAula.tipo")
filter_ambientePadraoAula_tipo?: Pagination.GenericFilter.eq[];
`filter.ambientePadraoAula.tipo`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterCursoNome")
@extension("x-unispec-http-key", "filter.curso.nome")
filter_curso_nome?: Pagination.GenericFilter.eq[];
`filter.curso.nome`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterCursoNomeAbreviado")
@extension("x-unispec-http-key", "filter.curso.nomeAbreviado")
filter_curso_nomeAbreviado?: Pagination.GenericFilter.eq[];
`filter.curso.nomeAbreviado`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterCursoCampusId")
@extension("x-unispec-http-key", "filter.curso.campus.id")
filter_curso_campus_id?: Pagination.GenericFilter.eq[];
`filter.curso.campus.id`?: Pagination.GenericFilter.eq[];

@extension("x-unispec-gql-key", "filterCursoModalidadeId")
@extension("x-unispec-http-key", "filter.curso.modalidade.id")
filter_curso_modalidade_id?: Pagination.GenericFilter.eq[];
`filter.curso.modalidade.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ model CursoListOperation
// filtros
@extension("x-unispec-gql-key", "filterCampusId")
@extension("x-unispec-http-key", "filter.campus.id")
filter_campus_id?: Pagination.GenericFilter.eq[];
`filter.campus.id`?: Pagination.GenericFilter.eq[];

// filtros
@extension("x-unispec-gql-key", "filterOfertaFormacaoId")
@extension("x-unispec-http-key", "filter.ofertaFormacao.id")
filter_ofertaFormacao_id?: Pagination.GenericFilter.eq[];
`filter.ofertaFormacao.id`?: Pagination.GenericFilter.eq[];
}
>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ model DisponibilidadeDiaListOperation
{
@extension("x-unispec-gql-key", "filterDisponibilidadeId")
@extension("x-unispec-http-key", "filter.disponibilidade.id")
filter_disponibilidade_id?: Pagination.GenericFilter.eq[];
`filter.disponibilidade.id`?: Pagination.GenericFilter.eq[];
}
>;
Loading

0 comments on commit 0de29ec

Please sign in to comment.