From f3c510244ee8964f59b5d9082921e21f53af385e Mon Sep 17 00:00:00 2001 From: "robozinho-do-ladesa[bot]" <172411970+robozinho-do-ladesa[bot]@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:08:56 +0000 Subject: [PATCH 1/2] chore: generate integrations --- .../src/http/generated/LadesaApiClient.ts | 6 +++--- .../src/http/generated/services.gen.ts | 12 ++++++------ integrations/openapi-json/generated.json | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/integrations/npm/api-client-fetch/src/http/generated/LadesaApiClient.ts b/integrations/npm/api-client-fetch/src/http/generated/LadesaApiClient.ts index 1df2a0db..aa7764cb 100644 --- a/integrations/npm/api-client-fetch/src/http/generated/LadesaApiClient.ts +++ b/integrations/npm/api-client-fetch/src/http/generated/LadesaApiClient.ts @@ -13,9 +13,9 @@ import { CalendariosLetivosService } from "./services.gen"; import { CampiService } from "./services.gen"; import { CidadesService } from "./services.gen"; import { CursosService } from "./services.gen"; -import { DiarioProfessorService } from "./services.gen"; import { DiariosService } from "./services.gen"; import { DiariosPreferenciaAgrupamentoService } from "./services.gen"; +import { DiariosProfessoresService } from "./services.gen"; import { DiasCalendariosService } from "./services.gen"; import { DisciplinasService } from "./services.gen"; import { DisponibilidadesService } from "./services.gen"; @@ -50,9 +50,9 @@ export class LadesaApiClient { public readonly campi: CampiService; public readonly cidades: CidadesService; public readonly cursos: CursosService; - public readonly diarioProfessor: DiarioProfessorService; public readonly diarios: DiariosService; public readonly diariosPreferenciaAgrupamento: DiariosPreferenciaAgrupamentoService; + public readonly diariosProfessores: DiariosProfessoresService; public readonly diasCalendarios: DiasCalendariosService; public readonly disciplinas: DisciplinasService; public readonly disponibilidades: DisponibilidadesService; @@ -103,9 +103,9 @@ export class LadesaApiClient { this.campi = new CampiService(this.request); this.cidades = new CidadesService(this.request); this.cursos = new CursosService(this.request); - this.diarioProfessor = new DiarioProfessorService(this.request); this.diarios = new DiariosService(this.request); this.diariosPreferenciaAgrupamento = new DiariosPreferenciaAgrupamentoService(this.request); + this.diariosProfessores = new DiariosProfessoresService(this.request); this.diasCalendarios = new DiasCalendariosService(this.request); this.disciplinas = new DisciplinasService(this.request); this.disponibilidades = new DisponibilidadesService(this.request); diff --git a/integrations/npm/api-client-fetch/src/http/generated/services.gen.ts b/integrations/npm/api-client-fetch/src/http/generated/services.gen.ts index 2b245741..7e0b6e52 100644 --- a/integrations/npm/api-client-fetch/src/http/generated/services.gen.ts +++ b/integrations/npm/api-client-fetch/src/http/generated/services.gen.ts @@ -3222,7 +3222,7 @@ export class DiariosService { } } -export class DiarioProfessorService { +export class DiariosProfessoresService { constructor(public readonly httpRequest: BaseHttpRequest) {} /** @@ -3240,7 +3240,7 @@ export class DiarioProfessorService { public diarioProfessorList(data: DiarioProfessorListData = {}): CancelablePromise { return this.httpRequest.request({ method: "GET", - url: "/diario-professor", + url: "/diarios-professores", query: { page: data.page, limit: data.limit, @@ -3266,7 +3266,7 @@ export class DiarioProfessorService { public diarioProfessorCreate(data: DiarioProfessorCreateData): CancelablePromise { return this.httpRequest.request({ method: "POST", - url: "/diario-professor", + url: "/diarios-professores", body: data.requestBody, mediaType: "application/json", errors: { @@ -3286,7 +3286,7 @@ export class DiarioProfessorService { public diarioProfessorFindOneById(data: DiarioProfessorFindOneByIdData): CancelablePromise { return this.httpRequest.request({ method: "GET", - url: "/diario-professor/{id}", + url: "/diarios-professores/{id}", path: { id: data.id, }, @@ -3308,7 +3308,7 @@ export class DiarioProfessorService { public diarioProfessorUpdateOneById(data: DiarioProfessorUpdateOneByIdData): CancelablePromise { return this.httpRequest.request({ method: "PATCH", - url: "/diario-professor/{id}", + url: "/diarios-professores/{id}", path: { id: data.id, }, @@ -3331,7 +3331,7 @@ export class DiarioProfessorService { public diarioProfessorDeleteOneById(data: DiarioProfessorDeleteOneByIdData): CancelablePromise { return this.httpRequest.request({ method: "DELETE", - url: "/diario-professor/{id}", + url: "/diarios-professores/{id}", path: { id: data.id, }, diff --git a/integrations/openapi-json/generated.json b/integrations/openapi-json/generated.json index 5aeb4e28..60dfc21e 100644 --- a/integrations/openapi-json/generated.json +++ b/integrations/openapi-json/generated.json @@ -7563,7 +7563,7 @@ "tags": ["diarios"] } }, - "/diario-professor": { + "/diarios-professores": { "get": { "description": "Sem descrição.", "operationId": "DiarioProfessorList", @@ -7673,7 +7673,7 @@ } ], "summary": "", - "tags": ["diario-professor"] + "tags": ["diarios-professores"] }, "post": { "description": "Sem descrição.", @@ -7717,10 +7717,10 @@ } ], "summary": "", - "tags": ["diario-professor"] + "tags": ["diarios-professores"] } }, - "/diario-professor/{id}": { + "/diarios-professores/{id}": { "get": { "description": "Sem descrição.", "operationId": "DiarioProfessorFindOneById", @@ -7767,7 +7767,7 @@ } ], "summary": "", - "tags": ["diario-professor"] + "tags": ["diarios-professores"] }, "patch": { "description": "Sem descrição.", @@ -7827,7 +7827,7 @@ } ], "summary": "", - "tags": ["diario-professor"] + "tags": ["diarios-professores"] }, "delete": { "description": "Sem descrição.", @@ -7875,7 +7875,7 @@ } ], "summary": "", - "tags": ["diario-professor"] + "tags": ["diarios-professores"] } }, "/aulas": { From 2d1fba49884c32ecea9ee641e8bee7a0620164a1 Mon Sep 17 00:00:00 2001 From: "Gabriel R. Antunes" Date: Sat, 30 Nov 2024 17:17:27 -0400 Subject: [PATCH 2/2] Create silly-penguins-approve.md --- .changeset/silly-penguins-approve.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/silly-penguins-approve.md diff --git a/.changeset/silly-penguins-approve.md b/.changeset/silly-penguins-approve.md new file mode 100644 index 00000000..9eb7610b --- /dev/null +++ b/.changeset/silly-penguins-approve.md @@ -0,0 +1,7 @@ +--- +"@ladesa-ro/api-client-fetch": patch +"@ladesa-ro/api.integrations.openapi-json": patch +--- + +chore: generate integrations +change(diario-professor/controller): tag diarios-professores